blob: 2964f27f00def849960d190d32e5f1b08e258350 [file] [log] [blame]
Ben Clayton86d1ad02024-02-21 08:11:33 +00001; SPIR-V
2; Version: 1.3
3; Generator: Google Tint Compiler; 0
4; Bound: 38
5; Schema: 0
6 OpCapability Shader
7 OpMemoryModel Logical GLSL450
8 OpEntryPoint Vertex %vertex_main "vertex_main" %value %vertex_point_size
9 OpEntryPoint Fragment %fragment_main "fragment_main"
10 OpEntryPoint GLCompute %compute_main "compute_main"
11 OpExecutionMode %fragment_main OriginUpperLeft
12 OpExecutionMode %compute_main LocalSize 1 1 1
13 OpName %value "value"
14 OpName %vertex_point_size "vertex_point_size"
15 OpName %prevent_dce_block "prevent_dce_block"
16 OpMemberName %prevent_dce_block 0 "inner"
17 OpName %prevent_dce "prevent_dce"
18 OpName %bitcast_745b27 "bitcast_745b27"
19 OpName %res "res"
20 OpName %vertex_main_inner "vertex_main_inner"
21 OpName %vertex_main "vertex_main"
22 OpName %fragment_main "fragment_main"
23 OpName %compute_main "compute_main"
24 OpDecorate %value BuiltIn Position
25 OpDecorate %vertex_point_size BuiltIn PointSize
26 OpDecorate %prevent_dce_block Block
27 OpMemberDecorate %prevent_dce_block 0 Offset 0
28 OpDecorate %prevent_dce DescriptorSet 2
29 OpDecorate %prevent_dce Binding 0
30 %float = OpTypeFloat 32
31 %v4float = OpTypeVector %float 4
32%_ptr_Output_v4float = OpTypePointer Output %v4float
33 %5 = OpConstantNull %v4float
34 %value = OpVariable %_ptr_Output_v4float Output %5
35%_ptr_Output_float = OpTypePointer Output %float
36 %8 = OpConstantNull %float
37%vertex_point_size = OpVariable %_ptr_Output_float Output %8
38%prevent_dce_block = OpTypeStruct %v4float
39%_ptr_StorageBuffer_prevent_dce_block = OpTypePointer StorageBuffer %prevent_dce_block
40%prevent_dce = OpVariable %_ptr_StorageBuffer_prevent_dce_block StorageBuffer
41 %void = OpTypeVoid
42 %12 = OpTypeFunction %void
43 %float_1 = OpConstant %float 1
44 %17 = OpConstantComposite %v4float %float_1 %float_1 %float_1 %float_1
45%_ptr_Function_v4float = OpTypePointer Function %v4float
46 %uint = OpTypeInt 32 0
47 %uint_0 = OpConstant %uint 0
48%_ptr_StorageBuffer_v4float = OpTypePointer StorageBuffer %v4float
49 %25 = OpTypeFunction %v4float
50%bitcast_745b27 = OpFunction %void None %12
51 %15 = OpLabel
52 %res = OpVariable %_ptr_Function_v4float Function %5
53 OpStore %res %17
54 %23 = OpAccessChain %_ptr_StorageBuffer_v4float %prevent_dce %uint_0
55 %24 = OpLoad %v4float %res
56 OpStore %23 %24
57 OpReturn
58 OpFunctionEnd
59%vertex_main_inner = OpFunction %v4float None %25
60 %27 = OpLabel
61 %28 = OpFunctionCall %void %bitcast_745b27
62 OpReturnValue %5
63 OpFunctionEnd
64%vertex_main = OpFunction %void None %12
65 %30 = OpLabel
66 %31 = OpFunctionCall %v4float %vertex_main_inner
67 OpStore %value %31
68 OpStore %vertex_point_size %float_1
69 OpReturn
70 OpFunctionEnd
71%fragment_main = OpFunction %void None %12
72 %33 = OpLabel
73 %34 = OpFunctionCall %void %bitcast_745b27
74 OpReturn
75 OpFunctionEnd
76%compute_main = OpFunction %void None %12
77 %36 = OpLabel
78 %37 = OpFunctionCall %void %bitcast_745b27
79 OpReturn
80 OpFunctionEnd