mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-12-02 11:44:07 +00:00
Merge #527
527: Add `Clone` and `PartialEq` implementations for `SamplerDescriptor` r=kvark a=mitchmindtree Helps when attempting to support multiple samplers in an immediate mode context (e.g. easily compare sampler descriptors and check if I need to add a command to switch bind groups). Co-authored-by: mitchmindtree <mitchell.nordine@gmail.com>
This commit is contained in:
commit
bf9e2db4b3
@ -796,7 +796,7 @@ impl Default for FilterMode {
|
||||
}
|
||||
|
||||
#[repr(C)]
|
||||
#[derive(Debug)]
|
||||
#[derive(Clone, Debug, PartialEq)]
|
||||
pub struct SamplerDescriptor<'a> {
|
||||
pub address_mode_u: AddressMode,
|
||||
pub address_mode_v: AddressMode,
|
||||
|
Loading…
Reference in New Issue
Block a user