Require VertexInputDescription to be ReprC

This commit is contained in:
hodasemi 2023-01-27 10:23:54 +01:00
parent a78f938273
commit fe75b39d01
2 changed files with 3 additions and 1 deletions

View file

@ -47,3 +47,5 @@ pub use vulkan_sys::prelude::*;
pub use super::render_target::{sub_pass::*, *};
pub use super::single_submit::SingleSubmit;
pub use safer_ffi::prelude::*;

View file

@ -44,7 +44,7 @@ impl Default for ShaderType {
}
}
pub trait VertexInputDescription {
pub trait VertexInputDescription: ReprC {
fn bindings() -> Vec<VkVertexInputBindingDescription>;
fn attributes() -> Vec<VkVertexInputAttributeDescription>;
}