// Load texture ComPtr<ID3D11Texture2D> pTexture; DirectX::TexMetadata metadata; DirectX::ScratchImage image;

This guide provides a basic overview. Depending on your project's requirements, you might need to adjust texture properties, handle different image formats, or consider asynchronous loading.

ID3D11Texture2D* pTexture = nullptr; ID3D11ShaderResourceView* pSRV = nullptr; DirectX::TexMetadata metadata; DirectX::ScratchImage scratchImage;

For simplicity, let's assume you've loaded the image data into a buffer imageData , and you know its width width , height height , and the format of the data.