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
703 B34 linesraw
1//TEST_IGNORE_FILE:
2#version 420
3
4layout(binding = 0)
5uniform texture2D t;
6
7layout(binding = 1)
8uniform sampler s;
9
10vec4 main_(vec2 uv)
11{
12	vec4 result = vec4(0);
13
14	result += textureOffset(sampler2D(t,s), uv, ivec2(0 - 2, 0));
15	result += textureOffset(sampler2D(t,s), uv, ivec2(1 - 2, 0));
16	result += textureOffset(sampler2D(t,s), uv, ivec2(2 - 2, 0));
17	result += textureOffset(sampler2D(t,s), uv, ivec2(3 - 2, 0));
18	result += textureOffset(sampler2D(t,s), uv, ivec2(4 - 2, 0));
19
20	return result;
21}
22
23layout(location = 0)
24in vec2 SLANG_in_uv;
25
26layout(location = 0)
27out vec4 SLANG_out_main_result;
28
29void main()
30{
31	vec2 uv = SLANG_in_uv;
32	vec4 main_result = main_(uv);
33	SLANG_out_main_result = main_result;
34}