HLSL: Grammar: Make comma-separated declaration lists work.
This commit is contained in:
@@ -2,14 +2,16 @@ hlsl.float1.frag
|
||||
Shader version: 450
|
||||
gl_FragCoord origin is upper left
|
||||
0:? Sequence
|
||||
0:1 move second child to first child (temp 1-component vector of float)
|
||||
0:1 'f1' (temp 1-component vector of float)
|
||||
0:1 Constant:
|
||||
0:1 1.000000
|
||||
0:2 move second child to first child (temp float)
|
||||
0:2 'scalar' (temp float)
|
||||
0:2 Constant:
|
||||
0:2 2.000000
|
||||
0:1 Sequence
|
||||
0:1 move second child to first child (temp 1-component vector of float)
|
||||
0:1 'f1' (temp 1-component vector of float)
|
||||
0:1 Constant:
|
||||
0:1 1.000000
|
||||
0:2 Sequence
|
||||
0:2 move second child to first child (temp float)
|
||||
0:2 'scalar' (temp float)
|
||||
0:2 Constant:
|
||||
0:2 2.000000
|
||||
0:8 Function Definition: ShaderFunction(vf1;f1; (temp 1-component vector of float)
|
||||
0:5 Function Parameters:
|
||||
0:5 'inFloat1' (in 1-component vector of float)
|
||||
@@ -34,14 +36,16 @@ Linked fragment stage:
|
||||
Shader version: 450
|
||||
gl_FragCoord origin is upper left
|
||||
0:? Sequence
|
||||
0:1 move second child to first child (temp 1-component vector of float)
|
||||
0:1 'f1' (temp 1-component vector of float)
|
||||
0:1 Constant:
|
||||
0:1 1.000000
|
||||
0:2 move second child to first child (temp float)
|
||||
0:2 'scalar' (temp float)
|
||||
0:2 Constant:
|
||||
0:2 2.000000
|
||||
0:1 Sequence
|
||||
0:1 move second child to first child (temp 1-component vector of float)
|
||||
0:1 'f1' (temp 1-component vector of float)
|
||||
0:1 Constant:
|
||||
0:1 1.000000
|
||||
0:2 Sequence
|
||||
0:2 move second child to first child (temp float)
|
||||
0:2 'scalar' (temp float)
|
||||
0:2 Constant:
|
||||
0:2 2.000000
|
||||
0:8 Function Definition: ShaderFunction(vf1;f1; (temp 1-component vector of float)
|
||||
0:5 Function Parameters:
|
||||
0:5 'inFloat1' (in 1-component vector of float)
|
||||
@@ -61,7 +65,7 @@ gl_FragCoord origin is upper left
|
||||
|
||||
// Module Version 10000
|
||||
// Generated by (magic number): 80001
|
||||
// Id's are bound by 24
|
||||
// Id's are bound by 26
|
||||
|
||||
Capability Shader
|
||||
1: ExtInstImport "GLSL.std.450"
|
||||
@@ -80,21 +84,25 @@ gl_FragCoord origin is upper left
|
||||
6: TypeFloat 32
|
||||
7: TypePointer Function 6(float)
|
||||
8: TypeFunction 6(float) 7(ptr) 7(ptr)
|
||||
14: 6(float) Constant 1065353216
|
||||
16: 6(float) Constant 1073741824
|
||||
4(PixelShaderFunction): 2 Function None 3
|
||||
5: Label
|
||||
13(f1): 7(ptr) Variable Function
|
||||
15(scalar): 7(ptr) Variable Function
|
||||
Store 13(f1) 14
|
||||
Store 15(scalar) 16
|
||||
FunctionEnd
|
||||
11(ShaderFunction(vf1;f1;): 6(float) Function None 8
|
||||
9(inFloat1): 7(ptr) FunctionParameter
|
||||
10(inScalar): 7(ptr) FunctionParameter
|
||||
12: Label
|
||||
13(f1): 7(ptr) Variable Function
|
||||
15(scalar): 7(ptr) Variable Function
|
||||
14: 6(float) Load 13(f1)
|
||||
16: 6(float) Load 15(scalar)
|
||||
17: 6(float) IMul 14 16
|
||||
18: 6(float) Load 9(inFloat1)
|
||||
19: 6(float) Load 10(inScalar)
|
||||
20: 6(float) IMul 18 19
|
||||
21: 6(float) FAdd 17 20
|
||||
ReturnValue 21
|
||||
17: 6(float) Load 13(f1)
|
||||
18: 6(float) Load 15(scalar)
|
||||
19: 6(float) IMul 17 18
|
||||
20: 6(float) Load 9(inFloat1)
|
||||
21: 6(float) Load 10(inScalar)
|
||||
22: 6(float) IMul 20 21
|
||||
23: 6(float) FAdd 19 22
|
||||
ReturnValue 23
|
||||
FunctionEnd
|
||||
|
||||
Reference in New Issue
Block a user