mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-18 12:08:58 +00:00
GPU: Add enable_depth_clip to RasterizerState (#10964)
This commit is contained in:
parent
04bb105d09
commit
5ff6e8d522
5 changed files with 22 additions and 4 deletions
|
|
@ -6175,7 +6175,7 @@ static SDL_GPUGraphicsPipeline *VULKAN_CreateGraphicsPipeline(
|
|||
rasterizationStateCreateInfo.sType = VK_STRUCTURE_TYPE_PIPELINE_RASTERIZATION_STATE_CREATE_INFO;
|
||||
rasterizationStateCreateInfo.pNext = NULL;
|
||||
rasterizationStateCreateInfo.flags = 0;
|
||||
rasterizationStateCreateInfo.depthClampEnable = VK_FALSE;
|
||||
rasterizationStateCreateInfo.depthClampEnable = !createinfo->rasterizer_state.enable_depth_clip;
|
||||
rasterizationStateCreateInfo.rasterizerDiscardEnable = VK_FALSE;
|
||||
rasterizationStateCreateInfo.polygonMode = SDLToVK_PolygonMode(
|
||||
renderer,
|
||||
|
|
@ -11030,6 +11030,8 @@ static Uint8 VULKAN_INTERNAL_CreateLogicalDevice(
|
|||
desiredDeviceFeatures.independentBlend = VK_TRUE;
|
||||
desiredDeviceFeatures.samplerAnisotropy = VK_TRUE;
|
||||
desiredDeviceFeatures.imageCubeArray = VK_TRUE;
|
||||
desiredDeviceFeatures.depthClamp = VK_TRUE;
|
||||
desiredDeviceFeatures.shaderClipDistance = VK_TRUE;
|
||||
|
||||
if (haveDeviceFeatures.fillModeNonSolid) {
|
||||
desiredDeviceFeatures.fillModeNonSolid = VK_TRUE;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue