diff options
| author | crueter <crueter@eden-emu.dev> | 2025-08-04 04:50:14 +0200 |
|---|---|---|
| committer | crueter <crueter@eden-emu.dev> | 2025-08-04 04:50:14 +0200 |
| commit | 51b170b470ed587f99a7c2a773e4464687f0d07a (patch) | |
| tree | 4c03c510cfb17a5f5d6233df490d78f06dcfa7f7 /externals/sirit/src/instructions/extension.cpp | |
| parent | 04e5e6453875ffa5c79cdb421a29bc19985b1049 (diff) | |
[cmake] refactor: Use CPM over submodules (#143)
Transfers the majority of submodules and large externals to CPM, using source archives rather than full Git clones. Not only does this save massive amounts of clone and configure time, but dependencies are grabbed on-demand rather than being required by default. Additionally, CPM will (generally) automatically search for system dependencies, though certain dependencies have options to control this.
Testing shows gains ranging from 5x to 10x in terms of overall clone/configure time.
Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/143
Reviewed-by: CamilleLaVey <camillelavey99@gmail.com>
Diffstat (limited to 'externals/sirit/src/instructions/extension.cpp')
| -rw-r--r-- | externals/sirit/src/instructions/extension.cpp | 80 |
1 files changed, 0 insertions, 80 deletions
diff --git a/externals/sirit/src/instructions/extension.cpp b/externals/sirit/src/instructions/extension.cpp deleted file mode 100644 index 005c1891c6..0000000000 --- a/externals/sirit/src/instructions/extension.cpp +++ /dev/null @@ -1,80 +0,0 @@ -/* This file is part of the sirit project. - * Copyright (c) 2019 sirit - * This software may be used and distributed according to the terms of the - * 3-Clause BSD License - */ - -#include <spirv/unified1/GLSL.std.450.h> - -#include "sirit/sirit.h" - -#include "stream.h" - -namespace Sirit { - -Id Module::OpExtInst(Id result_type, Id set, u32 instruction, std::span<const Id> operands) { - code->Reserve(5 + operands.size()); - return *code << OpId{spv::Op::OpExtInst, result_type} << set << instruction << operands - << EndOp{}; -} - -#define DEFINE_UNARY(funcname, opcode) \ - Id Module::funcname(Id result_type, Id operand) { \ - return OpExtInst(result_type, GetGLSLstd450(), opcode, operand); \ - } - -#define DEFINE_BINARY(funcname, opcode) \ - Id Module::funcname(Id result_type, Id operand_1, Id operand_2) { \ - return OpExtInst(result_type, GetGLSLstd450(), opcode, operand_1, operand_2); \ - } - -#define DEFINE_TRINARY(funcname, opcode) \ - Id Module::funcname(Id result_type, Id operand_1, Id operand_2, Id operand_3) { \ - return OpExtInst(result_type, GetGLSLstd450(), opcode, operand_1, operand_2, operand_3); \ - } - -DEFINE_UNARY(OpFAbs, GLSLstd450FAbs) -DEFINE_UNARY(OpSAbs, GLSLstd450SAbs) -DEFINE_UNARY(OpRound, GLSLstd450Round) -DEFINE_UNARY(OpRoundEven, GLSLstd450RoundEven) -DEFINE_UNARY(OpTrunc, GLSLstd450Trunc) -DEFINE_UNARY(OpFSign, GLSLstd450FSign) -DEFINE_UNARY(OpSSign, GLSLstd450SSign) -DEFINE_UNARY(OpFloor, GLSLstd450Floor) -DEFINE_UNARY(OpCeil, GLSLstd450Ceil) -DEFINE_UNARY(OpFract, GLSLstd450Fract) -DEFINE_UNARY(OpSin, GLSLstd450Sin) -DEFINE_UNARY(OpCos, GLSLstd450Cos) -DEFINE_UNARY(OpAsin, GLSLstd450Asin) -DEFINE_UNARY(OpAcos, GLSLstd450Acos) -DEFINE_BINARY(OpPow, GLSLstd450Pow) -DEFINE_UNARY(OpExp, GLSLstd450Exp) -DEFINE_UNARY(OpLog, GLSLstd450Log) -DEFINE_UNARY(OpExp2, GLSLstd450Exp2) -DEFINE_UNARY(OpLog2, GLSLstd450Log2) -DEFINE_UNARY(OpSqrt, GLSLstd450Sqrt) -DEFINE_UNARY(OpInverseSqrt, GLSLstd450InverseSqrt) -DEFINE_BINARY(OpFMin, GLSLstd450FMin) -DEFINE_BINARY(OpUMin, GLSLstd450UMin) -DEFINE_BINARY(OpSMin, GLSLstd450SMin) -DEFINE_BINARY(OpFMax, GLSLstd450FMax) -DEFINE_BINARY(OpUMax, GLSLstd450UMax) -DEFINE_BINARY(OpSMax, GLSLstd450SMax) -DEFINE_TRINARY(OpFClamp, GLSLstd450FClamp) -DEFINE_TRINARY(OpUClamp, GLSLstd450UClamp) -DEFINE_TRINARY(OpSClamp, GLSLstd450SClamp) -DEFINE_TRINARY(OpFma, GLSLstd450Fma) -DEFINE_UNARY(OpPackHalf2x16, GLSLstd450PackHalf2x16) -DEFINE_UNARY(OpUnpackHalf2x16, GLSLstd450UnpackHalf2x16) -DEFINE_UNARY(OpFindILsb, GLSLstd450FindILsb) -DEFINE_UNARY(OpFindSMsb, GLSLstd450FindSMsb) -DEFINE_UNARY(OpFindUMsb, GLSLstd450FindUMsb) -DEFINE_UNARY(OpInterpolateAtCentroid, GLSLstd450InterpolateAtCentroid) -DEFINE_BINARY(OpInterpolateAtSample, GLSLstd450InterpolateAtSample) -DEFINE_BINARY(OpInterpolateAtOffset, GLSLstd450InterpolateAtOffset) -DEFINE_UNARY(OpNormalize, GLSLstd450Normalize) -DEFINE_BINARY(OpCross, GLSLstd450Cross) -DEFINE_UNARY(OpLength, GLSLstd450Length) -DEFINE_TRINARY(OpFMix, GLSLstd450FMix) - -} // namespace Sirit |
