blob: bbb6ace13ba441c7acaf4c0b96a9622daf296d5f [file] [log] [blame]
OpCapability Shader
%1 = OpExtInstImport "GLSL.std.450"
OpMemoryModel Logical GLSL450
OpEntryPoint Fragment %main "main"
OpExecutionMode %main OriginUpperLeft
OpName %main "main"
OpName %x "x"
%void = OpTypeVoid
%4 = OpTypeFunction %void
%uint = OpTypeInt 32 0
%_ptr_Function_uint = OpTypePointer Function %uint
%uint_1 = OpConstant %uint 1
%main = OpFunction %void None %4
%5 = OpLabel
%x = OpVariable %_ptr_Function_uint Function
%10 = OpLoad %uint %x
%11 = OpIAdd %uint %10 %uint_1
OpStore %x %11
%12 = OpSNegate %uint %11
OpReturn
OpFunctionEnd