yum-mirror/slang

Making it easier to work with shaders

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

Tim FoleyRework command-line options handling for entry points and targets (#697)725985528

master
484 B30 linesraw
1// Disabled because Slang compiler doesn't support GLSL as an input language
2//TEST_IGNORE_FILE
3//TEST:COMPARE_GLSL:-profile glsl_fragment_450
4// matrix-mult.glsl
5#version 450
6
7// Confirm that we don't exchange the operands
8// to a matrix-vector multiply when we recognize
9// one in "raw" GLSL code.
10
11#ifdef __SLANG__
12__import empty;
13#endif
14
15layout(binding = 0)
16uniform C
17{
18	mat4x4 m;
19};
20
21layout(location = 0)
22in vec4 v;
23
24layout(location = 0)
25out vec4 r;
26
27void main()
28{
29	r = m * v;
30}