Fix shaders path for computeheadless and renderheadless

This commit is contained in:
Tom Hochstein 2023-07-12 10:00:34 -05:00
parent 83d8d02b64
commit a0ef2fcea6
2 changed files with 2 additions and 2 deletions

View file

@ -414,7 +414,7 @@ public:
if (commandLineParser.isSet("shaders")) {
shaderDir = commandLineParser.getValueAsString("shaders", "glsl");
}
const std::string shadersPath = getAssetPath() + "shaders/"+shaderDir+"/computeheadless/";
const std::string shadersPath = getShaderBasePath() + shaderDir + "/computeheadless/";
VkPipelineShaderStageCreateInfo shaderStage = {};
shaderStage.sType = VK_STRUCTURE_TYPE_PIPELINE_SHADER_STAGE_CREATE_INFO;

View file

@ -647,7 +647,7 @@ public:
if (commandLineParser.isSet("shaders")) {
shaderDir = commandLineParser.getValueAsString("shaders", "glsl");
}
const std::string shadersPath = getAssetPath() + "shaders/" + shaderDir + "/renderheadless/";
const std::string shadersPath = getShaderBasePath() + shaderDir + "/renderheadless/";
shaderStages[0].sType = VK_STRUCTURE_TYPE_PIPELINE_SHADER_STAGE_CREATE_INFO;
shaderStages[0].stage = VK_SHADER_STAGE_VERTEX_BIT;