mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-24 00:11:11 +01:00
Add Clone and PartialEq implementations for SamplerDescriptor
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).
This commit is contained in:
1 parent
08e8d406c1
commit
cce9d7a3f7
1 file changed
+1
-1
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user