GetSamplerCodeSnippets Data Member Function

For a given set of <Texture> parameters, populates a <StrList> with code snippets containing a sampler declaration, texture sampling code, and if applicable, code for imageLoad and imageStore functions.

Prototype

int32 GetSamplerCodeSnippets( int32 p_eFormat, int32 p_eTopology, int32 p_eVersion, int32 p_eSamplerType, StrList p_slSnippets )

Parameters

Parameter Type Parameter Name Documentation
int32p_eFormatThe pixel format of the source <Texture>. This refers to the Image_Pixel_Format enumeration. Please see TYPE_SERVICE_ENUMERATION_UTIL.SSL.
int32p_eTopologyThe topology of the source <Texture>. This refers to the ImageTopology enumeration. Please see TYPE_SERVICE_ENUMERATION_UTIL.SSL.
int32p_eVersionThe GLSL version of the shader for which you wish to generate sample code. The topology of the source <Texture>. This refers to the GlslVersion enumeration. Please see TYPE_SERVICE_ENUMERATION_UTIL.SSL.
int32p_eSamplerTypeThe sampler type that will bind the <Texture>. This refers to the SamplerType enumeration. Please see TYPE_SERVICE_ENUMERATION_UTIL.SSL.
<StrList>p_slSnippetsA pointer to the <StrList> object that will store the code snippets. Each line of the snippet (up to four) is stored as a separate <Str> object in this &tl;StrList>.

Examples

Copy Text To Clipboard

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