Skip to documentation
SLOP

tiny.gpu.TextureUsage

Reference tiny.gpu TextureUsage

Defined in contract.

API (9)

Actions

Public operations.

Fields and members

Public fields and members.

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

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;
Called byCallsNo direct callsSurfaceCapabilitiessupportsUsageTextureCapabilitiessupportsUsageTextureUsagecontainsAll
Static calls · unresolved targets: 0 · external targets: 0.

Audit

Definitions3
Public names6
Members7
Version26.7.0
Revisiondaab053ee433