blob: 264948c5a6b1ded3872a4982672fac474a2ebdb6 [file] [log] [blame]
dan sinclaird319ae72024-12-06 14:16:09 +00001;
2; fragment_main
3;
dan sinclair1b77b6c2024-08-06 15:47:05 +00004; SPIR-V
5; Version: 1.3
6; Generator: Google Tint Compiler; 1
dan sinclaird319ae72024-12-06 14:16:09 +00007; Bound: 24
dan sinclair1b77b6c2024-08-06 15:47:05 +00008; Schema: 0
9 OpCapability Shader
10 OpCapability Image1D
11 OpCapability StorageImageExtendedFormats
12 OpCapability ImageQuery
13 OpMemoryModel Logical GLSL450
14 OpEntryPoint Fragment %fragment_main "fragment_main"
dan sinclair1b77b6c2024-08-06 15:47:05 +000015 OpExecutionMode %fragment_main OriginUpperLeft
James Price71c1d542024-10-10 23:01:19 +000016 OpMemberName %prevent_dce_block 0 "inner"
17 OpName %prevent_dce_block "prevent_dce_block"
dan sinclair1b77b6c2024-08-06 15:47:05 +000018 OpName %arg_0 "arg_0"
19 OpName %textureDimensions_01e21e "textureDimensions_01e21e"
20 OpName %res "res"
21 OpName %fragment_main "fragment_main"
James Price71c1d542024-10-10 23:01:19 +000022 OpMemberDecorate %prevent_dce_block 0 Offset 0
23 OpDecorate %prevent_dce_block Block
dan sinclair1b77b6c2024-08-06 15:47:05 +000024 OpDecorate %1 DescriptorSet 0
25 OpDecorate %1 Binding 0
dan sinclaird117d652024-08-21 01:20:00 +000026 OpDecorate %1 Coherent
dan sinclair1b77b6c2024-08-06 15:47:05 +000027 OpDecorate %arg_0 DescriptorSet 1
28 OpDecorate %arg_0 Binding 0
dan sinclaird117d652024-08-21 01:20:00 +000029 OpDecorate %arg_0 Coherent
dan sinclair1b77b6c2024-08-06 15:47:05 +000030 %uint = OpTypeInt 32 0
James Price71c1d542024-10-10 23:01:19 +000031%prevent_dce_block = OpTypeStruct %uint
32%_ptr_StorageBuffer_prevent_dce_block = OpTypePointer StorageBuffer %prevent_dce_block
33 %1 = OpVariable %_ptr_StorageBuffer_prevent_dce_block StorageBuffer
dan sinclair1b77b6c2024-08-06 15:47:05 +000034 %7 = OpTypeImage %uint 1D 0 0 0 2 Rg32ui
35%_ptr_UniformConstant_7 = OpTypePointer UniformConstant %7
36 %arg_0 = OpVariable %_ptr_UniformConstant_7 UniformConstant
37 %9 = OpTypeFunction %uint
38%_ptr_Function_uint = OpTypePointer Function %uint
39 %void = OpTypeVoid
40 %18 = OpTypeFunction %void
41%_ptr_StorageBuffer_uint = OpTypePointer StorageBuffer %uint
42 %uint_0 = OpConstant %uint 0
43%textureDimensions_01e21e = OpFunction %uint None %9
44 %10 = OpLabel
45 %res = OpVariable %_ptr_Function_uint Function
dan sinclair50260412024-08-28 19:43:27 +000046 %11 = OpLoad %7 %arg_0 None
dan sinclair1b77b6c2024-08-06 15:47:05 +000047 %12 = OpImageQuerySize %uint %11
48 OpStore %res %12
dan sinclair50260412024-08-28 19:43:27 +000049 %15 = OpLoad %uint %res None
dan sinclair1b77b6c2024-08-06 15:47:05 +000050 OpReturnValue %15
51 OpFunctionEnd
52%fragment_main = OpFunction %void None %18
53 %19 = OpLabel
54 %20 = OpFunctionCall %uint %textureDimensions_01e21e
55 %21 = OpAccessChain %_ptr_StorageBuffer_uint %1 %uint_0
dan sinclair50260412024-08-28 19:43:27 +000056 OpStore %21 %20 None
dan sinclair1b77b6c2024-08-06 15:47:05 +000057 OpReturn
58 OpFunctionEnd
dan sinclaird319ae72024-12-06 14:16:09 +000059;
60; compute_main
61;
62; SPIR-V
63; Version: 1.3
64; Generator: Google Tint Compiler; 1
65; Bound: 24
66; Schema: 0
67 OpCapability Shader
68 OpCapability Image1D
69 OpCapability StorageImageExtendedFormats
70 OpCapability ImageQuery
71 OpMemoryModel Logical GLSL450
72 OpEntryPoint GLCompute %compute_main "compute_main"
73 OpExecutionMode %compute_main LocalSize 1 1 1
74 OpMemberName %prevent_dce_block 0 "inner"
75 OpName %prevent_dce_block "prevent_dce_block"
76 OpName %arg_0 "arg_0"
77 OpName %textureDimensions_01e21e "textureDimensions_01e21e"
78 OpName %res "res"
79 OpName %compute_main "compute_main"
80 OpMemberDecorate %prevent_dce_block 0 Offset 0
81 OpDecorate %prevent_dce_block Block
82 OpDecorate %1 DescriptorSet 0
83 OpDecorate %1 Binding 0
84 OpDecorate %1 Coherent
85 OpDecorate %arg_0 DescriptorSet 1
86 OpDecorate %arg_0 Binding 0
87 OpDecorate %arg_0 Coherent
88 %uint = OpTypeInt 32 0
89%prevent_dce_block = OpTypeStruct %uint
90%_ptr_StorageBuffer_prevent_dce_block = OpTypePointer StorageBuffer %prevent_dce_block
91 %1 = OpVariable %_ptr_StorageBuffer_prevent_dce_block StorageBuffer
92 %7 = OpTypeImage %uint 1D 0 0 0 2 Rg32ui
93%_ptr_UniformConstant_7 = OpTypePointer UniformConstant %7
94 %arg_0 = OpVariable %_ptr_UniformConstant_7 UniformConstant
95 %9 = OpTypeFunction %uint
96%_ptr_Function_uint = OpTypePointer Function %uint
97 %void = OpTypeVoid
98 %18 = OpTypeFunction %void
99%_ptr_StorageBuffer_uint = OpTypePointer StorageBuffer %uint
100 %uint_0 = OpConstant %uint 0
101%textureDimensions_01e21e = OpFunction %uint None %9
102 %10 = OpLabel
103 %res = OpVariable %_ptr_Function_uint Function
104 %11 = OpLoad %7 %arg_0 None
105 %12 = OpImageQuerySize %uint %11
106 OpStore %res %12
107 %15 = OpLoad %uint %res None
108 OpReturnValue %15
109 OpFunctionEnd
dan sinclair1b77b6c2024-08-06 15:47:05 +0000110%compute_main = OpFunction %void None %18
dan sinclaird319ae72024-12-06 14:16:09 +0000111 %19 = OpLabel
112 %20 = OpFunctionCall %uint %textureDimensions_01e21e
113 %21 = OpAccessChain %_ptr_StorageBuffer_uint %1 %uint_0
114 OpStore %21 %20 None
dan sinclair1b77b6c2024-08-06 15:47:05 +0000115 OpReturn
116 OpFunctionEnd