Move uav FIXME's to API FIXME's
continuous-integration/drone/pr Build is failing
Details
continuous-integration/drone/pr Build is failing
Details
parent
19c6c48021
commit
9ea76e92dc
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue