Skip to content

Commit 91f00d9

Browse files
committed
Unhardcode push constant size (whoopsie)
1 parent 3e7f382 commit 91f00d9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/git/artdeell/artvk/Vk11RenderPipeline.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public static Vk11RenderPipeline compile(
4646
VkPushConstantRange.Buffer range = VkPushConstantRange.calloc(1, stack)
4747
.stageFlags(VK10.VK_SHADER_STAGE_VERTEX_BIT | VK10.VK_SHADER_STAGE_FRAGMENT_BIT)
4848
.offset(0)
49-
.size(20);
49+
.size((int) pushConstantRange);
5050
createInfo.pPushConstantRanges(range);
5151
}
5252
LongBuffer pointer = stack.callocLong(1);

0 commit comments

Comments
 (0)