HC_Show_Shader_Textures_Count

bool HC_Show_Shader_Textures_Count(Key shader_key, int *count)
bool HC_Show_Shader_Textures_Count(Key shader_key, int count)

Returns the number of textures and samplers associated with the shader. Only valid for modern custom shaders.

HC_Define_Shader, HC_Set_Shader_Textures, HC_Show_Shader_Textures

Parameters

shader_key: The key of the shader, returned by Define_Shader when defining a modern custom shader.

count: The number of textures and samplers associated with the shader. Returned to the user.

Returns

True if the shader has any associated textures and samplers and the returned size is valid. Otherwise, will return false.