File: Nd3d11 Texture Create From
int main()
// Load the image from disk using WIC DirectX::TexMetadata metadata; DirectX::ScratchImage scratchImage; HRESULT hr = DirectX::LoadFromWICFile( filename, DirectX::WIC_FLAGS_NONE, &metadata, scratchImage ); nd3d11 texture create from file
To use the texture in shaders, you need to create a ID3D11ShaderResourceView . int main() // Load the image from disk
using ND3D11; using System.Drawing; using System.IO; HRESULT hr = DirectX::LoadFromWICFile( filename