yum-mirror/slang

Making it easier to work with shaders

git clone https://git.yummers.dev/yum-mirror/slang

Tim FoleyRemove support for the -no-checking flag (#392)0360f81b9

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