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:
bors[bot] 2020-03-22 20:25:48 +00:00 committed by GitHub
commit bf9e2db4b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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