1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
#version 420 //TEST_IGNORE_FILE: struct Fragment { uint foo; }; layout(binding = 0) uniform U { uint bar; }; Fragment main_() { Fragment result; result.foo = bar; return result; } layout(location = 0) out uint SLANG_out_main_result_foo; void main() { Fragment main_result = main_(); SLANG_out_main_result_foo = main_result.foo; }