vk_graphics_pipeline: Prioritize depth clip when separate clip/clamp control is not supported. (#3471)

This commit is contained in:
squidbus
2025-08-29 07:45:53 -07:00
committed by GitHub
parent 1d459474a2
commit 8ed6572393

View File

@@ -111,8 +111,8 @@ GraphicsPipeline::GraphicsPipeline(
vk::StructureChain raster_chain = { vk::StructureChain raster_chain = {
vk::PipelineRasterizationStateCreateInfo{ vk::PipelineRasterizationStateCreateInfo{
.depthClampEnable = key.depth_clamp_enable || .depthClampEnable = key.depth_clamp_enable &&
(!key.depth_clip_enable && !instance.IsDepthClipEnableSupported()), (!key.depth_clip_enable || instance.IsDepthClipEnableSupported()),
.rasterizerDiscardEnable = false, .rasterizerDiscardEnable = false,
.polygonMode = LiverpoolToVK::PolygonMode(key.polygon_mode), .polygonMode = LiverpoolToVK::PolygonMode(key.polygon_mode),
.lineWidth = 1.0f, .lineWidth = 1.0f,