-
Notifications
You must be signed in to change notification settings - Fork 452
ComputeTileShape
DirectXTex |
---|
Computes the width and height of a Direct3D 11.2 or DirectX 12 Tiled Resource using the standard layouts for 64KiB tiles based on DXGI format.
HRESULT ComputeTileShape(DXGI_FORMAT fmt, TEX_DIMENSION dimension,
TileShape& tiling);
struct TileShape
{
size_t width;
size_t height;
size_t depth;
};
When using Direct3D 11 headers, the TileShape::GetTileShape11
method will return a D3D11_TILE_SHAPE
with the same data. There is also a constructor to convert from that structure.
When using Direct3D 12 headers, the TileShape::GetTileShape12
method will return a D3D12_TILE_SHAPE
with the same data. There is also a constructor to convert from that structure.
All content and source code for this package are subject to the terms of the MIT License.
This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.
- Universal Windows Platform apps
- Windows desktop apps
- Windows 11
- Windows 10
- Windows 8.1
- Xbox One
- Xbox Series X|S
- Windows Subsystem for Linux
- x86
- x64
- ARM64
- Visual Studio 2022
- Visual Studio 2019 (16.11)
- clang/LLVM v12 - v19
- GCC 10.5, 11.4, 12.3, 13.3, 14.2
- MinGW 12.2, 13.2
- CMake 3.20
DirectX Tool Kit for DirectX 11