GetFormatFromQualifier Data Member Function

Returns the Image_Pixel_Format value associated with a particular GLSL format layout qualifier such as rg8 or rgba8i. For example, the declarations layout( rg8 ) or layout( rgba8i ) can only bind specific pixel formats. Returns the appropriate format.

Prototype

int32 GetFormatFromQualifier( int32 p_eQualifier )

Parameters

Parameter Type Parameter Name Documentation
int32p_eQualifierA GLSL format qualifier layout enumerated constant from the GLSL_Qualifier enumeration such as GLSL_Qualifier_Rg16i. Please see TYPE_SERVICE_ENUMERATION_UTIL.SSL in the application scripts folder for more information.

Examples

Copy Text To Clipboard

None published. Please look for an example in the Scenome Scripting Language code base.