yum-mirror/slang

Making it easier to work with shaders

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

ArielG-NVRefactor memory qualifier decorators to be a bit-flag set, resolves #3841 (#3881)e0de98e9a

master
292 B12 linesraw
1//TEST:SIMPLE(filecheck=CHECK_SPV):-stage fragment -entry main -target spirv -emit-spirv-directly
2
3// CHECK_SPV: OpDecorate %x NonWritable
4StructuredBuffer<uint> x;
5
6// CHECK_SPV: OpDecorate %y NonWritable
7ByteAddressBuffer y;
8
9float4 main() : SV_Target
10{
11    return x[0] + y.Load<uint>(0);
12}