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.
int32 GetWriteSizeInBytes( ProgramConstantInfo p_oInfo, Uint8Iterator first, Uint8Iterator last, int32 p_nComponents )
Parameter Type | Parameter Name | Documentation |
---|---|---|
<ProgramConstantInfo> | p_oInfo | A 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. |
<Uint8Iterator> | first | An iterator at the start of the source range. |
<Uint8Iterator> | last | An iterator at the end of the source range. |
int32 | p_nComponents | The number of components. Must be 2, 3, or 4. |
None published. Please look for an example in the Scenome Scripting Language code base.