| 1 |
; SPIR-V |
| 2 |
; Version: 1.0 |
| 3 |
; Generator: Khronos Glslang Reference Front End; 2 |
| 4 |
; Bound: 23 |
| 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 Flat |
| 19 |
OpDecorate %vA Location 0 |
| 20 |
OpDecorate %vB Flat |
| 21 |
OpDecorate %vB Location 1 |
| 22 |
%void = OpTypeVoid |
| 23 |
%3 = OpTypeFunction %void |
| 24 |
%float = OpTypeFloat 32 |
| 25 |
%v4float = OpTypeVector %float 4 |
| 26 |
%_ptr_Output_v4float = OpTypePointer Output %v4float |
| 27 |
%FragColor = OpVariable %_ptr_Output_v4float Output |
| 28 |
%int = OpTypeInt 32 1 |
| 29 |
%v4int = OpTypeVector %int 4 |
| 30 |
%_ptr_Input_v4int = OpTypePointer Input %v4int |
| 31 |
%vA = OpVariable %_ptr_Input_v4int Input |
| 32 |
%vB = OpVariable %_ptr_Input_v4int Input |
| 33 |
%main = OpFunction %void None %3 |
| 34 |
%5 = OpLabel |
| 35 |
%14 = OpLoad %v4int %vA |
| 36 |
%16 = OpLoad %v4int %vB |
| 37 |
%17 = OpLoad %v4int %vA |
| 38 |
%18 = OpLoad %v4int %vB |
| 39 |
%19 = OpSRem %v4int %17 %18 |
| 40 |
%20 = OpConvertSToF %v4float %19 |
| 41 |
OpStore %FragColor %20 |
| 42 |
OpReturn |
| 43 |
OpFunctionEnd |