tiny.gpu.TextureFormat
Defined in contract.
API (7)
Actions
Public operations.
isDepthtexelBytes: Bytes one texel occupies in a tightly packed transfer.
Fields and members
Public fields and members.
Source
Source: lib/gpu/src/contract.zig:145
zig
pub const TextureFormat = enum(u8) { rgba8_unorm = 0, bgra8_unorm = 1, rgba8_srgb = 2, bgra8_srgb = 3, depth32_float = 4, /// Bytes one texel occupies in a tightly packed transfer. pub fn texelBytes(self: TextureFormat) u32 { return switch (self) { .rgba8_unorm, .bgra8_unorm, .rgba8_srgb, .bgra8_srgb, .depth32_float => 4, }; } pub fn isDepth(self: TextureFormat) bool { return self == .depth32_float; }};Source: lib/gpu/src/root.zig:46
zig
pub const TextureFormat = contract.TextureFormat;Audit
| Definitions | 3 |
|---|---|
| Public names | 6 |
| Members | 5 |
| Version | 26.7.0 |
| Revision | daab053ee433 |