Made AttributeInfo derive Copy, Clone and Debug (#1043)

This commit is contained in:
Jakub Hlusička 2018-09-20 16:25:12 +02:00 committed by Lucas Kent
parent b507034df7
commit d931bfdad0
2 changed files with 2 additions and 0 deletions

View File

@ -4,6 +4,7 @@
each with a matching enum indicating the usage that was missing. each with a matching enum indicating the usage that was missing.
- Fix instance_count when using draw_index with instance buffers - Fix instance_count when using draw_index with instance buffers
- Added a `reinterpret` function to `BufferSlice` - Added a `reinterpret` function to `BufferSlice`
- Made `AttributeInfo` derive `Copy`, `Clone` and `Debug`
- Use [google/shaderc](https://github.com/google/shaderc-rs) for shader compilation - Use [google/shaderc](https://github.com/google/shaderc-rs) for shader compilation

View File

@ -59,6 +59,7 @@ pub enum InputRate {
/// Information about a single attribute within a vertex. /// Information about a single attribute within a vertex.
/// TODO: change that API /// TODO: change that API
#[derive(Copy, Clone, Debug)]
pub struct AttributeInfo { pub struct AttributeInfo {
/// Number of bytes between the start of a vertex and the location of attribute. /// Number of bytes between the start of a vertex and the location of attribute.
pub offset: usize, pub offset: usize,