mirror of
https://github.com/KytyPS5/KytyPS5.git
synced 2026-10-22 11:56:58 +02:00
22 lines
458 B
C++
22 lines
458 B
C++
#pragma once
|
|
|
|
#include <cstdint>
|
|
|
|
namespace Libs::Graphics::ShaderRecompiler::IR {
|
|
|
|
enum class ScalarReg : uint16_t {};
|
|
enum class VectorReg : uint16_t {};
|
|
|
|
constexpr uint32_t NumScalarRegs = 106;
|
|
constexpr uint32_t NumVectorRegs = 256;
|
|
|
|
constexpr uint32_t RegIndex(ScalarReg reg) {
|
|
return static_cast<uint32_t>(reg);
|
|
}
|
|
|
|
constexpr uint32_t RegIndex(VectorReg reg) {
|
|
return static_cast<uint32_t>(reg);
|
|
}
|
|
|
|
} // namespace Libs::Graphics::ShaderRecompiler::IR
|