No error when using [D2DInputSimple(n)]
but reading outside of current pixel
#769
Labels
[D2DInputSimple(n)]
but reading outside of current pixel
#769
I only noticed this recently when someone on the PDN forum posted a shader that was using
D2DInputSimple
even though they were doing complex sampling: https://forums.getpaint.net/topic/124551-gpu-median-filter/To repro this, take any D2D shader that specifies
[D2DInputComplex(n)]
and replace it with[D2DInputSimple(n)]
.Two weird things happen:
d2d1effecthelpers.hlsli
to force, e.g. by mappingD2DSampleInputAtOffset(n)
to some invalid syntax or the equivalent of a#pragma error
My proposal is that ComputeSharp.D2D1 should detect this and emit an error.
The text was updated successfully, but these errors were encountered: