Ben Clayton | 9b54a2e | 2021-05-18 10:28:48 +0000 | [diff] [blame] | 1 | ; SPIR-V |
| 2 | ; Version: 1.3 |
| 3 | ; Generator: Google Tint Compiler; 0 |
Ben Clayton | aba42ed | 2021-06-10 18:43:04 +0000 | [diff] [blame] | 4 | ; Bound: 12 |
Ben Clayton | 9b54a2e | 2021-05-18 10:28:48 +0000 | [diff] [blame] | 5 | ; Schema: 0 |
| 6 | OpCapability Shader |
| 7 | OpMemoryModel Logical GLSL450 |
| 8 | OpEntryPoint GLCompute %main "main" |
| 9 | OpExecutionMode %main LocalSize 1 1 1 |
| 10 | OpName %S "S" |
| 11 | OpMemberName %S 0 "a" |
| 12 | OpName %G "G" |
| 13 | OpName %main "main" |
| 14 | OpDecorate %S Block |
| 15 | OpMemberDecorate %S 0 Offset 0 |
| 16 | OpDecorate %_runtimearr_int ArrayStride 4 |
| 17 | OpDecorate %G NonWritable |
| 18 | OpDecorate %G DescriptorSet 0 |
| 19 | OpDecorate %G Binding 0 |
| 20 | %int = OpTypeInt 32 1 |
| 21 | %_runtimearr_int = OpTypeRuntimeArray %int |
| 22 | %S = OpTypeStruct %_runtimearr_int |
| 23 | %_ptr_StorageBuffer_S = OpTypePointer StorageBuffer %S |
| 24 | %G = OpVariable %_ptr_StorageBuffer_S StorageBuffer |
| 25 | %void = OpTypeVoid |
| 26 | %6 = OpTypeFunction %void |
Ben Clayton | aba42ed | 2021-06-10 18:43:04 +0000 | [diff] [blame] | 27 | %uint = OpTypeInt 32 0 |
Ben Clayton | 9b54a2e | 2021-05-18 10:28:48 +0000 | [diff] [blame] | 28 | %main = OpFunction %void None %6 |
| 29 | %9 = OpLabel |
Ben Clayton | aba42ed | 2021-06-10 18:43:04 +0000 | [diff] [blame] | 30 | %10 = OpArrayLength %uint %G 0 |
Ben Clayton | 9b54a2e | 2021-05-18 10:28:48 +0000 | [diff] [blame] | 31 | OpReturn |
| 32 | OpFunctionEnd |