yum-mirror/slang

Making it easier to work with shaders

git clone https://git.yummers.dev/yum-mirror/slang

James Helferty (NVIDIA)Enable metal tests (#8446)8086adc90

master
628 B21 linesraw
1//TEST:SIMPLE(filecheck=METAL): -stage compute -entry computeMain -target metal -DEMIT_SOURCE
2//DISABLE_TEST:SIMPLE(filecheck=METALLIB): -stage compute -entry computeMain -target metallib -DEMIT_SOURCE
3
4// Disabled due to location argument being passed wrong argument type
5// TODO: github issue #8457
6
7// METALLIB-NOT: error :
8// METALLIB: @computeMain
9
10Texture2DMS<float4> texMS;
11RWTexture2D<float4> output;
12
13[numthreads(1, 1, 1)]
14void computeMain()
15{
16    int2 location = int2(0, 0);
17    uint sampleIndex = 0;
18    // METAL: {{.*}}access::read{{.*}}
19    float4 v = texMS.Load(location, sampleIndex);
20    output[location] = v;
21}