From be54e748f02c9cee347a376d4527e95d48103c5a Mon Sep 17 00:00:00 2001 From: Michael Barriault Date: Wed, 17 Apr 2019 21:30:42 +0100 Subject: [PATCH] Fix tessellated indirect draws using wrong kernels to map parameters. --- MoltenVK/MoltenVK/Commands/MVKCommandResourceFactory.mm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MoltenVK/MoltenVK/Commands/MVKCommandResourceFactory.mm b/MoltenVK/MoltenVK/Commands/MVKCommandResourceFactory.mm index fad8ff66..f948dae4 100644 --- a/MoltenVK/MoltenVK/Commands/MVKCommandResourceFactory.mm +++ b/MoltenVK/MoltenVK/Commands/MVKCommandResourceFactory.mm @@ -386,8 +386,8 @@ id MVKCommandResourceFactory::newCmdCopyBufferToImage3D } id MVKCommandResourceFactory::newCmdDrawIndirectConvertBuffersMTLComputePipelineState(bool indexed) { - return newMTLComputePipelineState(getFunctionNamed(indexed ? "cmdDrawIndirectConvertBuffers" : - "cmdDrawIndexedIndirectConvertBuffers")); + return newMTLComputePipelineState(getFunctionNamed(indexed ? "cmdDrawIndexedIndirectConvertBuffers" : + "cmdDrawIndirectConvertBuffers")); } id MVKCommandResourceFactory::newCmdDrawIndexedCopyIndexBufferMTLComputePipelineState(MTLIndexType type) {