Fix shaders path for computeheadless and renderheadless
This commit is contained in:
parent
83d8d02b64
commit
a0ef2fcea6
2 changed files with 2 additions and 2 deletions
|
|
@ -414,7 +414,7 @@ public:
|
||||||
if (commandLineParser.isSet("shaders")) {
|
if (commandLineParser.isSet("shaders")) {
|
||||||
shaderDir = commandLineParser.getValueAsString("shaders", "glsl");
|
shaderDir = commandLineParser.getValueAsString("shaders", "glsl");
|
||||||
}
|
}
|
||||||
const std::string shadersPath = getAssetPath() + "shaders/"+shaderDir+"/computeheadless/";
|
const std::string shadersPath = getShaderBasePath() + shaderDir + "/computeheadless/";
|
||||||
|
|
||||||
VkPipelineShaderStageCreateInfo shaderStage = {};
|
VkPipelineShaderStageCreateInfo shaderStage = {};
|
||||||
shaderStage.sType = VK_STRUCTURE_TYPE_PIPELINE_SHADER_STAGE_CREATE_INFO;
|
shaderStage.sType = VK_STRUCTURE_TYPE_PIPELINE_SHADER_STAGE_CREATE_INFO;
|
||||||
|
|
|
||||||
|
|
@ -647,7 +647,7 @@ public:
|
||||||
if (commandLineParser.isSet("shaders")) {
|
if (commandLineParser.isSet("shaders")) {
|
||||||
shaderDir = commandLineParser.getValueAsString("shaders", "glsl");
|
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].sType = VK_STRUCTURE_TYPE_PIPELINE_SHADER_STAGE_CREATE_INFO;
|
||||||
shaderStages[0].stage = VK_SHADER_STAGE_VERTEX_BIT;
|
shaderStages[0].stage = VK_SHADER_STAGE_VERTEX_BIT;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue