//TEST:SIMPLE(filecheck=CHECK): -entry computeMain -stage compute -target spirv -emit-spirv-directly //TEST:SIMPLE(filecheck=CHECK): -entry computeMain -stage compute -target spirv //TEST:SIMPLE(filecheck=CHECK-CUDA): -entry computeMain -stage compute -target cuda layout(rgba8) RWTexture2D texture; [numthreads(4, 1, 1)] void computeMain(uint3 dispatchThreadID : SV_DispatchThreadID) { half h = 1.0h; // CHECK: OpImageRead // CHECK: OpCompositeInsert // CHECK: OpImageWrite // CHECK-CUDA: CUsurfObject texture_0 texture[dispatchThreadID.xy].a = h; }