Fix build
This commit is contained in:
parent
2a226d8707
commit
63171f468d
@ -8,6 +8,10 @@ pub const DescriptorSets = struct {
|
||||
const Global = struct {
|
||||
pub const UBO = enum(u32) {
|
||||
GlobalUniform = 0,
|
||||
|
||||
pub fn value(self: UBO) u32 {
|
||||
return @intFromEnum(self);
|
||||
}
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -29,7 +33,7 @@ pub fn init(gc: *GraphicsContext) !ShaderManager {
|
||||
const descriptor_set_layout_bindings = [_]vk.DescriptorSetLayoutBinding{
|
||||
vk.DescriptorSetLayoutBinding{
|
||||
.descriptor_type = .uniform_buffer,
|
||||
.binding = DescriptorSets.Global.UBO.GlobalUniform,
|
||||
.binding = DescriptorSets.Global.UBO.GlobalUniform.value(),
|
||||
.descriptor_count = 1,
|
||||
.stage_flags = vk.ShaderStageFlags.fromInt(0x7FFFFFFF), // SHADER_STAGE_ALL
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user