ConvertToGpuMemoryLayout Data Member Function

Converts an array of matrices from the CPU memory layout, which is a contiguous, unpadded array of values, to the GPU memory layout ( GPU memory layout may change with padding introduced by certain layout qualifiers such as packed, shared, std430, or std140 ).

Prototype

int32 ConvertToGpuMemoryLayout( ProgramConstantInfo p_oInfo, int32 p_bZeroMemory, int32 p_nCols, int32 p_nRows, Float64Iterator first, Float64Iterator last, Float64Iterator dest )

Parameters

Parameter Type Parameter Name Documentation
<ProgramConstantInfo>p_oInfoA pointer to a <ProgramConstantInfo> object ( which contains data about the OpenGL configuration of the data ).
int32p_bZeroMemoryFills the destination memory with zeros before performing the conversion if true.
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.
<Float64Iterator>firstAn iterator at the start of the range.
<Float64Iterator>lastAn iterator at the end of the range.
<Float64Iterator>destAn iterator at the start of the destination.

Examples

Copy Text To Clipboard

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