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.

有帮助吗?

解决方案

Found an intrinsic function ddx and ddy to do the same. Thanks.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top