Skip to content

Commit c17dd97

Browse files
whitebelyashartdeell
authored andcommitted
Use Vulkan 1.0 variant of push constants command
1 parent fca09db commit c17dd97

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/git/artdeell/compat/sodium/VKDrawContextMixin.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public void injectValues(RenderPass pass, RenderPipeline pipeline, CallbackInfo
4343

4444
@Inject(method = "updateData", at = @At(value = "INVOKE", target = "Lorg/lwjgl/vulkan/VK13;nvkCmdPushConstants(Lorg/lwjgl/vulkan/VkCommandBuffer;JIIIJ)V"), cancellable = true)
4545
public void injectPushConstant(RenderRegion region, CameraTransform camera, CallbackInfo ci, @Local(name = "memory") long memory, @Local(name = "stack") MemoryStack stack){
46-
VK11.nvkCmdPushConstants(this.cmdBuf, this.layout, VK10.VK_SHADER_STAGE_VERTEX_BIT | VK10.VK_SHADER_STAGE_FRAGMENT_BIT, 0, DrawContext.PUSH_CONSTANT_RANGE, memory);
46+
VK10.nvkCmdPushConstants(this.cmdBuf, this.layout, VK10.VK_SHADER_STAGE_VERTEX_BIT | VK10.VK_SHADER_STAGE_FRAGMENT_BIT, 0, DrawContext.PUSH_CONSTANT_RANGE, memory);
4747
stack.close();
4848
ci.cancel();
4949
}

0 commit comments

Comments
 (0)