gpu: add Sampler.BindingLayout
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
b90658aba8
commit
5b4c30871e
2 changed files with 7 additions and 5 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue