WIP: Vulkan: Workbench #107886

Closed
Jeroen Bakker wants to merge 88 commits from Jeroen-Bakker:vulkan-draw-manager-workbench into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
2 changed files with 2 additions and 4 deletions
Showing only changes of commit f7fd0f2a9c - Show all commits

View File

@ -81,7 +81,7 @@ VkViewport VKFrameBuffer::vk_viewport_get() const
viewport.y = viewport_rect[1];
viewport.width = viewport_rect[2];
viewport.height = viewport_rect[3];
viewport.minDepth = -1.0f;
viewport.minDepth = 0.0f;
viewport.maxDepth = 1.0f;
/*

View File

@ -16,9 +16,7 @@ VKPipelineStateManager::VKPipelineStateManager()
rasterization_state = {};
rasterization_state.sType = VK_STRUCTURE_TYPE_PIPELINE_RASTERIZATION_STATE_CREATE_INFO;
rasterization_state.lineWidth = 1.0f;
/* By enabling depth clamping we disable depth clipping. */
/* Note that this is only possible when device feature is available, which isn't on AMD/Mesa.*/
rasterization_state.depthClampEnable = VK_TRUE;
rasterization_state.depthClampEnable = VK_FALSE;
pipeline_color_blend_state = {};
pipeline_color_blend_state.sType = VK_STRUCTURE_TYPE_PIPELINE_COLOR_BLEND_STATE_CREATE_INFO;