HC_Show_Shader_Textures
-
bool
HC_Show_Shader_Textures(Key shader_key, int *count, Key *texture_keys, Key *sampler_keys) - bool HC_Show_Shader_Textures(Key shader_key, int count, Key texture_keys, Key sampler_keys)
Returns the textures and samplers associated with the shader if present. Only valid for modern custom shaders.
HC_Define_Shader, HC_Set_Shader_Textures, HC_Show_Shader_Textures_CountParameters
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. May be null if value is not needed. Returned to the user.
texture_keys: The textures associated with the shader. May be null if value is not needed. Returned to the user.
sampler_keys: The samplers associated with the shader. May be null if value is not needed. Returned to the user.
Returns
True if the shader has any associated textures and samplers and the returned arguments are valid. Otherwise, will return false.