c82ee0f0526c2e14781282adfaabf9b8e095f02c
[platform/upstream/glslang.git] / Test / baseResults / hlsl.intrinsics.barriers.comp.out
1 hlsl.intrinsics.barriers.comp
2 Shader version: 450
3 local_size = (1, 1, 1)
4 0:? Sequence
5 0:3  Function Definition: @ComputeShaderFunction( ( temp float)
6 0:3    Function Parameters: 
7 0:?     Sequence
8 0:4      MemoryBarrier ( temp void)
9 0:5      AllMemoryBarrierWithGroupSync ( temp void)
10 0:6      GroupMemoryBarrier ( temp void)
11 0:7      GroupMemoryBarrierWithGroupSync ( temp void)
12 0:8      WorkgroupMemoryBarrier ( temp void)
13 0:9      WorkgroupMemoryBarrierWithGroupSync ( temp void)
14 0:11      Branch: Return with expression
15 0:11        Constant:
16 0:11          0.000000
17 0:3  Function Definition: ComputeShaderFunction( ( temp void)
18 0:3    Function Parameters: 
19 0:?     Sequence
20 0:3      move second child to first child ( temp float)
21 0:?         '@entryPointOutput' (layout( location=0) out float)
22 0:3        Function Call: @ComputeShaderFunction( ( temp float)
23 0:?   Linker Objects
24 0:?     '@entryPointOutput' (layout( location=0) out float)
25
26
27 Linked compute stage:
28
29
30 Shader version: 450
31 local_size = (1, 1, 1)
32 0:? Sequence
33 0:3  Function Definition: @ComputeShaderFunction( ( temp float)
34 0:3    Function Parameters: 
35 0:?     Sequence
36 0:4      MemoryBarrier ( temp void)
37 0:5      AllMemoryBarrierWithGroupSync ( temp void)
38 0:6      GroupMemoryBarrier ( temp void)
39 0:7      GroupMemoryBarrierWithGroupSync ( temp void)
40 0:8      WorkgroupMemoryBarrier ( temp void)
41 0:9      WorkgroupMemoryBarrierWithGroupSync ( temp void)
42 0:11      Branch: Return with expression
43 0:11        Constant:
44 0:11          0.000000
45 0:3  Function Definition: ComputeShaderFunction( ( temp void)
46 0:3    Function Parameters: 
47 0:?     Sequence
48 0:3      move second child to first child ( temp float)
49 0:?         '@entryPointOutput' (layout( location=0) out float)
50 0:3        Function Call: @ComputeShaderFunction( ( temp float)
51 0:?   Linker Objects
52 0:?     '@entryPointOutput' (layout( location=0) out float)
53
54 // Module Version 10000
55 // Generated by (magic number): 80001
56 // Id's are bound by 22
57
58                               Capability Shader
59                1:             ExtInstImport  "GLSL.std.450"
60                               MemoryModel Logical GLSL450
61                               EntryPoint GLCompute 4  "ComputeShaderFunction" 20
62                               ExecutionMode 4 LocalSize 1 1 1
63                               Name 4  "ComputeShaderFunction"
64                               Name 8  "@ComputeShaderFunction("
65                               Name 20  "@entryPointOutput"
66                               Decorate 20(@entryPointOutput) Location 0
67                2:             TypeVoid
68                3:             TypeFunction 2
69                6:             TypeFloat 32
70                7:             TypeFunction 6(float)
71               10:             TypeInt 32 0
72               11:     10(int) Constant 1
73               12:     10(int) Constant 4048
74               13:     10(int) Constant 512
75               14:     10(int) Constant 2
76               15:     10(int) Constant 256
77               16:    6(float) Constant 0
78               19:             TypePointer Output 6(float)
79 20(@entryPointOutput):     19(ptr) Variable Output
80 4(ComputeShaderFunction):           2 Function None 3
81                5:             Label
82               21:    6(float) FunctionCall 8(@ComputeShaderFunction()
83                               Store 20(@entryPointOutput) 21
84                               Return
85                               FunctionEnd
86 8(@ComputeShaderFunction():    6(float) Function None 7
87                9:             Label
88                               MemoryBarrier 11 12
89                               ControlBarrier 11 11 12
90                               MemoryBarrier 11 13
91                               ControlBarrier 11 11 13
92                               MemoryBarrier 14 15
93                               ControlBarrier 14 14 15
94                               ReturnValue 16
95                               FunctionEnd