diff options
| author | 2020-01-18 18:50:45 -0300 | |
|---|---|---|
| committer | 2020-01-18 18:50:47 -0300 | |
| commit | 94915d4ea1be93a9a2eb6da599762a79a153618f (patch) | |
| tree | c84fc3916c59215a312fb4b334118390a15d9aab /src/video_core/renderer_vulkan | |
| parent | Merge pull request #3311 from ReinUsesLisp/z32fx24s8 (diff) | |
| download | yuzu-94915d4ea1be93a9a2eb6da599762a79a153618f.tar.gz yuzu-94915d4ea1be93a9a2eb6da599762a79a153618f.tar.xz yuzu-94915d4ea1be93a9a2eb6da599762a79a153618f.zip | |
vk_graphics_pipeline: Set front facing properly
Front face was being forced to a certain value when cull face is
disabled. Set a default value on initialization and drop the forcefully
set front facing value with culling disabled.
Diffstat (limited to 'src/video_core/renderer_vulkan')
| -rw-r--r-- | src/video_core/renderer_vulkan/vk_graphics_pipeline.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/video_core/renderer_vulkan/vk_graphics_pipeline.cpp b/src/video_core/renderer_vulkan/vk_graphics_pipeline.cpp index 2e0536bf6..b155dfb49 100644 --- a/src/video_core/renderer_vulkan/vk_graphics_pipeline.cpp +++ b/src/video_core/renderer_vulkan/vk_graphics_pipeline.cpp | |||
| @@ -191,8 +191,7 @@ UniquePipeline VKGraphicsPipeline::CreatePipeline(const RenderPassParams& render | |||
| 191 | const vk::PipelineRasterizationStateCreateInfo rasterizer_ci( | 191 | const vk::PipelineRasterizationStateCreateInfo rasterizer_ci( |
| 192 | {}, rs.depth_clamp_enable, false, vk::PolygonMode::eFill, | 192 | {}, rs.depth_clamp_enable, false, vk::PolygonMode::eFill, |
| 193 | rs.cull_enable ? MaxwellToVK::CullFace(rs.cull_face) : vk::CullModeFlagBits::eNone, | 193 | rs.cull_enable ? MaxwellToVK::CullFace(rs.cull_face) : vk::CullModeFlagBits::eNone, |
| 194 | rs.cull_enable ? MaxwellToVK::FrontFace(rs.front_face) : vk::FrontFace::eCounterClockwise, | 194 | MaxwellToVK::FrontFace(rs.front_face), rs.depth_bias_enable, 0.0f, 0.0f, 0.0f, 1.0f); |
| 195 | rs.depth_bias_enable, 0.0f, 0.0f, 0.0f, 1.0f); | ||
| 196 | 195 | ||
| 197 | const vk::PipelineMultisampleStateCreateInfo multisampling_ci( | 196 | const vk::PipelineMultisampleStateCreateInfo multisampling_ci( |
| 198 | {}, vk::SampleCountFlagBits::e1, false, 0.0f, nullptr, false, false); | 197 | {}, vk::SampleCountFlagBits::e1, false, 0.0f, nullptr, false, false); |