GetSamplerDeclaration Data Member Function

Returns a sampler declaration that matches the query parameters.

Prototype

string GetSamplerDeclaration( int32 p_eFormat, int32 p_eTopology, int32 p_eTextureType, string p_sSamplerVariable )

Parameters

Parameter Type Parameter Name Documentation
int32p_eFormatAn enumerated constant from Image_Pixel_Format such as IPF_8888_ARGB. Please see TYPE_SERVICE_ENUMERATION_UTIL.SSL in the application scripts folder for more information.
int32p_eTopologyAn enumerated constant from ImageTopology such as ImageTopology_2DArray. Please see TYPE_SERVICE_ENUMERATION_UTIL.SSL in the application scripts folder for more information.
int32p_eTextureTypeAn enumerated constant from Texture_Type such as TextureType_Sampler2D. Please see TYPE_SERVICE_ENUMERATION_UTIL.SSL in the application scripts folder for more information.
stringp_sSamplerVariableA string representing the sampler variable name such as 'diffuse'.

Examples

Copy Text To Clipboard

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