pass a uniform

This commit is contained in:
David Allemang
2024-07-08 10:51:42 -04:00
parent 29cd7fa5e5
commit 53d063246b
3 changed files with 57 additions and 12 deletions

View File

@@ -44,14 +44,9 @@ pub const Vertex = extern struct {
};
pub const Uniform = extern struct {
proj: [16]f32 = .{
0.5, 0, 0, 0,
0, 1, 0, 0,
0, 0, 1, 0,
0, 0, 0, 1,
},
proj: [16]f32,
const DescriptorLayoutInfo = vk.DescriptorSetLayoutCreateInfo{
pub const DescriptorLayoutInfo = vk.DescriptorSetLayoutCreateInfo{
.flags = .{},
.binding_count = 1,
.p_bindings = &.{