mirror of
https://github.com/KytyPS5/KytyPS5.git
synced 2026-10-21 11:26:56 +02:00
30 lines
879 B
C++
30 lines
879 B
C++
#ifndef EMULATOR_INCLUDE_EMULATOR_GRAPHICS_SHADER_RECOMPILER_RESOURCESNAPSHOT_H_
|
|
#define EMULATOR_INCLUDE_EMULATOR_GRAPHICS_SHADER_RECOMPILER_RESOURCESNAPSHOT_H_
|
|
|
|
#include <array>
|
|
#include <cstdint>
|
|
#include <vector>
|
|
|
|
namespace Libs::Graphics::ShaderRecompiler::IR {
|
|
|
|
struct DescriptorValue {
|
|
std::array<uint32_t, 8> dwords = {};
|
|
uint32_t dword_count = 0;
|
|
|
|
bool operator==(const DescriptorValue& other) const {
|
|
return dword_count == other.dword_count && dwords == other.dwords;
|
|
}
|
|
};
|
|
|
|
struct ResourceSnapshot {
|
|
std::vector<DescriptorValue> buffers;
|
|
std::vector<DescriptorValue> images;
|
|
std::vector<DescriptorValue> samplers;
|
|
std::vector<uint32_t> flattened_srt;
|
|
std::vector<uint32_t> user_data;
|
|
};
|
|
|
|
} // namespace Libs::Graphics::ShaderRecompiler::IR
|
|
|
|
#endif // EMULATOR_INCLUDE_EMULATOR_GRAPHICS_SHADER_RECOMPILER_RESOURCESNAPSHOT_H_
|