yum-mirror/slang
Making it easier to work with shaders
git clone https://git.yummers.dev/yum-mirror/slang
94b2c6766
master
1//TEST:SIMPLE: 2 3// It used to be the case that coercions of already-coerced initializer lists 4// didn't take into account the more specific type. One way of triggering this 5// was to create an already-coerced initializer list via the HLSL `(S)0` 6// syntax which creates the equivalent of `{} : S`. In the example below this 7// then proceeds to be coerced to type T. 8 9struct S {}; 10struct T {}; 11 12void main() 13{ 14 // Should generate a type error. 15 T t = (S)0; 16} 17