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

@@ -3561,8 +3561,8 @@ static void D3D11_BeginRenderPass(
d3d11CommandBuffer->context,
dsv,
dsClearFlags,
depthStencilTargetInfo->clear_value.depth,
depthStencilTargetInfo->clear_value.stencil);
depthStencilTargetInfo->clear_depth,
depthStencilTargetInfo->clear_stencil);
}
}

View File

@@ -3905,8 +3905,8 @@ static void D3D12_BeginRenderPass(
d3d12CommandBuffer->graphicsCommandList,
subresource->dsvHandle.cpuHandle,
clearFlags,
depthStencilTargetInfo->clear_value.depth,
depthStencilTargetInfo->clear_value.stencil,
depthStencilTargetInfo->clear_depth,
depthStencilTargetInfo->clear_stencil,
0,
NULL);
}

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);

View File

@@ -8011,9 +8011,9 @@ static void VULKAN_BeginRenderPass(
if (depthStencilTargetInfo != NULL) {
clearValues[totalColorAttachmentCount].depthStencil.depth =
depthStencilTargetInfo->clear_value.depth;
depthStencilTargetInfo->clear_depth;
clearValues[totalColorAttachmentCount].depthStencil.stencil =
depthStencilTargetInfo->clear_value.stencil;
depthStencilTargetInfo->clear_stencil;
}
VkRenderPassBeginInfo renderPassBeginInfo;