Skip to documentation
SLOP

tiny.gpu.RenderPipelineDesc

Reference tiny.gpu RenderPipelineDesc

Defined in contract.

A graphics pipeline.

API (14)

Fields and members

Public fields and members.

No direct callersNo direct callscontractRenderPipelineDesc
Static calls · unresolved targets: unknown · external targets: unknown.

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

Definitions1
Public names2
Members14
Version26.7.0
Revisiondaab053ee433