gpu: add Sampler.Descriptor

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-07-16 20:06:28 -07:00 committed by Stephen Gutekanst
parent 5b4c30871e
commit 80b8f9224c
2 changed files with 17 additions and 15 deletions

View file

@ -1,18 +1,3 @@
pub const WGPUSamplerDescriptor = extern struct {
next_in_chain: *const ChainedStruct,
label: ?[*:0]const u8 = null,
address_mode_u: AddressMode,
address_mode_v: AddressMode,
address_mode_w: AddressMode,
mag_filter: FilterMode,
min_filter: FilterMode,
mipmap_filter: FilterMode,
lod_min_clamp: f32,
lod_max_clamp: f32,
compare: CompareFunction,
max_anisotropy: u16,
};
pub const WGPUShaderModuleDescriptor = extern struct {
next_in_chain: *const ChainedStruct,
label: ?[*:0]const u8 = null,