yum-mirror/slang
Making it easier to work with shaders
git clone https://git.yummers.dev/yum-mirror/slang
812e47898
master
1// Test that in Slang 2026, it is no longer valid to default initialize an existential value. 2#lang 2026 3 4//TEST:SIMPLE(filecheck=CHECK): -target spirv 5interface IBSDF 6{ 7 float3 eval(float3 wi, float3 wo); 8} 9 10struct ShaderGraph 11{ 12 IBSDF bsdf_stack[8]; // Intentionally uninitialized. 13 int next_bsdf = 0; // must be zero. 14} 15 16[numthreads(1,1,1)] 17void main() 18{ 19 // CHECK: ([[# @LINE+1]]): error 20 ShaderGraph sg = {}; 21}