From 46e56c68b9bcb004f75474506cd3f822035d1c92 Mon Sep 17 00:00:00 2001 From: saschawillems Date: Sat, 8 Oct 2016 17:04:23 +0200 Subject: [PATCH] Shader files path --- computecullandlod/computecullandlod.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/computecullandlod/computecullandlod.cpp b/computecullandlod/computecullandlod.cpp index e0471ead..9a8f03da 100644 --- a/computecullandlod/computecullandlod.cpp +++ b/computecullandlod/computecullandlod.cpp @@ -503,8 +503,8 @@ public: pipelineCreateInfo.pStages = shaderStages.data(); // Indirect (and instanced) pipeline for the plants - shaderStages[0] = loadShader(getAssetPath() + "shaders/indirectdraw/indirectdraw.vert.spv", VK_SHADER_STAGE_VERTEX_BIT); - shaderStages[1] = loadShader(getAssetPath() + "shaders/indirectdraw/indirectdraw.frag.spv", VK_SHADER_STAGE_FRAGMENT_BIT); + shaderStages[0] = loadShader(getAssetPath() + "shaders/computecullandlod/indirectdraw.vert.spv", VK_SHADER_STAGE_VERTEX_BIT); + shaderStages[1] = loadShader(getAssetPath() + "shaders/computecullandlod/indirectdraw.frag.spv", VK_SHADER_STAGE_FRAGMENT_BIT); VK_CHECK_RESULT(vkCreateGraphicsPipelines(device, pipelineCache, 1, &pipelineCreateInfo, nullptr, &pipelines.plants)); } @@ -742,7 +742,7 @@ public: // Create pipeline VkComputePipelineCreateInfo computePipelineCreateInfo = vkTools::initializers::computePipelineCreateInfo(compute.pipelineLayout, 0); - computePipelineCreateInfo.stage = loadShader(getAssetPath() + "shaders/indirectdraw/cull.comp.spv", VK_SHADER_STAGE_COMPUTE_BIT); + computePipelineCreateInfo.stage = loadShader(getAssetPath() + "shaders/computecullandlod/cull.comp.spv", VK_SHADER_STAGE_COMPUTE_BIT); // Use specialization constants to pass max. level of detail (determined by no. of meshes) VkSpecializationMapEntry specializationEntry{};