tiny.gpu.RasterCapabilities
Defined in contract.
API (24)
Actions
Public operations.
supportsArtifactFormatsupportsBindingKindsupportsBlendModesupportsDepthFormatsupportsIndexFormatsupportsTargetFormatsupportsTopologysupportsVertexFormat
Fields and members
Public fields and members.
artifact_formatsbinding_kindsblend_modesdepth_biasdepth_bias_clampdepth_formatsindex_formatsinstancingmax_bindingsmax_push_constant_bytesmax_vertex_attributesmax_vertex_bufferssupportedtarget_formatstopologiesvertex_formats
Source
Source: lib/gpu/src/contract.zig:940
zig
pub const RasterCapabilities = struct { supported: bool = false, artifact_formats: RenderArtifactFormatSet = .{}, target_formats: TextureFormatSet = .{}, depth_formats: TextureFormatSet = .{}, blend_modes: RenderBlendModeSet = .{}, topologies: RenderPrimitiveTopologySet = .{}, vertex_formats: RenderVertexFormatSet = .{}, binding_kinds: RenderBindingKindSet = .{}, index_formats: RenderIndexFormatSet = .{}, max_vertex_buffers: u32 = 0, max_vertex_attributes: u32 = 0, max_bindings: u32 = 0, instancing: bool = false, /// The largest push-constant block a pipeline may declare, in bytes. max_push_constant_bytes: u32 = 0, depth_bias: bool = false, depth_bias_clamp: bool = false, pub fn supportsArtifactFormat(self: RasterCapabilities, format: RenderArtifactFormat) bool { return self.artifact_formats.contains(format); } pub fn supportsTargetFormat(self: RasterCapabilities, format: TextureFormat) bool { return self.target_formats.contains(format); } pub fn supportsDepthFormat(self: RasterCapabilities, format: TextureFormat) bool { return self.depth_formats.contains(format); } pub fn supportsBlendMode(self: RasterCapabilities, blend_mode: RenderBlendMode) bool { return self.blend_modes.contains(blend_mode); } pub fn supportsTopology(self: RasterCapabilities, topology: RenderPrimitiveTopology) bool { return self.topologies.contains(topology); } pub fn supportsVertexFormat(self: RasterCapabilities, format: RenderVertexFormat) bool { return self.vertex_formats.contains(format); } pub fn supportsBindingKind(self: RasterCapabilities, kind: RenderBindingKind) bool { return self.binding_kinds.contains(kind); } pub fn supportsIndexFormat(self: RasterCapabilities, format: RenderIndexFormat) bool { return self.index_formats.contains(format); }};Source: lib/gpu/src/root.zig:99
zig
pub const RasterCapabilities = contract.RasterCapabilities;Audit
| Definitions | 9 |
|---|---|
| Public names | 18 |
| Members | 16 |
| Version | 26.7.0 |
| Revision | daab053ee433 |