mirror of
https://git.triforceproject.com/triforce/source
synced 2026-11-25 18:48:51 -04:00
Triforce v0.8.0
Evil HD (SMAA Ultra, 16x filtering, full textures, ambient occlusion with bounce light, sunlight shafts, foliage drawn 4x as far, the remastered texture pack's loader and the launcher's download of it), FSR 3.1 frame generation for every GPU, Intel XeSS, FSR 4 model choice, ReShade presets, Auto (this PC), HUD placement, the options menu in 13 languages, a second input for every control, hold to toggle, DualSense speaker and haptics, NFC from the player's own dumps, the above-60 fps game fixes, the Debug tab's flight and Inventory fixes, the launcher's full settings, and over 250 fixes.
This commit is contained in:
@@ -337,6 +337,10 @@ U32 IREmitter::IsbeRead(const U32& address) {
|
||||
return Inst<U32>(Opcode::IsbeRead, address);
|
||||
}
|
||||
|
||||
U32 IREmitter::IsbeReadOutput(const U32& address) {
|
||||
return Inst<U32>(Opcode::IsbeReadOutput, address);
|
||||
}
|
||||
|
||||
void IREmitter::IsbeWriteAttribute(const U32& address, const U32& value) {
|
||||
Inst(Opcode::IsbeWriteAttribute, address, value);
|
||||
}
|
||||
|
||||
@@ -89,6 +89,7 @@ public:
|
||||
void SetPatch(Patch patch, const F32& value);
|
||||
|
||||
[[nodiscard]] U32 IsbeRead(const U32& address);
|
||||
[[nodiscard]] U32 IsbeReadOutput(const U32& address); // (hookshot) the output region read back
|
||||
void IsbeWriteAttribute(const U32& address, const U32& value);
|
||||
void IsbeWriteMapU8(const U32& address, const U32& value);
|
||||
void IsbeWriteMapU32(const U32& address, const U32& value);
|
||||
|
||||
@@ -10,7 +10,7 @@ namespace Shader::IR {
|
||||
|
||||
namespace Detail {
|
||||
|
||||
OpcodeMeta META_TABLE[542] = {
|
||||
OpcodeMeta META_TABLE[NUM_OPCODES] = {
|
||||
#define OPCODE(name_token, type_token, ...) \
|
||||
{ \
|
||||
.name{#name_token}, \
|
||||
@@ -21,7 +21,7 @@ OpcodeMeta META_TABLE[542] = {
|
||||
#undef OPCODE
|
||||
};
|
||||
|
||||
u8 NUM_ARGS[542] = {
|
||||
u8 NUM_ARGS[NUM_OPCODES] = {
|
||||
#define OPCODE(name_token, type_token, ...) u8(CalculateNumArgsOf(Opcode::name_token)),
|
||||
#include "opcodes.inc"
|
||||
#undef OPCODE
|
||||
|
||||
@@ -20,6 +20,7 @@ enum class Opcode {
|
||||
#define OPCODE(name, ...) name,
|
||||
#include "opcodes.inc"
|
||||
#undef OPCODE
|
||||
Count,
|
||||
};
|
||||
|
||||
namespace Detail {
|
||||
@@ -57,12 +58,13 @@ static constexpr Type F64x2{Type::F64x2};
|
||||
static constexpr Type F64x3{Type::F64x3};
|
||||
static constexpr Type F64x4{Type::F64x4};
|
||||
|
||||
extern OpcodeMeta META_TABLE[542];
|
||||
inline constexpr size_t NUM_OPCODES = static_cast<size_t>(Opcode::Count);
|
||||
extern OpcodeMeta META_TABLE[NUM_OPCODES];
|
||||
constexpr size_t CalculateNumArgsOf(Opcode op) noexcept {
|
||||
const auto& arg_types = META_TABLE[size_t(op)].arg_types;
|
||||
return size_t(std::distance(arg_types.begin(), std::ranges::find(arg_types, Type::Void)));
|
||||
}
|
||||
extern u8 NUM_ARGS[542];
|
||||
extern u8 NUM_ARGS[NUM_OPCODES];
|
||||
} // namespace Detail
|
||||
|
||||
/// Get return type of an opcode
|
||||
|
||||
@@ -50,6 +50,7 @@ OPCODE(SetAttributeIndexed, Void, U32,
|
||||
OPCODE(GetPatch, F32, Patch, )
|
||||
OPCODE(SetPatch, Void, Patch, F32, )
|
||||
OPCODE(IsbeRead, U32, U32, )
|
||||
OPCODE(IsbeReadOutput, U32, U32, )
|
||||
OPCODE(IsbeWriteAttribute, Void, U32, U32, )
|
||||
OPCODE(IsbeWriteMapU8, Void, U32, U32, )
|
||||
OPCODE(IsbeWriteMapU32, Void, U32, U32, )
|
||||
@@ -100,6 +101,7 @@ OPCODE(WriteGlobal64, Void, Opaq
|
||||
OPCODE(WriteGlobal128, Void, Opaque, U32x4, )
|
||||
|
||||
// Storage buffer operations
|
||||
OPCODE(StorageBufferLength, U32, U32, )
|
||||
OPCODE(LoadStorageU8, U32, U32, U32, )
|
||||
OPCODE(LoadStorageS8, U32, U32, U32, )
|
||||
OPCODE(LoadStorageU16, U32, U32, U32, )
|
||||
|
||||
Reference in New Issue
Block a user