dan sinclair | d319ae7 | 2024-12-06 14:16:09 +0000 | [diff] [blame] | 1 | ; |
| 2 | ; fragment_main |
| 3 | ; |
dan sinclair | 1b77b6c | 2024-08-06 15:47:05 +0000 | [diff] [blame] | 4 | ; SPIR-V |
| 5 | ; Version: 1.3 |
| 6 | ; Generator: Google Tint Compiler; 1 |
dan sinclair | d319ae7 | 2024-12-06 14:16:09 +0000 | [diff] [blame] | 7 | ; Bound: 24 |
dan sinclair | 1b77b6c | 2024-08-06 15:47:05 +0000 | [diff] [blame] | 8 | ; 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 sinclair | 1b77b6c | 2024-08-06 15:47:05 +0000 | [diff] [blame] | 15 | OpExecutionMode %fragment_main OriginUpperLeft |
James Price | 71c1d54 | 2024-10-10 23:01:19 +0000 | [diff] [blame] | 16 | OpMemberName %prevent_dce_block 0 "inner" |
| 17 | OpName %prevent_dce_block "prevent_dce_block" |
dan sinclair | 1b77b6c | 2024-08-06 15:47:05 +0000 | [diff] [blame] | 18 | OpName %arg_0 "arg_0" |
| 19 | OpName %textureDimensions_01e21e "textureDimensions_01e21e" |
| 20 | OpName %res "res" |
| 21 | OpName %fragment_main "fragment_main" |
James Price | 71c1d54 | 2024-10-10 23:01:19 +0000 | [diff] [blame] | 22 | OpMemberDecorate %prevent_dce_block 0 Offset 0 |
| 23 | OpDecorate %prevent_dce_block Block |
dan sinclair | 1b77b6c | 2024-08-06 15:47:05 +0000 | [diff] [blame] | 24 | OpDecorate %1 DescriptorSet 0 |
| 25 | OpDecorate %1 Binding 0 |
dan sinclair | d117d65 | 2024-08-21 01:20:00 +0000 | [diff] [blame] | 26 | OpDecorate %1 Coherent |
dan sinclair | 1b77b6c | 2024-08-06 15:47:05 +0000 | [diff] [blame] | 27 | OpDecorate %arg_0 DescriptorSet 1 |
| 28 | OpDecorate %arg_0 Binding 0 |
dan sinclair | d117d65 | 2024-08-21 01:20:00 +0000 | [diff] [blame] | 29 | OpDecorate %arg_0 Coherent |
dan sinclair | 1b77b6c | 2024-08-06 15:47:05 +0000 | [diff] [blame] | 30 | %uint = OpTypeInt 32 0 |
James Price | 71c1d54 | 2024-10-10 23:01:19 +0000 | [diff] [blame] | 31 | %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 sinclair | 1b77b6c | 2024-08-06 15:47:05 +0000 | [diff] [blame] | 34 | %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 sinclair | 5026041 | 2024-08-28 19:43:27 +0000 | [diff] [blame] | 46 | %11 = OpLoad %7 %arg_0 None |
dan sinclair | 1b77b6c | 2024-08-06 15:47:05 +0000 | [diff] [blame] | 47 | %12 = OpImageQuerySize %uint %11 |
| 48 | OpStore %res %12 |
dan sinclair | 5026041 | 2024-08-28 19:43:27 +0000 | [diff] [blame] | 49 | %15 = OpLoad %uint %res None |
dan sinclair | 1b77b6c | 2024-08-06 15:47:05 +0000 | [diff] [blame] | 50 | 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 sinclair | 5026041 | 2024-08-28 19:43:27 +0000 | [diff] [blame] | 56 | OpStore %21 %20 None |
dan sinclair | 1b77b6c | 2024-08-06 15:47:05 +0000 | [diff] [blame] | 57 | OpReturn |
| 58 | OpFunctionEnd |
dan sinclair | d319ae7 | 2024-12-06 14:16:09 +0000 | [diff] [blame] | 59 | ; |
| 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 sinclair | 1b77b6c | 2024-08-06 15:47:05 +0000 | [diff] [blame] | 110 | %compute_main = OpFunction %void None %18 |
dan sinclair | d319ae7 | 2024-12-06 14:16:09 +0000 | [diff] [blame] | 111 | %19 = OpLabel |
| 112 | %20 = OpFunctionCall %uint %textureDimensions_01e21e |
| 113 | %21 = OpAccessChain %_ptr_StorageBuffer_uint %1 %uint_0 |
| 114 | OpStore %21 %20 None |
dan sinclair | 1b77b6c | 2024-08-06 15:47:05 +0000 | [diff] [blame] | 115 | OpReturn |
| 116 | OpFunctionEnd |