gpu: update defaults/optionality for SamplerDescriptor
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
accb253c27
commit
63f925902c
1 changed files with 10 additions and 10 deletions
|
|
@ -38,14 +38,14 @@ pub const SamplerBindingLayout = extern struct {
|
||||||
pub const SamplerDescriptor = extern struct {
|
pub const SamplerDescriptor = extern struct {
|
||||||
next_in_chain: *const ChainedStruct,
|
next_in_chain: *const ChainedStruct,
|
||||||
label: ?[*:0]const u8 = null,
|
label: ?[*:0]const u8 = null,
|
||||||
address_mode_u: SamplerAddressMode,
|
address_mode_u: SamplerAddressMode = .clamp_to_edge,
|
||||||
address_mode_v: SamplerAddressMode,
|
address_mode_v: SamplerAddressMode = .clamp_to_edge,
|
||||||
address_mode_w: SamplerAddressMode,
|
address_mode_w: SamplerAddressMode = .clamp_to_edge,
|
||||||
mag_filter: FilterMode,
|
mag_filter: FilterMode = .nearest,
|
||||||
min_filter: FilterMode,
|
min_filter: FilterMode = .nearest,
|
||||||
mipmap_filter: FilterMode,
|
mipmap_filter: FilterMode = .nearest,
|
||||||
lod_min_clamp: f32,
|
lod_min_clamp: f32 = 0.0,
|
||||||
lod_max_clamp: f32,
|
lod_max_clamp: f32 = 1000.0,
|
||||||
compare: CompareFunction,
|
compare: CompareFunction = .undef,
|
||||||
max_anisotropy: u16,
|
max_anisotropy: u16 = 1,
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue