Q3Shader_GetType
You can use theQ3Shader_GetTypefunction to get the type of a shader object.
TQ3ObjectType Q3Shader_GetType (TQ3ShaderObject shader);
shader- A shader object.
DESCRIPTION
TheQ3Shader_GetTypefunction returns, as its function result, the type of the shader object specified by theshaderparameter. The types of shader objects currently supported by QuickDraw 3D are defined by these constants:
kQ3ShaderTypeSurface kQ3ShaderTypeIlluminationIf the specified shader object is invalid or is not one of these types,Q3Shader_GetTypereturns the valuekQ3ObjectTypeInvalid.