dan sinclair | 1b77b6c | 2024-08-06 15:47:05 +0000 | [diff] [blame] | 1 | ; SPIR-V |
| 2 | ; Version: 1.3 |
| 3 | ; Generator: Google Tint Compiler; 1 |
| 4 | ; Bound: 18 |
| 5 | ; Schema: 0 |
| 6 | OpCapability Shader |
| 7 | OpMemoryModel Logical GLSL450 |
| 8 | OpEntryPoint GLCompute %f "f" |
| 9 | OpExecutionMode %f LocalSize 1 1 1 |
| 10 | OpMemberName %SSBO 0 "m" |
| 11 | OpName %SSBO "SSBO" |
| 12 | OpMemberName %tint_symbol_1 0 "tint_symbol" |
| 13 | OpName %tint_symbol_1 "tint_symbol_1" |
| 14 | OpName %f "f" |
| 15 | OpName %v "v" |
| 16 | OpMemberDecorate %SSBO 0 Offset 0 |
| 17 | OpMemberDecorate %SSBO 0 ColMajor |
| 18 | OpMemberDecorate %SSBO 0 MatrixStride 8 |
| 19 | OpMemberDecorate %tint_symbol_1 0 Offset 0 |
| 20 | OpDecorate %tint_symbol_1 Block |
| 21 | OpDecorate %1 DescriptorSet 0 |
| 22 | OpDecorate %1 Binding 0 |
dan sinclair | d117d65 | 2024-08-21 01:20:00 +0000 | [diff] [blame] | 23 | OpDecorate %1 Coherent |
dan sinclair | 1b77b6c | 2024-08-06 15:47:05 +0000 | [diff] [blame] | 24 | %float = OpTypeFloat 32 |
| 25 | %v2float = OpTypeVector %float 2 |
| 26 | %mat2v2float = OpTypeMatrix %v2float 2 |
| 27 | %SSBO = OpTypeStruct %mat2v2float |
| 28 | %tint_symbol_1 = OpTypeStruct %SSBO |
| 29 | %_ptr_StorageBuffer_tint_symbol_1 = OpTypePointer StorageBuffer %tint_symbol_1 |
| 30 | %1 = OpVariable %_ptr_StorageBuffer_tint_symbol_1 StorageBuffer |
| 31 | %void = OpTypeVoid |
| 32 | %10 = OpTypeFunction %void |
| 33 | %_ptr_StorageBuffer_mat2v2float = OpTypePointer StorageBuffer %mat2v2float |
| 34 | %uint = OpTypeInt 32 0 |
| 35 | %uint_0 = OpConstant %uint 0 |
| 36 | %f = OpFunction %void None %10 |
| 37 | %11 = OpLabel |
| 38 | %12 = OpAccessChain %_ptr_StorageBuffer_mat2v2float %1 %uint_0 %uint_0 |
dan sinclair | 5026041 | 2024-08-28 19:43:27 +0000 | [diff] [blame] | 39 | %v = OpLoad %mat2v2float %12 None |
dan sinclair | 1b77b6c | 2024-08-06 15:47:05 +0000 | [diff] [blame] | 40 | %17 = OpAccessChain %_ptr_StorageBuffer_mat2v2float %1 %uint_0 %uint_0 |
dan sinclair | 5026041 | 2024-08-28 19:43:27 +0000 | [diff] [blame] | 41 | OpStore %17 %v None |
dan sinclair | 1b77b6c | 2024-08-06 15:47:05 +0000 | [diff] [blame] | 42 | OpReturn |
| 43 | OpFunctionEnd |