GetSamplerDeclarationComponents Data Member Function

Populates a <StrList> with a sampler declaration that matches the query parameters. Each component of the declaration is stored in a separate <Str> object in the <StrList>.

Prototype

int32 GetSamplerDeclarationComponents( int32 p_eFormat, int32 p_eTopology, int32 p_eTextureType, string p_sSamplerVariable, StrList p_slComponents )

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'.
<StrList>p_slComponentsA pointer to a <StrList> that stores the sampler declaration components.

Examples

Copy Text To Clipboard

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