Files
Scott SchusterandClaude Opus 5.5 553690c0d3 perf(recompiler): report which user-data words a resource capture only reads through
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>
2026-10-15 09:26:58 -05:00

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