Remove SDL_GPUDepthStencilValue struct

This commit is contained in:
cosmonaut
2024-09-09 10:40:14 -07:00
parent 80e541d1fc
commit d3091b9538
6 changed files with 11 additions and 28 deletions

View File

@@ -2204,7 +2204,7 @@ static void METAL_BeginRenderPass(
passDescriptor.depthAttachment.storeAction = SDLToMetal_StoreOp(
depthStencilTargetInfo->store_op,
texture->msaaHandle ? 1 : 0);
passDescriptor.depthAttachment.clearDepth = depthStencilTargetInfo->clear_value.depth;
passDescriptor.depthAttachment.clearDepth = depthStencilTargetInfo->clear_depth;
if (IsStencilFormat(container->header.info.format)) {
if (texture->msaaHandle) {
@@ -2217,7 +2217,7 @@ static void METAL_BeginRenderPass(
passDescriptor.stencilAttachment.storeAction = SDLToMetal_StoreOp(
depthStencilTargetInfo->store_op,
texture->msaaHandle ? 1 : 0);
passDescriptor.stencilAttachment.clearStencil = depthStencilTargetInfo->clear_value.stencil;
passDescriptor.stencilAttachment.clearStencil = depthStencilTargetInfo->clear_stencil;
}
METAL_INTERNAL_TrackTexture(metalCommandBuffer, texture);