yum-mirror/slang
Making it easier to work with shaders
git clone https://git.yummers.dev/yum-mirror/slang
2f68f98a3
master
1//DIAGNOSTIC_TEST:SIMPLE(filecheck=CHECK): 2// CHECK-NOT: an internal error threw 3// CHECK-NOT: error: 4 5interface IFoo<T, int N>: IDifferentiable 6 where T : __BuiltinFloatingPointType 7{ 8 This myFunc(This other); 9} 10 11struct Foo<T, int N> 12 where T : __BuiltinFloatingPointType 13{ 14 [BackwardDifferentiable] 15 This myFunc(This other) 16 { 17 [MaxIters(N)] 18 for (int i = 0; i < N; i++) {} 19 20 return this; 21 } 22} 23 24extension <T, int N> Foo<T, N> : IFoo<T, N> 25 where T : __BuiltinFloatingPointType {} 26