//TEST:SIMPLE(filecheck=CHECK): -target hlsl -profile sm_6_6 -entry main -stage compute //TEST:SIMPLE(filecheck=DXIL): -target dxil -profile sm_6_6 -entry main -stage compute //TEST:SIMPLE(filecheck=DXIL): -target cuda -profile sm_6_6 -entry main -stage compute // Test that Texture2DMS accepts an optional sampleCount argument // and the argument correctly appears in the output hlsl. // CHECK: Texture2DMS t_0 : register(t0); // CHECK: Texture2DMS tExplicit_0 : register(t1); // DXIL: main Texture2DMS t; Texture2DMS tExplicit; SamplerState s; RWBuffer b; [shader("compute")] [numthreads(32, 1, 1)] void main(uint3 tid : SV_DispatchThreadID) { let v = t.Load(int2(0, 0), 1) + tExplicit.Load(int2(1,1),2); b[tid.x] = v; }