blob: 34785918c4e3069cf65bed5f6528aea32141d434 [file] [log] [blame]
dan sinclair1b77b6c2024-08-06 15:47:05 +00001; SPIR-V
2; Version: 1.3
3; Generator: Google Tint Compiler; 1
4; Bound: 30
5; Schema: 0
6 OpCapability Shader
7 OpCapability Image1D
8 OpMemoryModel Logical GLSL450
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
James Price71c1d542024-10-10 23:01:19 +000013 OpMemberName %prevent_dce_block 0 "inner"
14 OpName %prevent_dce_block "prevent_dce_block"
dan sinclair1b77b6c2024-08-06 15:47:05 +000015 OpName %arg_0 "arg_0"
16 OpName %textureLoad_babdf3 "textureLoad_babdf3"
17 OpName %res "res"
18 OpName %fragment_main "fragment_main"
19 OpName %compute_main "compute_main"
James Price71c1d542024-10-10 23:01:19 +000020 OpMemberDecorate %prevent_dce_block 0 Offset 0
21 OpDecorate %prevent_dce_block Block
dan sinclair1b77b6c2024-08-06 15:47:05 +000022 OpDecorate %1 DescriptorSet 0
23 OpDecorate %1 Binding 0
dan sinclaird117d652024-08-21 01:20:00 +000024 OpDecorate %1 Coherent
dan sinclair1b77b6c2024-08-06 15:47:05 +000025 OpDecorate %arg_0 DescriptorSet 1
26 OpDecorate %arg_0 Binding 0
dan sinclaird117d652024-08-21 01:20:00 +000027 OpDecorate %arg_0 Coherent
dan sinclair1b77b6c2024-08-06 15:47:05 +000028 %uint = OpTypeInt 32 0
29 %v4uint = OpTypeVector %uint 4
James Price71c1d542024-10-10 23:01:19 +000030%prevent_dce_block = OpTypeStruct %v4uint
31%_ptr_StorageBuffer_prevent_dce_block = OpTypePointer StorageBuffer %prevent_dce_block
32 %1 = OpVariable %_ptr_StorageBuffer_prevent_dce_block StorageBuffer
dan sinclair1b77b6c2024-08-06 15:47:05 +000033 %8 = OpTypeImage %uint 1D 0 0 0 2 Rgba16ui
34%_ptr_UniformConstant_8 = OpTypePointer UniformConstant %8
35 %arg_0 = OpVariable %_ptr_UniformConstant_8 UniformConstant
36 %10 = OpTypeFunction %v4uint
37 %uint_1 = OpConstant %uint 1
38%_ptr_Function_v4uint = OpTypePointer Function %v4uint
39 %void = OpTypeVoid
40 %20 = OpTypeFunction %void
41%_ptr_StorageBuffer_v4uint = OpTypePointer StorageBuffer %v4uint
42 %uint_0 = OpConstant %uint 0
43%textureLoad_babdf3 = OpFunction %v4uint None %10
44 %11 = OpLabel
45 %res = OpVariable %_ptr_Function_v4uint Function
dan sinclair50260412024-08-28 19:43:27 +000046 %12 = OpLoad %8 %arg_0 None
dan sinclair1b77b6c2024-08-06 15:47:05 +000047 %13 = OpImageRead %v4uint %12 %uint_1 None
48 OpStore %res %13
dan sinclair50260412024-08-28 19:43:27 +000049 %17 = OpLoad %v4uint %res None
dan sinclair1b77b6c2024-08-06 15:47:05 +000050 OpReturnValue %17
51 OpFunctionEnd
52%fragment_main = OpFunction %void None %20
53 %21 = OpLabel
54 %22 = OpFunctionCall %v4uint %textureLoad_babdf3
55 %23 = OpAccessChain %_ptr_StorageBuffer_v4uint %1 %uint_0
dan sinclair50260412024-08-28 19:43:27 +000056 OpStore %23 %22 None
dan sinclair1b77b6c2024-08-06 15:47:05 +000057 OpReturn
58 OpFunctionEnd
59%compute_main = OpFunction %void None %20
60 %27 = OpLabel
61 %28 = OpFunctionCall %v4uint %textureLoad_babdf3
62 %29 = OpAccessChain %_ptr_StorageBuffer_v4uint %1 %uint_0
dan sinclair50260412024-08-28 19:43:27 +000063 OpStore %29 %28 None
dan sinclair1b77b6c2024-08-06 15:47:05 +000064 OpReturn
65 OpFunctionEnd