summaryrefslogtreecommitdiff
path: root/src/shader_recompiler/file_environment.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/shader_recompiler/file_environment.cpp')
-rw-r--r--src/shader_recompiler/file_environment.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/shader_recompiler/file_environment.cpp b/src/shader_recompiler/file_environment.cpp
index b34bf462b..5127523f9 100644
--- a/src/shader_recompiler/file_environment.cpp
+++ b/src/shader_recompiler/file_environment.cpp
@@ -29,7 +29,7 @@ FileEnvironment::FileEnvironment(const char* path) {
29 29
30FileEnvironment::~FileEnvironment() = default; 30FileEnvironment::~FileEnvironment() = default;
31 31
32u64 FileEnvironment::ReadInstruction(u32 offset) const { 32u64 FileEnvironment::ReadInstruction(u32 offset) {
33 if (offset % 8 != 0) { 33 if (offset % 8 != 0) {
34 throw InvalidArgument("offset={} is not aligned to 8", offset); 34 throw InvalidArgument("offset={} is not aligned to 8", offset);
35 } 35 }
@@ -39,4 +39,8 @@ u64 FileEnvironment::ReadInstruction(u32 offset) const {
39 return data[offset / 8]; 39 return data[offset / 8];
40} 40}
41 41
42std::array<u32, 3> FileEnvironment::WorkgroupSize() {
43 return {1, 1, 1};
44}
45
42} // namespace Shader 46} // namespace Shader