gpu: add Sampler.BindingLayout

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-03-11 15:39:05 -07:00 committed by Stephen Gutekanst
parent e2ed25babc
commit 58c27b41a8
4 changed files with 13 additions and 14 deletions

View file

@ -23,8 +23,21 @@ pub inline fn setLabel(sampler: Sampler, label: [:0]const u8) void {
sampler.vtable.setLabel(sampler.ptr, label);
}
pub const BindingType = enum(u32) {
none = 0x00000000,
filtering = 0x00000001,
non_filtering = 0x00000002,
comparison = 0x00000003,
};
pub const BindingLayout = struct {
type: BindingType,
};
test "syntax" {
_ = VTable;
_ = reference;
_ = release;
_ = BindingType;
_ = BindingLayout;
}