Closed Delfi1 closed 4 months ago
May I see the definition of Vertex
?
May I see the definition of
Vertex
?
pub use vulkano::pipeline::graphics::vertex_input::Vertex as VulkanoVertex;
#[derive(Debug, Clone, BufferContents, VulkanoVertex)]
#[repr(C)]
pub struct Vertex {
#[format(R64G64B64_SFLOAT)]
pub position: [f64; 3],
#[format(R64G64B64_SFLOAT)]
pub color: [f64; 3],
}
That's the wrong vertex format, it should be R32G32B32_SFLOAT
.
That's the wrong vertex format, it should be
R32G32B32_SFLOAT
.
OH THAKS I've been at it for 5 hours, thank you!!!!
I forgot to mention that you need to change it from f64
to f32
as well, to match the format and shader.
I forgot to mention that you need to change it from
f64
tof32
as well, to match the format and shader.
Yeah. I changed it right away as I realized my mistake.
I can't figure out why the graphics pipeline isn't being created.
Error:
Vertex shader:
Pipeline: