blob: f95ed5db7e0321e73c66f5a7fb43e87483971ed3 [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: 31
5; Schema: 0
6 OpCapability Shader
7 OpCapability Image1D
8 OpCapability StorageImageExtendedFormats
9 OpMemoryModel Logical GLSL450
10 OpEntryPoint Fragment %fragment_main "fragment_main"
11 OpEntryPoint GLCompute %compute_main "compute_main"
12 OpExecutionMode %fragment_main OriginUpperLeft
13 OpExecutionMode %compute_main LocalSize 1 1 1
James Price71c1d542024-10-10 23:01:19 +000014 OpMemberName %prevent_dce_block 0 "inner"
15 OpName %prevent_dce_block "prevent_dce_block"
dan sinclair1b77b6c2024-08-06 15:47:05 +000016 OpName %arg_0 "arg_0"
17 OpName %textureLoad_ef2ec3 "textureLoad_ef2ec3"
18 OpName %res "res"
19 OpName %fragment_main "fragment_main"
20 OpName %compute_main "compute_main"
James Price71c1d542024-10-10 23:01:19 +000021 OpMemberDecorate %prevent_dce_block 0 Offset 0
22 OpDecorate %prevent_dce_block Block
dan sinclair1b77b6c2024-08-06 15:47:05 +000023 OpDecorate %1 DescriptorSet 0
24 OpDecorate %1 Binding 0
dan sinclaird117d652024-08-21 01:20:00 +000025 OpDecorate %1 Coherent
dan sinclair1b77b6c2024-08-06 15:47:05 +000026 OpDecorate %arg_0 DescriptorSet 1
27 OpDecorate %arg_0 Binding 0
dan sinclaird117d652024-08-21 01:20:00 +000028 OpDecorate %arg_0 Coherent
dan sinclair1b77b6c2024-08-06 15:47:05 +000029 %int = OpTypeInt 32 1
30 %v4int = OpTypeVector %int 4
James Price71c1d542024-10-10 23:01:19 +000031%prevent_dce_block = OpTypeStruct %v4int
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 %8 = OpTypeImage %int 1D 0 0 0 2 Rg32i
35%_ptr_UniformConstant_8 = OpTypePointer UniformConstant %8
36 %arg_0 = OpVariable %_ptr_UniformConstant_8 UniformConstant
37 %10 = OpTypeFunction %v4int
38 %uint = OpTypeInt 32 0
39 %uint_1 = OpConstant %uint 1
40%_ptr_Function_v4int = OpTypePointer Function %v4int
41 %void = OpTypeVoid
42 %21 = OpTypeFunction %void
43%_ptr_StorageBuffer_v4int = OpTypePointer StorageBuffer %v4int
44 %uint_0 = OpConstant %uint 0
45%textureLoad_ef2ec3 = OpFunction %v4int None %10
46 %11 = OpLabel
47 %res = OpVariable %_ptr_Function_v4int Function
dan sinclair50260412024-08-28 19:43:27 +000048 %12 = OpLoad %8 %arg_0 None
dan sinclair1b77b6c2024-08-06 15:47:05 +000049 %13 = OpImageRead %v4int %12 %uint_1 None
50 OpStore %res %13
dan sinclair50260412024-08-28 19:43:27 +000051 %18 = OpLoad %v4int %res None
dan sinclair1b77b6c2024-08-06 15:47:05 +000052 OpReturnValue %18
53 OpFunctionEnd
54%fragment_main = OpFunction %void None %21
55 %22 = OpLabel
56 %23 = OpFunctionCall %v4int %textureLoad_ef2ec3
57 %24 = OpAccessChain %_ptr_StorageBuffer_v4int %1 %uint_0
dan sinclair50260412024-08-28 19:43:27 +000058 OpStore %24 %23 None
dan sinclair1b77b6c2024-08-06 15:47:05 +000059 OpReturn
60 OpFunctionEnd
61%compute_main = OpFunction %void None %21
62 %28 = OpLabel
63 %29 = OpFunctionCall %v4int %textureLoad_ef2ec3
64 %30 = OpAccessChain %_ptr_StorageBuffer_v4int %1 %uint_0
dan sinclair50260412024-08-28 19:43:27 +000065 OpStore %30 %29 None
dan sinclair1b77b6c2024-08-06 15:47:05 +000066 OpReturn
67 OpFunctionEnd