Which D3D12 driver is this on?
I'm using NVIDIA driver v512.95 on Windows 11 21H2
All Windows drivers violate the docs here:
Specifies a D3D12_TILE_SHAPE structure that GetResourceTiling fills with info about the tile shape. This is info about how pixels fit in the tiles, independent of tiled resource's dimensions, not including packed mipmaps. If the entire tiled resource is packed, this parameter is meaningless because the tiled resource has no defined layout for packed mipmaps. In this situation, GetResourceTiling sets the members of D3D12_TILE_SHAPE to zeros.
We implemented that behavior, but the PR proves the docs don't match implementations.
Nothing extracted yet.
The following code snippet
returns
tileShape={256,256,1}for native DirectX andtileShape={0,0,0}for VKD3D.I suppose it should return
memory_requirements->formatProperties.imageGranularity.