DXRExperiments icon indicating copy to clipboard operation
DXRExperiments copied to clipboard

DenoiseCommon.hlsli:51 - Error X3701 vs_2_0 does not support indexing resources

Open JustAndreww opened this issue 7 years ago • 1 comments

How to get rid of this error?

[numthreads(GROUP_SIZE_X, GROUP_SIZE_Y, 1)]
void main(uint3 dispatchID : SV_DispatchThreadID, uint3 threadID : SV_GroupThreadID, uint3 groupID : SV_GroupID)
{
    float3 color;
    if (gDebugVisualize == 2) {
        color = gInput[dispatchID.xy].rgb; // error
    } else {
        color = filterKernel(gMaxKernelSize, float(gMaxKernelSize), dispatchID.xy, gInput, gDirectLighting, threadID.xy, dispatchID.xy).rgb;
    }

I'm using VS2017 + Windows SDK 10.0.17763.0

JustAndreww avatar Feb 01 '19 08:02 JustAndreww

What's your graphics card?

philcn avatar Mar 15 '19 07:03 philcn