Use named binding constant
This commit is contained in:
parent
4fd797c048
commit
2a226d8707
@ -29,7 +29,7 @@ pub fn init(gc: *GraphicsContext) !ShaderManager {
|
|||||||
const descriptor_set_layout_bindings = [_]vk.DescriptorSetLayoutBinding{
|
const descriptor_set_layout_bindings = [_]vk.DescriptorSetLayoutBinding{
|
||||||
vk.DescriptorSetLayoutBinding{
|
vk.DescriptorSetLayoutBinding{
|
||||||
.descriptor_type = .uniform_buffer,
|
.descriptor_type = .uniform_buffer,
|
||||||
.binding = 0,
|
.binding = DescriptorSets.Global.UBO.GlobalUniform,
|
||||||
.descriptor_count = 1,
|
.descriptor_count = 1,
|
||||||
.stage_flags = vk.ShaderStageFlags.fromInt(0x7FFFFFFF), // SHADER_STAGE_ALL
|
.stage_flags = vk.ShaderStageFlags.fromInt(0x7FFFFFFF), // SHADER_STAGE_ALL
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user