tiny.gpu.TextureUsage
Defined in contract.
API (9)
Actions
Public operations.
Fields and members
Public fields and members.
Source
Source: lib/gpu/src/contract.zig:254
zig
pub const TextureUsage = struct { copy_src: bool = false, copy_dst: bool = false, sampled: bool = false, storage: bool = false, color_attachment: bool = false, depth_attachment: bool = false, present: bool = false, pub fn any(self: TextureUsage) bool { return self.copy_src or self.copy_dst or self.sampled or self.storage or self.color_attachment or self.depth_attachment or self.present; } pub fn containsAll(self: TextureUsage, required: TextureUsage) bool { if (required.copy_src and !self.copy_src) return false; if (required.copy_dst and !self.copy_dst) return false; if (required.sampled and !self.sampled) return false; if (required.storage and !self.storage) return false; if (required.color_attachment and !self.color_attachment) return false; if (required.depth_attachment and !self.depth_attachment) return false; if (required.present and !self.present) return false; return true; }};Source: lib/gpu/src/root.zig:59
zig
pub const TextureUsage = contract.TextureUsage;Audit
| Definitions | 3 |
|---|---|
| Public names | 6 |
| Members | 7 |
| Version | 26.7.0 |
| Revision | daab053ee433 |