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