Skip to documentation
SLOP

tiny.gpu.SubgroupFacts

Reference tiny.gpu SubgroupFacts

Defined in contract.

API (9)

Actions

Public operations.

Fields and members

Public fields and members.

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

Source

Source: lib/gpu/src/contract.zig:815

zig
pub const SubgroupFacts = struct {    supported: bool = false,    size_min: u32 = 0,    size_max: u32 = 0,    shuffle: bool = false,    ballot: bool = false,    vote: bool = false,    arithmetic: bool = false,    scan: bool = false,    pub fn satisfies(self: SubgroupFacts, required: choir_abi.SubgroupRequirements) bool {        if (required.supported and !self.supported) return false;        if (required.size_min != 0 and (!self.supported or self.size_max < required.size_min)) return false;        if (required.size_max != 0 and (!self.supported or self.size_min > required.size_max)) return false;        if (required.shuffle and (!self.supported or !self.shuffle)) return false;        if (required.ballot and (!self.supported or !self.ballot)) return false;        if (required.vote and (!self.supported or !self.vote)) return false;        if (required.arithmetic and (!self.supported or !self.arithmetic)) return false;        if (required.scan and (!self.supported or !self.scan)) return false;        return true;    }};

Source: lib/gpu/src/root.zig:89

zig
pub const SubgroupFacts = contract.SubgroupFacts;
Called byCallsNo direct callsBackendCapabilitiessupportsSubgroupSubgroupFactssatisfies
Static calls · unresolved targets: 1 · external targets: 0.

Audit

Definitions2
Public names4
Members8
Version26.7.0
Revisiondaab053ee433