Version: Unity 6 Preview (6000.0)
LanguageEnglish
  • C#

ShaderUtil.GetTexDim

Declaration

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.

Additional resources: TextureDimension, GetPropertyCount.