yum-mirror/slang

Making it easier to work with shaders

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

cheneym2SPIRV: Fix storage class for unwrapped pointers (#4068)4533c825f

master
305 B10 linesraw
1//TEST:SIMPLE(filecheck=CHECK): -target spirv -emit-spirv-directly -O0
2
3[[vk::push_constant]] float4 *positions;
4[shader("vertex")]
5float4 main()
6{
7    return positions[0];
8}
9// NOT %cbuffer__t = OpTypeStruct %_ptr_Function_v4float
10// CHECK: %cbuffer__t = OpTypeStruct %_ptr_PhysicalStorageBuffer_v4float