mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-06 14:43:20 +00:00
GPU D3D12: Fix indirect buffers not being refcounted
This commit is contained in:
parent
149ecffd6f
commit
ff14a1781f
1 changed files with 6 additions and 0 deletions
|
|
@ -4827,6 +4827,8 @@ static void D3D12_DrawPrimitivesIndirect(
|
|||
offset,
|
||||
NULL,
|
||||
0);
|
||||
|
||||
D3D12_INTERNAL_TrackBuffer(d3d12CommandBuffer, d3d12Buffer);
|
||||
}
|
||||
|
||||
static void D3D12_DrawIndexedPrimitivesIndirect(
|
||||
|
|
@ -4848,6 +4850,8 @@ static void D3D12_DrawIndexedPrimitivesIndirect(
|
|||
offset,
|
||||
NULL,
|
||||
0);
|
||||
|
||||
D3D12_INTERNAL_TrackBuffer(d3d12CommandBuffer, d3d12Buffer);
|
||||
}
|
||||
|
||||
static void D3D12_EndRenderPass(
|
||||
|
|
@ -5303,6 +5307,8 @@ static void D3D12_DispatchComputeIndirect(
|
|||
offset,
|
||||
NULL,
|
||||
0);
|
||||
|
||||
D3D12_INTERNAL_TrackBuffer(d3d12CommandBuffer, d3d12Buffer);
|
||||
}
|
||||
|
||||
static void D3D12_EndComputePass(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue