ConvertToCpuMemoryLayout Data Member Function

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

Prototype

int32 ConvertToCpuMemoryLayout( ProgramConstantInfo p_oInfo, int32 p_bZeroMemory, Int16Iterator first, Int16Iterator last, Int16Iterator dst )

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.
<Int16Iterator>firstAn iterator at the start of the range.
<Int16Iterator>lastAn iterator at the end of the range.
<Int16Iterator>dstAn iterator at the start of the destination.

Examples

Copy Text To Clipboard

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