mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-07-22 10:04:39 +00:00
vk_graphics_pipeline: Enable depth clamp when depth clip is disabled and extension is not supported
Without the depth clip extension depth clipping is controlled by depth clamping
This commit is contained in:
parent
791ca44ada
commit
d5afc68c83
@ -111,7 +111,8 @@ GraphicsPipeline::GraphicsPipeline(
|
||||
|
||||
vk::StructureChain raster_chain = {
|
||||
vk::PipelineRasterizationStateCreateInfo{
|
||||
.depthClampEnable = key.depth_clamp_enable,
|
||||
.depthClampEnable = key.depth_clamp_enable ||
|
||||
(!key.depth_clip_enable && !instance.IsDepthClipEnableSupported()),
|
||||
.rasterizerDiscardEnable = false,
|
||||
.polygonMode = LiverpoolToVK::PolygonMode(key.polygon_mode),
|
||||
.lineWidth = 1.0f,
|
||||
|
Loading…
Reference in New Issue
Block a user