tiny.gpu.RenderDraw
Defined in contract.
One draw of a pass.
API (6)
Fields and members
Public fields and members.
Source
Source: lib/gpu/src/contract.zig:538
zig
/// One draw of a pass. `vertex_buffers` follows the pipeline's vertex layouts in order, and an/// indexed range reads `index_buffer` in the range's index format. A backend checks every range it/// can see without reading buffer contents: instances, a non-indexed draw's vertices and the/// indices. The vertices an index names are the caller's to keep inside each per-vertex buffer./// `push_constants` holds exactly the pipeline's `push_constant_bytes`, which both stages read for/// this draw alone. A bundle copies them when it records the draw.pub const RenderDraw = struct { pipeline: LoadedRenderArtifact, bindings: ?RenderBindings = null, vertex_buffers: []const RenderBufferRange = &.{}, index_buffer: ?RenderBufferRange = null, range: RenderDrawRange, push_constants: []const u8 = &.{},};Source: lib/gpu/src/root.zig:152
zig
pub const RenderDraw = contract.RenderDraw;Audit
| Definitions | 1 |
|---|---|
| Public names | 2 |
| Members | 6 |
| Version | 26.7.0 |
| Revision | daab053ee433 |