2021-01-08 22:30:07 -08:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
#include "common/common_types.h"
|
2021-03-08 13:31:53 -08:00
|
|
|
#include "shader_recompiler/environment.h"
|
2021-01-08 22:30:07 -08:00
|
|
|
|
|
|
|
namespace Shader {
|
|
|
|
|
2021-04-05 19:25:22 -07:00
|
|
|
class FileEnvironment : public Environment {
|
2021-01-08 22:30:07 -08:00
|
|
|
public:
|
|
|
|
explicit FileEnvironment(const char* path);
|
|
|
|
~FileEnvironment() override;
|
|
|
|
|
2021-02-16 19:59:28 -08:00
|
|
|
u64 ReadInstruction(u32 offset) override;
|
|
|
|
|
2021-03-22 17:03:20 -07:00
|
|
|
u32 TextureBoundBuffer() const override;
|
2021-03-08 13:31:53 -08:00
|
|
|
|
2021-03-22 17:03:20 -07:00
|
|
|
std::array<u32, 3> WorkgroupSize() const override;
|
2021-01-08 22:30:07 -08:00
|
|
|
|
|
|
|
private:
|
|
|
|
std::vector<u64> data;
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace Shader
|