; SPIR-V | |
; Version: 1.3 | |
; Generator: Google Tint Compiler; 1 | |
; Bound: 14 | |
; Schema: 0 | |
OpCapability Shader | |
OpMemoryModel Logical GLSL450 | |
OpEntryPoint GLCompute %main "main" | |
OpExecutionMode %main LocalSize 1 1 1 | |
OpName %P "P" | |
OpName %func "func" | |
OpName %main "main" | |
%int = OpTypeInt 32 1 | |
%_ptr_Private_int = OpTypePointer Private %int | |
%4 = OpConstantNull %int | |
%P = OpVariable %_ptr_Private_int Private %4 | |
%void = OpTypeVoid | |
%7 = OpTypeFunction %void | |
%int_42 = OpConstant %int 42 | |
%func = OpFunction %void None %7 | |
%8 = OpLabel | |
%9 = OpAccessChain %_ptr_Private_int %P | |
OpStore %9 %int_42 None | |
OpReturn | |
OpFunctionEnd | |
%main = OpFunction %void None %7 | |
%12 = OpLabel | |
%13 = OpFunctionCall %void %func | |
OpReturn | |
OpFunctionEnd |