Commit 360682f 1 parent 0059270 commit 360682f Copy full SHA for 360682f
File tree 4 files changed +3
-14
lines changed
4 files changed +3
-14
lines changed Original file line number Diff line number Diff line change @@ -583,15 +583,12 @@ typedef struct SDL_GpuDepthStencilState
583
583
SDL_bool depthTestEnable ;
584
584
SDL_bool depthWriteEnable ;
585
585
SDL_GpuCompareOp compareOp ;
586
- SDL_bool depthBoundsTestEnable ;
587
586
SDL_bool stencilTestEnable ;
588
587
SDL_GpuStencilOpState backStencilState ;
589
588
SDL_GpuStencilOpState frontStencilState ;
590
589
Uint32 compareMask ;
591
590
Uint32 writeMask ;
592
591
Uint32 reference ;
593
- float minDepthBounds ;
594
- float maxDepthBounds ;
595
592
} SDL_GpuDepthStencilState ;
596
593
597
594
typedef struct SDL_GpuColorAttachmentDescription
Original file line number Diff line number Diff line change @@ -1349,10 +1349,6 @@ static ID3D11DepthStencilState *D3D11_INTERNAL_FetchDepthStencilState(
1349
1349
dsDesc .StencilReadMask = depthStencilState .compareMask ;
1350
1350
dsDesc .StencilWriteMask = depthStencilState .writeMask ;
1351
1351
1352
- if (depthStencilState .depthBoundsTestEnable ) {
1353
- SDL_LogWarn (SDL_LOG_CATEGORY_APPLICATION , "D3D11 does not support Depth Bounds tests!" );
1354
- }
1355
-
1356
1352
res = ID3D11Device_CreateDepthStencilState (
1357
1353
renderer -> device ,
1358
1354
& dsDesc ,
Original file line number Diff line number Diff line change @@ -935,7 +935,6 @@ static void METAL_ReleaseGraphicsPipeline(
935
935
936
936
/* Depth Stencil */
937
937
938
- /* FIXME: depth min/max? */
939
938
if (pipelineCreateInfo->attachmentInfo .hasDepthStencilAttachment ) {
940
939
pipelineDescriptor.depthAttachmentPixelFormat = SDLToMetal_SurfaceFormat[pipelineCreateInfo->attachmentInfo.depthStencilFormat];
941
940
Original file line number Diff line number Diff line change @@ -6359,16 +6359,13 @@ static SDL_GpuGraphicsPipeline *VULKAN_CreateGraphicsPipeline(
6359
6359
depthStencilStateCreateInfo .depthWriteEnable =
6360
6360
pipelineCreateInfo -> depthStencilState .depthWriteEnable ;
6361
6361
depthStencilStateCreateInfo .depthCompareOp = SDLToVK_CompareOp [pipelineCreateInfo -> depthStencilState .compareOp ];
6362
- depthStencilStateCreateInfo .depthBoundsTestEnable =
6363
- pipelineCreateInfo -> depthStencilState .depthBoundsTestEnable ;
6362
+ depthStencilStateCreateInfo .depthBoundsTestEnable = VK_FALSE ;
6364
6363
depthStencilStateCreateInfo .stencilTestEnable =
6365
6364
pipelineCreateInfo -> depthStencilState .stencilTestEnable ;
6366
6365
depthStencilStateCreateInfo .front = frontStencilState ;
6367
6366
depthStencilStateCreateInfo .back = backStencilState ;
6368
- depthStencilStateCreateInfo .minDepthBounds =
6369
- pipelineCreateInfo -> depthStencilState .minDepthBounds ;
6370
- depthStencilStateCreateInfo .maxDepthBounds =
6371
- pipelineCreateInfo -> depthStencilState .maxDepthBounds ;
6367
+ depthStencilStateCreateInfo .minDepthBounds = 0 ; /* unused */
6368
+ depthStencilStateCreateInfo .maxDepthBounds = 0 ; /* unused */
6372
6369
6373
6370
/* Color Blend */
6374
6371
You can’t perform that action at this time.
0 commit comments