| 1 |
OpCapability Shader |
| 2 |
OpExtension "SPV_KHR_non_semantic_info" |
| 3 |
%1 = OpExtInstImport "GLSL.std.450" |
| 4 |
%12 = OpExtInstImport "NonSemantic.DebugPrintf" |
| 5 |
OpMemoryModel Logical GLSL450 |
| 6 |
OpEntryPoint GLCompute %main "main" |
| 7 |
OpExecutionMode %main LocalSize 1 1 1 |
| 8 |
%10 = OpString "signed == %d" |
| 9 |
OpSource GLSL 450 |
| 10 |
OpSourceExtension "GL_EXT_debug_printf" |
| 11 |
OpName %main "main" |
| 12 |
OpName %foo "foo" |
| 13 |
%void = OpTypeVoid |
| 14 |
%3 = OpTypeFunction %void |
| 15 |
%uint = OpTypeInt 32 0 |
| 16 |
%_ptr_Function_uint = OpTypePointer Function %uint |
| 17 |
%uint_127 = OpConstant %uint 127 |
| 18 |
%main = OpFunction %void None %3 |
| 19 |
%5 = OpLabel |
| 20 |
%foo = OpVariable %_ptr_Function_uint Function |
| 21 |
OpStore %foo %uint_127 |
| 22 |
%11 = OpLoad %uint %foo |
| 23 |
%13 = OpExtInst %void %12 1 %10 %11 |
| 24 |
OpReturn |
| 25 |
OpFunctionEnd |