Closed ran-j closed 3 months ago
This is a warning that I marked with a error.
If I just disable this warning works fine:
pInfoQueue->SetBreakOnSeverity(D3D11_MESSAGE_SEVERITY_WARNING, true);
But the case is how can I solve this warning.
You didn't include your custom shader source, but are you sure the if (sampler)
clause of your lambda is being executed?
I'm 100% sure that if (sampler)
works.
https://github.com/microsoft/DirectXTK/assets/17410205/b7999d05-ac12-4455-ae1c-553dcb892e1b
As I said if I disable directx warnings it works super fine.
As the warning indicates, it will 'work' but the warning is recommending you fix it since it is often very confusing.
Hey there, I`m facing a strange error while trying to set a second shader reource here is my code:
but I got this strange error![image](https://github.com/microsoft/DirectXTK/assets/17410205/2afecf77-49be-4939-947b-aeee378efe6e)
Note I`m using the lastest verison (feb2024) with directx11. Also I made obvius check like my pointers are not null etc.