HC_Show_Shader_Outputs_Size

bool HC_Show_Shader_Outputs_Size(Key shader_key, int *size)
bool HC_Show_Shader_Outputs_Size(Key shader_key, int size)

Returns the size of the shader output specification in bytes. Only valid for modern custom shaders.

HC_Define_Shader, HC_Set_Shader_Outputs, HC_Show_Shader_Outputs

Parameters

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

size: The size of the shader output specification, in bytes. Returned to the user.

Returns

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