1
0
mirror of https://github.com/microsoft/DirectXTex synced 2024-09-18 22:59:54 +00:00
5 IsSupportedTexture
Chuck Walbourn edited this page 2022-01-20 17:41:58 -08:00
DirectXTex

Returns true if the given texture metadata describes a texture that is supported by the provided Direct3D device.

bool IsSupportedTexture( ID3D11Device* pDevice, const TexMetadata& metadata );

bool IsSupportedTexture( ID3D12Device* pDevice, const TexMetadata& metadata );

Remarks

This function performs a number of bounds tests based on the device's feature level and the maximums defined for Direct3D. It also performs some specific API-level checks for format support for the given device.

If support for DirectX 12 is required, you must explicitly include #include <d3d12.h> before including #include "DirectXTex.h"