yum-mirror/glslang

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

Pavel AsyutchenkoKeep vec1.x l-value in HLSLe46c1b72

main
2.4 KiB72 linesraw
1hlsl.swizzle.vec1.comp
2Shader version: 500
3local_size = (1, 1, 1)
40:? Sequence
50:2  Function Definition: @main( ( temp void)
60:2    Function Parameters: 
70:?     Sequence
80:4      move second child to first child ( temp float)
90:4        direct index ( temp float)
100:4          'f1' ( temp 1-component vector of float)
110:4          Constant:
120:4            0 (const int)
130:4        Constant:
140:4          0.500000
150:2  Function Definition: main( ( temp void)
160:2    Function Parameters: 
170:?     Sequence
180:2      Function Call: @main( ( temp void)
190:?   Linker Objects
20
21
22Linked compute stage:
23
24
25Shader version: 500
26local_size = (1, 1, 1)
270:? Sequence
280:2  Function Definition: @main( ( temp void)
290:2    Function Parameters: 
300:?     Sequence
310:4      move second child to first child ( temp float)
320:4        direct index ( temp float)
330:4          'f1' ( temp 1-component vector of float)
340:4          Constant:
350:4            0 (const int)
360:4        Constant:
370:4          0.500000
380:2  Function Definition: main( ( temp void)
390:2    Function Parameters: 
400:?     Sequence
410:2      Function Call: @main( ( temp void)
420:?   Linker Objects
43
44// Module Version 10000
45// Generated by (magic number): 8000b
46// Id's are bound by 13
47
48                              Capability Shader
49               1:             ExtInstImport  "GLSL.std.450"
50                              MemoryModel Logical GLSL450
51                              EntryPoint GLCompute 4  "main"
52                              ExecutionMode 4 LocalSize 1 1 1
53                              Source HLSL 500
54                              Name 4  "main"
55                              Name 6  "@main("
56                              Name 10  "f1"
57               2:             TypeVoid
58               3:             TypeFunction 2
59               8:             TypeFloat 32
60               9:             TypePointer Function 8(float)
61              11:    8(float) Constant 1056964608
62         4(main):           2 Function None 3
63               5:             Label
64              12:           2 FunctionCall 6(@main()
65                              Return
66                              FunctionEnd
67       6(@main():           2 Function None 3
68               7:             Label
69          10(f1):      9(ptr) Variable Function
70                              Store 10(f1) 11
71                              Return
72                              FunctionEnd