tiny.gpu.SurfacePlatformSet
Defined in contract.
API (4)
Actions
Public operations.
Fields and members
Public fields and members.
Source
Source: lib/gpu/src/contract.zig:670
zig
pub const SurfacePlatformSet = struct { bits: u64 = 0, pub fn init(values: []const SurfacePlatformKind) SurfacePlatformSet { var set: SurfacePlatformSet = .{}; for (values) |value| set.insert(value); return set; } pub fn insert(self: *SurfacePlatformSet, value: SurfacePlatformKind) void { self.bits |= bitForSurfacePlatformKind(value); } pub fn contains(self: SurfacePlatformSet, value: SurfacePlatformKind) bool { return (self.bits & bitForSurfacePlatformKind(value)) != 0; }};Source: lib/gpu/src/root.zig:80
zig
pub const SurfacePlatformSet = contract.SurfacePlatformSet;Audit
| Definitions | 4 |
|---|---|
| Public names | 8 |
| Members | 1 |
| Version | 26.7.0 |
| Revision | daab053ee433 |