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