fix pipeline layout create bug
This commit is contained in:
parent
53c500c302
commit
e5cfa8aac7
4
vulkan.d
4
vulkan.d
@ -577,9 +577,9 @@ CreatePipelineLayout(T)(Vulkan* vk, T layouts, u32 push_const_size, bool compute
|
||||
desc_layouts = Alloc!(DescSetLayout)(&vk.frame_arenas[vk.frame_index], layouts.length + 1);
|
||||
desc_layouts[0] = vk.global_set_layout;
|
||||
|
||||
foreach(i; 1 .. layouts.length)
|
||||
foreach(i; 0 .. layouts.length)
|
||||
{
|
||||
desc_layouts[i] = layouts[i-1];
|
||||
desc_layouts[i+1] = layouts[i];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user