Urho3D
|
Instanced 3D geometry draw call. More...
#include </home/runner/work/urho3d-doxygen.github.io/urho3d-doxygen.github.io/urho3d_repo/Source/Urho3D/Graphics/Batch.h>
Public Member Functions | |
BatchGroup () | |
Construct with defaults. | |
BatchGroup (const Batch &batch) | |
Construct from a batch. | |
~BatchGroup ()=default | |
Destruct. | |
void | AddTransforms (const Batch &batch) |
Add world transform(s) from a batch. | |
void | SetInstancingData (void *lockedData, i32 stride, i32 &freeIndex) |
Pre-set the instance data. Buffer must be big enough to hold all data. | |
void | Draw (View *view, Camera *camera, bool allowDepthWrite) const |
Prepare and draw. | |
Public Member Functions inherited from Urho3D::Batch | |
Batch ()=default | |
Construct with defaults. | |
Batch (const SourceBatch &rhs) | |
Construct from a drawable's source batch. | |
void | CalculateSortKey () |
Calculate state sorting key, which consists of base pass flag, light, pass and geometry. | |
void | Prepare (View *view, Camera *camera, bool setModelTransform, bool allowDepthWrite) const |
Prepare for rendering. | |
void | Draw (View *view, Camera *camera, bool allowDepthWrite) const |
Prepare and draw. | |
Public Attributes | |
Vector< InstanceData > | instances_ |
Instance data. | |
i32 | startIndex_ |
Instance stream start index, or NINDEX if transforms not pre-set. | |
Public Attributes inherited from Urho3D::Batch | |
hash64 | sortKey_ {} |
State sorting key. | |
float | distance_ {} |
Distance from camera. | |
i8 | renderOrder_ {} |
8-bit render order modifier from material. | |
unsigned char | lightMask_ {} |
8-bit light mask for stencil marking in deferred rendering. | |
bool | isBase_ {} |
Base batch flag. This tells to draw the object fully without light optimizations. | |
Geometry * | geometry_ {} |
Geometry. | |
Material * | material_ {} |
Material. | |
const Matrix3x4 * | worldTransform_ {} |
World transform(s). For a skinned model, these are the bone transforms. | |
i32 | numWorldTransforms_ {} |
Number of world transforms. | |
void * | instancingData_ {} |
Per-instance data. If not null, must contain enough data to fill instancing buffer. | |
Zone * | zone_ {} |
Zone. | |
LightBatchQueue * | lightQueue_ {} |
Light properties. | |
Pass * | pass_ {} |
Material pass. | |
ShaderVariation * | vertexShader_ {} |
Vertex shader. | |
ShaderVariation * | pixelShader_ {} |
Pixel shader. | |
GeometryType | geometryType_ {} |
Geometry type. | |
Instanced 3D geometry draw call.