tiny.gpu.RenderPipelineDesc
Defined in contract.
A graphics pipeline.
API (14)
Fields and members
Public fields and members.
bindingsblend_modedepthdiagnostic_idformatfragment_entry_namepayloadpush_constant_bytespush_extenttarget_formattopologyvertex_attributesvertex_entry_namevertex_layouts
Source
Source: lib/gpu/src/contract.zig:1455
zig
/// A graphics pipeline. Clip space puts x = −1 at the target's left edge, y = −1 at its top edge/// and depth z in [0, 1], so y grows downward in pixels. Triangles are drawn whatever their/// winding. A pixel is covered when its center lies inside a triangle, with centers on a shared/// edge going to exactly one triangle by the top-left rule.pub const RenderPipelineDesc = struct { format: RenderArtifactFormat, vertex_entry_name: []const u8, fragment_entry_name: []const u8, target_format: TextureFormat, blend_mode: RenderBlendMode = .replace, topology: RenderPrimitiveTopology = .triangle_list, depth: ?RenderDepthState = null, vertex_layouts: []const RenderVertexBufferLayout = &.{}, vertex_attributes: []const RenderVertexAttribute = &.{}, bindings: []const RenderBindingDesc = &.{}, /// Bytes of the push-constant block both stages read, a multiple of 4. Each draw supplies /// exactly this many, and a stage must read inside them. push_constant_bytes: u32 = 0, /// Bytes of the push-constant block the payload's stages read, as the emitter reported them /// with the payload, the way `CompileRequest.push_constants` carries a kernel's layout. It has /// no default, so a caller states it, and it may not exceed `push_constant_bytes`. push_extent: u32, diagnostic_id: ?[]const u8 = null, payload: CompilePayload = .none,};Source: lib/gpu/src/root.zig:106
zig
pub const RenderPipelineDesc = contract.RenderPipelineDesc;Audit
| Definitions | 1 |
|---|---|
| Public names | 2 |
| Members | 14 |
| Version | 26.7.0 |
| Revision | daab053ee433 |