microsoft / DirectXTex

DirectXTex texture processing library
https://walbourn.github.io/directxtex/
MIT License
1.79k stars 441 forks source link

Maybe a mistake in wiki #160

Closed ssdemajia closed 4 years ago

ssdemajia commented 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;

walbourn commented 4 years ago

Thanks. fixed.