mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-10-18 23:07:07 -05:00
The SRT evaluator records every raw read with the user-data word its address is based on, and marks a word used as a plain value. The result also names the user-data word behind each shader-data dword. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
20 lines
398 B
C++
20 lines
398 B
C++
#ifndef CORE_SHADER_RECOMPILER_USERDATAUSE_HPP
|
|
#define CORE_SHADER_RECOMPILER_USERDATAUSE_HPP
|
|
|
|
#include <cstdint>
|
|
#include <utility>
|
|
#include <vector>
|
|
|
|
namespace ShaderRecompiler {
|
|
|
|
struct SrtUserDataUse {
|
|
static constexpr std::uint32_t TrackedWords = 64;
|
|
std::uint64_t asBase = 0;
|
|
std::uint64_t asValue = 0;
|
|
std::vector<std::pair<std::uint64_t, std::int32_t>> reads;
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|