// Cleanup delete[] imageData; pConverter->Release(); pFrame->Release(); pDecoder->Release(); DDS files support block compression (BC1-7), mipmaps, and cubemaps.
#include <DirectXTex.h> ID3D11Texture2D* pTexture = nullptr; ID3D11ShaderResourceView* pSRV = nullptr; DirectX::TexMetadata metadata; DirectX::ScratchImage scratchImage; nd3d11 texture create from file
if (FAILED(hr)) return hr;