gpu: add Sampler.BindingLayout

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-07-16 20:05:16 -07:00 committed by Stephen Gutekanst
parent b90658aba8
commit 5b4c30871e
2 changed files with 7 additions and 5 deletions

View file

@ -1,8 +1,3 @@
pub const SamplerBindingLayout = extern struct {
next_in_chain: *const ChainedStruct,
type: SamplerBindingType,
};
pub const WGPUSamplerDescriptor = extern struct {
next_in_chain: *const ChainedStruct,
label: ?[*:0]const u8 = null,

View file

@ -1,3 +1,5 @@
const ChainedStruct = @import("types.zig").ChainedStruct;
pub const Sampler = enum(usize) {
_,
@ -15,4 +17,9 @@ pub const Sampler = enum(usize) {
non_filtering = 0x00000002,
comparison = 0x00000003,
};
pub const BindingLayout = extern struct {
next_in_chain: *const ChainedStruct,
type: BindingType,
};
};