Add first working rotation
This commit is contained in:
parent
ec6e0c28be
commit
784e5b90be
7 changed files with 94 additions and 10 deletions
|
@ -22,7 +22,7 @@ use vulkano::swapchain::Swapchain;
|
|||
|
||||
use crate::renderer::Vertex2D;
|
||||
|
||||
mod shaders {
|
||||
pub mod shaders {
|
||||
pub mod vs {
|
||||
vulkano_shaders::shader! {
|
||||
ty: "vertex",
|
||||
|
@ -52,7 +52,7 @@ pub fn create_triangle_pipeline(
|
|||
|
||||
let mut bindings = BTreeMap::<u32, DescriptorSetLayoutBinding>::new();
|
||||
let mut descriptor_set_layout_binding =
|
||||
DescriptorSetLayoutBinding::descriptor_type(DescriptorType::UniformBufferDynamic);
|
||||
DescriptorSetLayoutBinding::descriptor_type(DescriptorType::UniformBuffer);
|
||||
descriptor_set_layout_binding.stages = ShaderStages::VERTEX;
|
||||
bindings.insert(0, descriptor_set_layout_binding);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue