Move uav FIXME's to API FIXME's

d3d11-revived
Caleb Cornett 2024-02-11 00:08:34 -06:00
parent 19c6c48021
commit 9ea76e92dc
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 */
/* API FIXME: Create these dynamically as needed per mip level! */
if (isCompute)
{
D3D11_UNORDERED_ACCESS_VIEW_DESC uavDesc;
uavDesc.Format = format;
uavDesc.ViewDimension = D3D11_UAV_DIMENSION_TEXTURE2D;
uavDesc.Texture2D.MipSlice = 0; /* FIXME */
uavDesc.Texture2D.MipSlice = 0;
res = ID3D11Device_CreateUnorderedAccessView(
renderer->device,
@ -1659,14 +1660,15 @@ static Refresh_Texture* D3D11_CreateTexture(
}
/* Create the UAV, if applicable */
/* API FIXME: Create these dynamically as needed per mip level! */
if (isCompute)
{
D3D11_UNORDERED_ACCESS_VIEW_DESC uavDesc;
uavDesc.Format = format;
uavDesc.ViewDimension = D3D11_UAV_DIMENSION_TEXTURE3D;
uavDesc.Texture3D.MipSlice = 0; /* FIXME */
uavDesc.Texture3D.FirstWSlice = 0; /* FIXME */
uavDesc.Texture3D.WSize = -1; /* FIXME */
uavDesc.Texture3D.MipSlice = 0;
uavDesc.Texture3D.FirstWSlice = 0;
uavDesc.Texture3D.WSize = -1;
res = ID3D11Device_CreateUnorderedAccessView(
renderer->device,