Corentin Wallez | b32c22c | 2021-07-26 09:12:57 +0000 | [diff] [blame] | 1 | ; SPIR-V |
| 2 | ; Version: 1.0 |
| 3 | ; Generator: Khronos Glslang Reference Front End; 10 |
| 4 | ; Bound: 13 |
| 5 | ; Schema: 0 |
| 6 | OpCapability Shader |
| 7 | %1 = OpExtInstImport "GLSL.std.450" |
| 8 | OpMemoryModel Logical GLSL450 |
| 9 | OpEntryPoint GLCompute %main "main" |
| 10 | OpExecutionMode %main LocalSize 1 1 1 |
| 11 | OpSource GLSL 460 |
| 12 | OpName %main "main" |
| 13 | OpName %a "a" |
| 14 | OpName %b "b" |
| 15 | %void = OpTypeVoid |
| 16 | %3 = OpTypeFunction %void |
| 17 | %float = OpTypeFloat 32 |
| 18 | %_ptr_Function_float = OpTypePointer Function %float |
| 19 | %float_42 = OpConstant %float 42 |
| 20 | %main = OpFunction %void None %3 |
| 21 | %5 = OpLabel |
| 22 | %a = OpVariable %_ptr_Function_float Function |
| 23 | %b = OpVariable %_ptr_Function_float Function |
| 24 | OpStore %a %float_42 |
| 25 | %11 = OpLoad %float %a |
| 26 | %12 = OpExtInst %float %1 Degrees %11 |
| 27 | OpStore %b %12 |
| 28 | OpReturn |
| 29 | OpFunctionEnd |