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:
mitchmindtree 2020-03-19 19:44:11 +01:00
parent 08e8d406c1
commit cce9d7a3f7

View File

@ -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,