From 24009fa0aa6ce83b2b84fb4aeda3553c13bf40f9 Mon Sep 17 00:00:00 2001 From: Pawel Lapinski Date: Fri, 13 Apr 2018 12:15:54 +0200 Subject: [PATCH] Raytraing - fixed wrongly removed pipeline binding function. --- examples/raytracing/raytracing.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/raytracing/raytracing.cpp b/examples/raytracing/raytracing.cpp index bb8f147c..08ce2083 100644 --- a/examples/raytracing/raytracing.cpp +++ b/examples/raytracing/raytracing.cpp @@ -283,6 +283,7 @@ public: VK_CHECK_RESULT(vkBeginCommandBuffer(compute.commandBuffer, &cmdBufInfo)); + vkCmdBindPipeline(compute.commandBuffer, VK_PIPELINE_BIND_POINT_COMPUTE, compute.pipeline); vkCmdBindDescriptorSets(compute.commandBuffer, VK_PIPELINE_BIND_POINT_COMPUTE, compute.pipelineLayout, 0, 1, &compute.descriptorSet, 0, 0); vkCmdDispatch(compute.commandBuffer, textureComputeTarget.width / 16, textureComputeTarget.height / 16, 1);