yum-mirror/slang
Making it easier to work with shaders
git clone https://git.yummers.dev/yum-mirror/slang
7758625d3
master
1//TEST:SIMPLE(filecheck=CHECK):-stage compute -entry computeMain -target spirv 2 3// Tests for invalid use of `globallycoherent` with Ptr/T* 4 5cbuffer Globals 6{ 7 // CHECK: ([[# @LINE+1]]): error 30078 8 globallycoherent Ptr<int> ptr1; 9 // CHECK: ([[# @LINE+1]]): error 30078 10 globallycoherent int* ptr2; 11 // CHECK: ([[# @LINE+1]]): error 30078 12 coherent Ptr<int> ptr3; 13 // CHECK: ([[# @LINE+1]]): error 30078 14 coherent int* ptr4; 15} 16 17[numthreads(1, 1, 1)] 18void computeMain(int id : SV_DispatchThreadID) 19{ 20}