mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-20 14:31:08 +01:00
60 lines
1.4 KiB
Plaintext
60 lines
1.4 KiB
Plaintext
; SPIR-V
|
|
; Version: 1.0
|
|
; Generator: rspirv
|
|
; Bound: 44
|
|
OpCapability Shader
|
|
OpCapability Linkage
|
|
%1 = OpExtInstImport "GLSL.std.450"
|
|
OpMemoryModel Logical GLSL450
|
|
%2 = OpTypeVoid
|
|
%4 = OpTypeFloat 32
|
|
%3 = OpConstant %4 1.0
|
|
%5 = OpConstant %4 2.0
|
|
%6 = OpConstant %4 3.0
|
|
%7 = OpConstant %4 4.0
|
|
%9 = OpTypeInt 32 1
|
|
%8 = OpConstant %9 5
|
|
%10 = OpConstant %9 2
|
|
%11 = OpConstant %9 1
|
|
%13 = OpTypeBool
|
|
%12 = OpConstantTrue %13
|
|
%14 = OpTypeVector %4 4
|
|
%17 = OpTypeFunction %14
|
|
%19 = OpTypeVector %4 2
|
|
%27 = OpTypeVector %9 4
|
|
%36 = OpTypeFunction %9
|
|
%43 = OpConstantNull %9
|
|
%16 = OpFunction %14 None %17
|
|
%15 = OpLabel
|
|
OpBranch %18
|
|
%18 = OpLabel
|
|
%20 = OpCompositeConstruct %19 %5 %5
|
|
%21 = OpCompositeConstruct %19 %3 %3
|
|
%22 = OpFAdd %19 %21 %20
|
|
%23 = OpCompositeConstruct %19 %6 %6
|
|
%24 = OpFSub %19 %22 %23
|
|
%25 = OpCompositeConstruct %19 %7 %7
|
|
%26 = OpFDiv %19 %24 %25
|
|
%28 = OpCompositeConstruct %27 %8 %8 %8 %8
|
|
%29 = OpCompositeConstruct %27 %10 %10 %10 %10
|
|
%30 = OpSMod %27 %28 %29
|
|
%31 = OpVectorShuffle %14 %26 %26 0 1 0 1
|
|
%32 = OpConvertSToF %14 %30
|
|
%33 = OpFAdd %14 %31 %32
|
|
OpReturnValue %33
|
|
OpFunctionEnd
|
|
%35 = OpFunction %9 None %36
|
|
%34 = OpLabel
|
|
OpBranch %37
|
|
%37 = OpLabel
|
|
%38 = OpLogicalNot %13 %12
|
|
OpSelectionMerge %39 None
|
|
OpBranchConditional %38 %40 %41
|
|
%40 = OpLabel
|
|
OpReturnValue %11
|
|
%41 = OpLabel
|
|
%42 = OpNot %9 %11
|
|
OpReturnValue %42
|
|
%39 = OpLabel
|
|
OpReturnValue %43
|
|
OpFunctionEnd |