Legacy Documentation: Version 5.5
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

ShaderUtil.GetTexDim

public static Rendering.TextureDimension GetTexDim(Shader s, int propertyIdx);

Parameters

s The shader to get the property from.
propertyIdx The property index to use.

Returns

TextureDimension Texture dimension.

Description

Gets texture dimension of a shader property.