struct property

StructType<RlRenderBatchD> struct
final

Describes the raw memory layout, construction, and pointer representation of this struct type.

Implementation

static final StructType<RlRenderBatchD> struct = .new(
  factory: RlRenderBatchD.new,
  layout: .aligned<RlRenderBatchField>({
    .bufferCount:   RInt(), // Number of vertex buffers (multi-buffering support)
    .currentBuffer: RInt(), // Current buffer tracking in case of multi-buffering
    .vertexBuffer:  RPointer(RStruct(RlVertexBufferD.struct)), // Dynamic buffer(s) for vertex data
    .draws:         RPointer(RStruct(RlDrawCallD.struct)), // Draw calls array, depends on textureId
    .drawCounter:   RInt(), // Draw calls counter
    .currentDepth:  RFloat(), // Current depth value for next draw
  }),
);