GenerateSamplingCode Data Member Function

Generates sampling code for a particular texture type. For example, generates sampling code for a 2D texture, 2D array texture, or cubemap.

Prototype

static int32 GenerateSamplingCode( int32 p_eToplogy, int32 p_eVersion, int32 p_eSamplerType, int32 p_ePixelFormat, int32 p_bIsStandardSampler, StrList p_slSource )

Parameters

Parameter Type Parameter Name Documentation
int32p_eToplogyThe topology of the sampler. This refers to the ImageTopology enumeration. Please see APP_SERVICE_ENUMERATION_UTIL.SSL in the application scripts folder for more information.
int32p_eVersionThe shading language version. This refers to the ShadingLanguageVersion enumeration. Please see APP_SERVICE_ENUMERATION_UTIL.SSL in the application scripts folder for more information.
int32p_eSamplerTypeThe sampler type. This refers to the SamplerType enumeration. Please see APP_SERVICE_ENUMERATION_UTIL.SSL in the application scripts folder for more information.
int32p_ePixelFormatThe pixel format. This refers to the ImagePixelFormat enumeration. Please see APP_SERVICE_ENUMERATION_UTIL.SSL in the application scripts folder for more information.
int32p_bIsStandardSamplerIf true, the sampler is one such as sampler2D or samplerCube. Otherwise the sampler is one such as image2D or imageCube.
<StrList>p_slSourceA pointer to the <StrList> object that will contain the generated source code.

Examples

Copy Text To Clipboard

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