yum-mirror/slang
Making it easier to work with shaders
git clone https://git.yummers.dev/yum-mirror/slang
0360f81b9
master
1#version 420 2//TEST_IGNORE_FILE: 3 4struct Fragment 5{ 6uint foo ; 7}; 8 9layout (binding = 0 ) 10uniform U 11{ 12uint bar ; 13}; 14 15Fragment main_ () 16{ 17Fragment result ; 18result .foo = bar ; 19return result ; 20} 21 22layout (location = 0 ) 23out uint SLANG_out_main_result_foo ; 24 25void main () 26{ 27Fragment main_result = main_ (); 28SLANG_out_main_result_foo = main_result .foo ; 29}