Move uav FIXME's to API FIXME's

d3d11
Caleb Cornett 2024-02-11 00:08:34 -06:00 committed by cosmonaut
parent 7274173b44
commit 27b166dfde
1 changed files with 6 additions and 4 deletions

View File

@ -1544,12 +1544,13 @@ static Refresh_Texture* D3D11_CreateTexture(
} }
/* Create the UAV, if applicable */ /* Create the UAV, if applicable */
/* API FIXME: Create these dynamically as needed per mip level! */
if (isCompute) if (isCompute)
{ {
D3D11_UNORDERED_ACCESS_VIEW_DESC uavDesc; D3D11_UNORDERED_ACCESS_VIEW_DESC uavDesc;
uavDesc.Format = format; uavDesc.Format = format;
uavDesc.ViewDimension = D3D11_UAV_DIMENSION_TEXTURE2D; uavDesc.ViewDimension = D3D11_UAV_DIMENSION_TEXTURE2D;
uavDesc.Texture2D.MipSlice = 0; /* FIXME */ uavDesc.Texture2D.MipSlice = 0;
res = ID3D11Device_CreateUnorderedAccessView( res = ID3D11Device_CreateUnorderedAccessView(
renderer->device, renderer->device,
@ -1659,14 +1660,15 @@ static Refresh_Texture* D3D11_CreateTexture(
} }
/* Create the UAV, if applicable */ /* Create the UAV, if applicable */
/* API FIXME: Create these dynamically as needed per mip level! */
if (isCompute) if (isCompute)
{ {
D3D11_UNORDERED_ACCESS_VIEW_DESC uavDesc; D3D11_UNORDERED_ACCESS_VIEW_DESC uavDesc;
uavDesc.Format = format; uavDesc.Format = format;
uavDesc.ViewDimension = D3D11_UAV_DIMENSION_TEXTURE3D; uavDesc.ViewDimension = D3D11_UAV_DIMENSION_TEXTURE3D;
uavDesc.Texture3D.MipSlice = 0; /* FIXME */ uavDesc.Texture3D.MipSlice = 0;
uavDesc.Texture3D.FirstWSlice = 0; /* FIXME */ uavDesc.Texture3D.FirstWSlice = 0;
uavDesc.Texture3D.WSize = -1; /* FIXME */ uavDesc.Texture3D.WSize = -1;
res = ID3D11Device_CreateUnorderedAccessView( res = ID3D11Device_CreateUnorderedAccessView(
renderer->device, renderer->device,