GetWriteSizeInBytes Data Member Function

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

Prototype

int32 GetWriteSizeInBytes( ProgramConstantInfo p_oInfo, Float64MatrixArray p_oSrc, 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.
<Float64MatrixArray>p_oSrcA pointer to the object you wish to write to the GPU.
int32p_nColsThe number of matrix columns. For example 2 for mat2xN, 3 for mat3xN, or 4 for mat4xN.
int32p_nRowsThe number of matrix rows. For example 2 for matNx2, 3 for matNx3, or 4 for matNx4.

Examples

Copy Text To Clipboard

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