tiny.gpu.RenderDrawRange
Defined in contract.
API (9)
Actions
Public operations.
Fields and members
Public fields and members.
base_vertexfirst_indexfirst_instancefirst_vertexindex_countindex_formatinstance_countvertex_count
Source
Source: lib/gpu/src/contract.zig:395
zig
pub const RenderDrawRange = struct { first_vertex: u32 = 0, vertex_count: u32 = 0, first_index: u32 = 0, index_count: u32 = 0, base_vertex: i32 = 0, first_instance: u32 = 0, instance_count: u32 = 1, index_format: RenderIndexFormat = .none, pub fn valid(self: RenderDrawRange) bool { if (self.instance_count == 0) return false; const indexed = self.index_count != 0 or self.index_format != .none; if (indexed) return self.index_count != 0 and self.index_format != .none and self.vertex_count == 0; return self.vertex_count != 0; }};Source: lib/gpu/src/root.zig:72
zig
pub const RenderDrawRange = contract.RenderDrawRange;Audit
| Definitions | 2 |
|---|---|
| Public names | 4 |
| Members | 8 |
| Version | 26.7.0 |
| Revision | daab053ee433 |