HC_Show_Shader_Uniforms_Data

bool HC_Show_Shader_Uniforms_Data(char const *target, Key shader_key, int *size, void *data)
bool HC_Show_Shader_Uniforms_Data(char const target, Key shader_key, int size, void data)

Returns the size of the shader uniform data in bytes. Only valid for modern custom shaders.

HC_Set_Shader_Uniforms_Data, HC_Show_Shader_Uniforms_Data_Size

Parameters

target: The graphics primitives which the shaders will affect.

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

size: The size of the shader uniform data, in bytes. Returned to the user.

data: The shader uniform data.

Returns

True if the shader has any specified uniforms and the returned size is valid. Otherwise, will return false.