mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-11-23 07:14:01 +00: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:
parent
08e8d406c1
commit
cce9d7a3f7
@ -796,7 +796,7 @@ impl Default for FilterMode {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[repr(C)]
|
#[repr(C)]
|
||||||
#[derive(Debug)]
|
#[derive(Clone, Debug, PartialEq)]
|
||||||
pub struct SamplerDescriptor<'a> {
|
pub struct SamplerDescriptor<'a> {
|
||||||
pub address_mode_u: AddressMode,
|
pub address_mode_u: AddressMode,
|
||||||
pub address_mode_v: AddressMode,
|
pub address_mode_v: AddressMode,
|
||||||
|
Loading…
Reference in New Issue
Block a user