yum-mirror/slang
Making it easier to work with shaders
git clone https://git.yummers.dev/yum-mirror/slang
47a917c96
master
1//TEST:SIMPLE(filecheck=CHECK): -target spirv -entry main -stage compute -emit-spirv-directly 2 3// CHECK: OpEntryPoint 4 5ConstantBuffer<Ptr<int>> cbPtr; 6void main(int id : SV_DispatchThreadID) 7{ 8 // Check that the index operand is translated directly into a 64bit integer 9 // in th resulting SPIR-V without any truncations. 10 // CHECK: OpPtrAccessChain %_ptr_PhysicalStorageBuffer_int %{{.*}} %long_123 11 cbPtr[123ll] = 4; 12}