Open 3D Engine Atom Gem API Reference 23.10.0
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
MaskedOcclusionCulling::VertexLayout Struct Reference

#include <MaskedOcclusionCulling.h>

Public Member Functions

 VertexLayout (int stride, int offsetY, int offsetZW)
 

Public Attributes

int mStride
 byte stride between vertices
 
int mOffsetY
 byte offset from X to Y coordinate
 
union {
   int   mOffsetZ
 byte offset from X to Z coordinate
 
   int   mOffsetW
 byte offset from X to W coordinate
 
}; 
 

Detailed Description

Used to specify custom vertex layout. Memory offsets to y and z coordinates are set through mOffsetY and mOffsetW, and vertex stride is given by mStride. It's possible to configure both AoS and SoA layouts. Note that large strides may cause more cache misses and decrease performance. It is advisable to store position data as compactly in memory as possible.


The documentation for this struct was generated from the following file: