| 1 |
; SPIR-V |
| 2 |
; Version: 1.0 |
| 3 |
; Generator: Khronos Glslang Reference Front End; 3 |
| 4 |
; Bound: 16 |
| 5 |
; Schema: 0 |
| 6 |
OpCapability Shader |
| 7 |
%1 = OpExtInstImport "GLSL.std.450" |
| 8 |
OpMemoryModel Logical GLSL450 |
| 9 |
OpEntryPoint Fragment %main "main" %FragColor %vA %vB |
| 10 |
OpExecutionMode %main OriginUpperLeft |
| 11 |
OpSource ESSL 310 |
| 12 |
OpName %main "main" |
| 13 |
OpName %FragColor "FragColor" |
| 14 |
OpName %vA "vA" |
| 15 |
OpName %vB "vB" |
| 16 |
OpDecorate %FragColor RelaxedPrecision |
| 17 |
OpDecorate %FragColor Location 0 |
| 18 |
OpDecorate %vA RelaxedPrecision |
| 19 |
OpDecorate %vA Location 0 |
| 20 |
OpDecorate %12 RelaxedPrecision |
| 21 |
OpDecorate %vB RelaxedPrecision |
| 22 |
OpDecorate %vB Location 1 |
| 23 |
OpDecorate %14 RelaxedPrecision |
| 24 |
OpDecorate %15 RelaxedPrecision |
| 25 |
%void = OpTypeVoid |
| 26 |
%3 = OpTypeFunction %void |
| 27 |
%float = OpTypeFloat 32 |
| 28 |
%v4float = OpTypeVector %float 4 |
| 29 |
%_ptr_Output_v4float = OpTypePointer Output %v4float |
| 30 |
%FragColor = OpVariable %_ptr_Output_v4float Output |
| 31 |
%_ptr_Input_v4float = OpTypePointer Input %v4float |
| 32 |
%vA = OpVariable %_ptr_Input_v4float Input |
| 33 |
%vB = OpVariable %_ptr_Input_v4float Input |
| 34 |
%main = OpFunction %void None %3 |
| 35 |
%5 = OpLabel |
| 36 |
%12 = OpLoad %v4float %vA |
| 37 |
%14 = OpLoad %v4float %vB |
| 38 |
%15 = OpFRem %v4float %12 %14 |
| 39 |
OpStore %FragColor %15 |
| 40 |
OpReturn |
| 41 |
OpFunctionEnd |