GetWriteSizeInBytes Data Member Function

Returns the size in bytes that will be written to the GPU. The source and destination size in bytes might not be same if qualifiers such as packed, shared, std140, or std430 are specified in the GLSL declaration.

Prototype

int32 GetWriteSizeInBytes( ProgramConstantInfo p_oInfo, Matrix src, int32 p_nCols, int32 p_nRows )

Parameters

Parameter Type Parameter Name Documentation
<ProgramConstantInfo>p_oInfoA pointer to a <ProgramConstantInfo> object that contains information about the variable being queried. The <ProgramConstantInfo> object can be initialized with a call to Render3D::GetProgramConstantInfo. See <Render3D> for more information.
<Matrix>srcA pointer to a <Float32Matrix>.
int32p_nColsThe number of cols in the matrix.
int32p_nRowsThe number of rows in the matrix.

Examples

Copy Text To Clipboard

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