| ; SPIR-V | |
| ; Version: 1.3 | |
| ; Generator: Google Tint Compiler; 1 | |
| ; Bound: 33 | |
| ; Schema: 0 | |
| OpCapability Shader | |
| OpMemoryModel Logical GLSL450 | |
| OpEntryPoint GLCompute %main "main" | |
| OpExecutionMode %main LocalSize 1 1 1 | |
| OpName %deref "deref" | |
| OpName %a "a" | |
| OpName %a "p" | |
| OpName %b "b" | |
| OpName %no_deref "no_deref" | |
| OpName %a_0 "a" | |
| OpName %a_0 "p" | |
| OpName %b_0 "b" | |
| OpName %main "main" | |
| %void = OpTypeVoid | |
| %3 = OpTypeFunction %void | |
| %float = OpTypeFloat 32 | |
| %v3float = OpTypeVector %float 3 | |
| %mat2v3float = OpTypeMatrix %v3float 2 | |
| %_ptr_Function_mat2v3float = OpTypePointer Function %mat2v3float | |
| %10 = OpConstantNull %mat2v3float | |
| %_ptr_Function_v3float = OpTypePointer Function %v3float | |
| %uint = OpTypeInt 32 0 | |
| %uint_0 = OpConstant %uint 0 | |
| %float_1 = OpConstant %float 1 | |
| %float_2 = OpConstant %float 2 | |
| %float_3 = OpConstant %float 3 | |
| %18 = OpConstantComposite %v3float %float_1 %float_2 %float_3 | |
| %deref = OpFunction %void None %3 | |
| %4 = OpLabel | |
| %a = OpVariable %_ptr_Function_mat2v3float Function %10 | |
| %b = OpVariable %_ptr_Function_v3float Function | |
| %11 = OpAccessChain %_ptr_Function_v3float %a %uint_0 | |
| %15 = OpLoad %v3float %11 None | |
| OpStore %b %15 | |
| %17 = OpAccessChain %_ptr_Function_v3float %a %uint_0 | |
| OpStore %17 %18 None | |
| OpReturn | |
| OpFunctionEnd | |
| %no_deref = OpFunction %void None %3 | |
| %23 = OpLabel | |
| %a_0 = OpVariable %_ptr_Function_mat2v3float Function %10 | |
| %b_0 = OpVariable %_ptr_Function_v3float Function | |
| %25 = OpAccessChain %_ptr_Function_v3float %a_0 %uint_0 | |
| %26 = OpLoad %v3float %25 None | |
| OpStore %b_0 %26 | |
| %28 = OpAccessChain %_ptr_Function_v3float %a_0 %uint_0 | |
| OpStore %28 %18 None | |
| OpReturn | |
| OpFunctionEnd | |
| %main = OpFunction %void None %3 | |
| %30 = OpLabel | |
| %31 = OpFunctionCall %void %deref | |
| %32 = OpFunctionCall %void %no_deref | |
| OpReturn | |
| OpFunctionEnd |