video_core: renderer_vulkan: support for passes w\o a fs
This commit is contained in:
parent
674bd4a2ed
commit
d05cbd88bb
|
@ -144,18 +144,21 @@ GraphicsPipeline::GraphicsPipeline(const Instance& instance_, Scheduler& schedul
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
u32 shader_count = 2;
|
u32 shader_count = 1;
|
||||||
std::array<vk::PipelineShaderStageCreateInfo, MaxShaderStages> shader_stages;
|
std::array<vk::PipelineShaderStageCreateInfo, MaxShaderStages> shader_stages;
|
||||||
shader_stages[0] = vk::PipelineShaderStageCreateInfo{
|
shader_stages[0] = vk::PipelineShaderStageCreateInfo{
|
||||||
.stage = vk::ShaderStageFlagBits::eVertex,
|
.stage = vk::ShaderStageFlagBits::eVertex,
|
||||||
.module = modules[0],
|
.module = modules[0],
|
||||||
.pName = "main",
|
.pName = "main",
|
||||||
};
|
};
|
||||||
shader_stages[1] = vk::PipelineShaderStageCreateInfo{
|
if (modules[4]) {
|
||||||
.stage = vk::ShaderStageFlagBits::eFragment,
|
shader_stages[1] = vk::PipelineShaderStageCreateInfo{
|
||||||
.module = modules[4],
|
.stage = vk::ShaderStageFlagBits::eFragment,
|
||||||
.pName = "main",
|
.module = modules[4],
|
||||||
};
|
.pName = "main",
|
||||||
|
};
|
||||||
|
++shader_count;
|
||||||
|
}
|
||||||
|
|
||||||
const auto it = std::ranges::find(key.color_formats, vk::Format::eUndefined);
|
const auto it = std::ranges::find(key.color_formats, vk::Format::eUndefined);
|
||||||
const u32 num_color_formats = std::distance(key.color_formats.begin(), it);
|
const u32 num_color_formats = std::distance(key.color_formats.begin(), it);
|
||||||
|
|
Loading…
Reference in New Issue