Skip to documentation
SLOP

tiny.gpu.TextureFormat

Reference tiny.gpu TextureFormat

Defined in contract.

API (7)

Actions

Public operations.

Fields and members

Public fields and members.

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

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

Definitions3
Public names6
Members5
Version26.7.0
Revisiondaab053ee433