Closed ssdemajia closed 4 years ago
In DirectXTex wiki, url is https://github.com/microsoft/DirectXTex/wiki/CreateShaderResourceView In the 'CreateShaderResourceView' Example section,
if ( SUCCEEDED(hr) ) { ID3D11ShaderResourceView* * pSRV = nullptr; hr = CreateShaderResourceView( device, image.GetImages(), image.GetImageCount(), image.GetMetadata(), &pSRV ); if ( FAILED(hr) ) { ...
Myabe pSRV should be ID3D11ShaderResourceView* pSRV = nullptr;
ID3D11ShaderResourceView* pSRV = nullptr;
Thanks. fixed.
In DirectXTex wiki, url is https://github.com/microsoft/DirectXTex/wiki/CreateShaderResourceView In the 'CreateShaderResourceView' Example section,
Myabe pSRV should be
ID3D11ShaderResourceView* pSRV = nullptr;