Closed mbucchia closed 2 years ago
@mbucchia, thanks for reporting the bug and the fix :). We're glad that you found the shaders easy to integrate with your application!
Awesome! I also see you committed a fix for the pixel shift that started in 1.0.1, which I intended to report soon. Looking forward to trying it out!
Hi! I'm on 38402c9efb67ee5a004d03d3545362b9435d1bae and integrating the DX11 sample code into my application, I noticed that a few data structures are not zero'ed and have uninitialized fields. This leads to some D3D calls randomly failing.
The one I hit last night was with the
samplerDesc
in the bilinear upscaler:https://github.com/NVIDIAGameWorks/NVIDIAImageScaling/blob/main/samples/DX11/src/BilinearUpscale.cpp#L105
There is no
ZeroMemory()
and theMinLOD
fields is left uninitialized. Somehow this works OK when I am using a certain device, but with another one, I get this error with the D3D debug layer:Same remark in the
DeviceResources
implementation here:https://github.com/NVIDIAGameWorks/NVIDIAImageScaling/blob/main/samples/DX11/src/DeviceResources.cpp#L127
This goes away by explicitly setting
MinLOD
to 0.Thanks!
PS: You have done an amazing job with both the NIS shader and the the sample code! It's been super smooth to integrate into my application. Thank you!