Found an intrinsic function ddx
and ddy
to do the same. Thanks.
DirectX: Calculate Gradient in the shader code
-
29-05-2022 - |
Question
I am using a pixel shader code that uses the Sample
Function. I want to use SampleGrad
and hence want to calculate the derivatives in my shader code. Is there a way to do the same?
Thanks.
La solution
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow