tiny.gpu.SubgroupFacts
Defined in contract.
API (9)
Actions
Public operations.
Fields and members
Public fields and members.
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;Audit
| Definitions | 2 |
|---|---|
| Public names | 4 |
| Members | 8 |
| Version | 26.7.0 |
| Revision | daab053ee433 |