GetSupportedDataTypes Data Member Function

Populates a <TypeInfoArray> with <VariableNode>-derived types such as <Float32Node> or <Float64Node>, that correspond to data types ( <float32>, <float64> ) supported by the specified shading language version.

Prototype

int32 GetSupportedDataTypes( int32 p_eVersion, int32 p_bHighPrecTypes, int32 p_bLowPrecTypes, TypeInfoArray p_aoTypes )

Parameters

Parameter Type Parameter Name Documentation
int32p_eVersionThis parameter refers to the ShadingLanguageVersion enum. Please see TYPE_SERVICE_ENUMERATION_UTIL.SSL in the application scripts folder for more information.
int32p_bHighPrecTypesIf true, this query optionally includes high-precision signed/unsigned integer types such as <Int64Node>, <Uint64Node>, and all similar. On most systems these types are supported only by extensions, so you may have to query the rendering system to check for extensions such as gl_nv_gpu_shader5, AMD_gpu_shader_int64, or GL_ARB_gpu_shader_int64.
int32p_bLowPrecTypesIf true, this query optionally includes high-precision signed/unsigned integer types such as <Int8Node>, <Uint8Node>, and all similar. On most systems these types are supported only by extensions. At present only gl_nv_gpu_shader5 and a few others support low-precision signed/unsigned integer types.
<TypeInfoArray>p_aoTypesA pointer to a <TypeInfoArray> that stores Scenome types that correspond to GLSL types supported by the specified shading language version.

Examples

Copy Text To Clipboard

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