Make BufferUsage derive PartialEq and Eq (#1164)

This commit is contained in:
Jakub Hlusička 2019-02-06 12:42:13 +01:00 committed by Lucas Kent
parent a3d503a5e5
commit 5893dad066
2 changed files with 2 additions and 1 deletions

View File

@ -3,6 +3,7 @@
- Add support for `#include "..."` and `#include <...>` directives within source
files.
- Add a `union` method for the extensions types.
- Make `BufferUsage` derive `PartialEq` and `Eq`
# Version 0.11.1 (2018-11-16)

View File

@ -16,7 +16,7 @@ use vk;
///
/// Some methods are provided to build `BufferUsage` structs for some common situations. However
/// there is no restriction in the combination of BufferUsages that can be enabled.
#[derive(Debug, Copy, Clone)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct BufferUsage {
pub transfer_source: bool,
pub transfer_destination: bool,