Generates sampling code for a particular texture type. For example, generates sampling code for a 2D texture, 2D array texture, or cubemap.
static int32 GenerateSamplingCode( int32 p_oTexture, int32 p_slSource, int32 p_eVersion, int32 p_eSamplertype, int32 p_bIsStandardSampler, StrList unnamedParam )
Parameter Type | Parameter Name | Documentation |
---|---|---|
int32 | p_oTexture | A pointer to the source <Texture> node for which you wish to generate sampling code. |
int32 | p_slSource | A pointer to the <StrList> object that will contain the generated source code. |
int32 | p_eVersion | The shading language version. This refers to the ShadingLanguageVersion enumeration. Please see TYPE_SERVICE_ENUMERATION_UTIL.SSL in the application scripts folder for more information. |
int32 | p_eSamplertype | The sampler type. This refers to the SamplerType enumeration. Please see TYPE_SERVICE_ENUMERATION_UTIL.SSL in the application scripts folder for more information. |
int32 | p_bIsStandardSampler | If true, the sampler is one such as sampler2D or samplerCube. Otherwise the sampler is one such as image2D or imageCube. |
<StrList> | unnamedParam | This parameter is undocumented at present. |
None published. Please look for an example in the Simdify Scripting Language code base.