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.
int32 GetSamplerCodeSnippets( int32 p_eFormat, int32 p_eTopology, int32 p_eVersion, int32 p_eSamplerType, StrList p_slSnippets )
Parameter Type | Parameter Name | Documentation |
---|---|---|
int32 | p_eFormat | The pixel format of the source <Texture>. This refers to the Image_Pixel_Format enumeration. Please see TYPE_SERVICE_ENUMERATION_UTIL.SSL. |
int32 | p_eTopology | The topology of the source <Texture>. This refers to the ImageTopology enumeration. Please see TYPE_SERVICE_ENUMERATION_UTIL.SSL. |
int32 | p_eVersion | The 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. |
int32 | p_eSamplerType | The sampler type that will bind the <Texture>. This refers to the SamplerType enumeration. Please see TYPE_SERVICE_ENUMERATION_UTIL.SSL. |
<StrList> | p_slSnippets | A 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>. |
None published. Please look for an example in the Scenome Scripting Language code base.