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