blob: d0a529472b5202b71448d92bb2b564e55f3d5051 [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: 40
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_16cba4 "bitcast_16cba4"
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 %int = OpTypeInt 32 1
39%prevent_dce_block = OpTypeStruct %int
40%_ptr_StorageBuffer_prevent_dce_block = OpTypePointer StorageBuffer %prevent_dce_block
41%prevent_dce = OpVariable %_ptr_StorageBuffer_prevent_dce_block StorageBuffer
42 %void = OpTypeVoid
43 %13 = OpTypeFunction %void
44%int_1065353216 = OpConstant %int 1065353216
45%_ptr_Function_int = OpTypePointer Function %int
46 %20 = OpConstantNull %int
47 %uint = OpTypeInt 32 0
48 %uint_0 = OpConstant %uint 0
49%_ptr_StorageBuffer_int = OpTypePointer StorageBuffer %int
50 %26 = OpTypeFunction %v4float
51 %float_1 = OpConstant %float 1
52%bitcast_16cba4 = OpFunction %void None %13
53 %16 = OpLabel
54 %res = OpVariable %_ptr_Function_int Function %20
55 OpStore %res %int_1065353216
56 %24 = OpAccessChain %_ptr_StorageBuffer_int %prevent_dce %uint_0
57 %25 = OpLoad %int %res
58 OpStore %24 %25
59 OpReturn
60 OpFunctionEnd
61%vertex_main_inner = OpFunction %v4float None %26
62 %28 = OpLabel
63 %29 = OpFunctionCall %void %bitcast_16cba4
64 OpReturnValue %5
65 OpFunctionEnd
66%vertex_main = OpFunction %void None %13
67 %31 = OpLabel
68 %32 = OpFunctionCall %v4float %vertex_main_inner
69 OpStore %value %32
70 OpStore %vertex_point_size %float_1
71 OpReturn
72 OpFunctionEnd
73%fragment_main = OpFunction %void None %13
74 %35 = OpLabel
75 %36 = OpFunctionCall %void %bitcast_16cba4
76 OpReturn
77 OpFunctionEnd
78%compute_main = OpFunction %void None %13
79 %38 = OpLabel
80 %39 = OpFunctionCall %void %bitcast_16cba4
81 OpReturn
82 OpFunctionEnd