Bring PS5 GTA6 to 120FPS with DLSS 5. An advanced Windows video player and capture enhancement tool featuring real-time preview for videos, images, and capture card sources. Combine AI-powered Super Resolution, DLSS5 image enhancement, and Frame Generation to deliver a next-generation visual experience.
C++
// Adapted from dashdogy/RTX40MFG-Unlock, MIT, commit 33b41835dc39c5d8ab1ef93efb2449be31139c09.
// Only NGX driver metadata/Create patterns; no wrapper or Streamline patches.
#pragma once
#include <array>
#include <cstdint>
#include <Windows.h>
namespace ampere_patterns {
static constexpr std::array<uint8_t, 59> kAmpereNgxMetadataPattern{
0x41, 0x8B, 0x46, 0x10, 0x41, 0x8B, 0x97, 0x5C,
0x24, 0x00, 0x00, 0x3B, 0xC2, 0x7E, 0x31, 0x89,
0x54, 0x24, 0x28, 0x89, 0x44, 0x24, 0x20, 0x4C,
0x8D, 0x0D, 0x58, 0xC0, 0x06, 0x00, 0x4C, 0x8D,
0x05, 0xB1, 0xBF, 0x06, 0x00, 0xBA, 0xDA, 0x05,
0x00, 0x00, 0x48, 0x8D, 0x0D, 0x9D, 0xB1, 0x06,
0x00, 0xE8, 0xE8, 0xD5, 0x00, 0x00, 0xB8, 0x01,
0x00, 0xD0, 0xBA,
};
static constexpr std::array<uint8_t, 59> kAmpereNgxMetadataPatternMask{
0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
0xFF, 0xFF, 0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF,
0xFF, 0x00, 0x00, 0x00, 0x00, 0xFF, 0x00, 0x00,
0x00, 0x00, 0xFF, 0xFF, 0xFF, 0x00, 0x00, 0x00,
0x00, 0xFF, 0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF,
0xFF, 0xFF, 0xFF,
};
constexpr size_t kAmpereNgxMetadataBranchOffset = 13;
static constexpr uint8_t kAmpereNgxMetadataOriginal = 0x7E;
static constexpr uint8_t kAmpereNgxMetadataReplacement = 0xEB;
// A second independent architecture branch is crossed only around one
// authorized CreateFeature call, then restored before post-create work.
static constexpr std::array<uint8_t, 57>
kAmpereNgxCreateValidationPattern{
0x8B, 0x84, 0xC6, 0xD0, 0x2E, 0x00, 0x00, 0x39,
0x41, 0x1C, 0x7D, 0x32, 0x4C, 0x8D, 0x0D, 0xD9,
0xD6, 0x04, 0x00, 0x4C, 0x8D, 0x05, 0x72, 0xD6,
0x04, 0x00, 0xBA, 0xD5, 0x02, 0x00, 0x00, 0x48,
0x8D, 0x0D, 0x76, 0xCD, 0x04, 0x00, 0xE8, 0x91,
0x61, 0xFF, 0xFF, 0x90, 0x48, 0x8B, 0xCB, 0xE8,
0x84, 0x2A, 0x00, 0x00, 0xBF, 0x0B, 0x00, 0xD0,
0xBA,
};
static constexpr std::array<uint8_t, 57>
kAmpereNgxCreateValidationPatternMask{
0xFF, 0xFF, 0xFF, 0x00, 0x00, 0x00, 0x00, 0xFF,
0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x00,
0x00, 0x00, 0x00, 0xFF, 0xFF, 0xFF, 0x00, 0x00,
0x00, 0x00, 0xFF, 0x00, 0x00, 0x00, 0x00, 0xFF,
0xFF, 0xFF, 0x00, 0x00, 0x00, 0x00, 0xFF, 0x00,
0x00, 0x00, 0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF, 0xFF, 0xFF,
0xFF,
};
constexpr size_t kAmpereNgxCreateValidationBranchOffset = 10;
static constexpr uint8_t kAmpereNgxCreateValidationOriginal = 0x7D;
static constexpr uint8_t kAmpereNgxCreateValidationReplacement = 0xEB;
// The same validation body is emitted for several NGX entry points. Resolve
// the D3D12 instance through decoded instructions rooted at the exported
// CreateFeature entry and its direct callees. Owned unwind entries bound each
// function; the unchanged full signature must have exactly one match.
}