summaryrefslogtreecommitdiffstats
path: root/src/video_core/renderer_opengl/gl_device.h
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2021-06-23 07:41:00 +0200
committerameerj <52414509+ameerj@users.noreply.github.com>2021-07-23 03:51:39 +0200
commit395bed3a0af90a53be44e81eadd06f4931c8e933 (patch)
tree9c9b45a5d3c4cd72957d0bc5631c3e71106344d1 /src/video_core/renderer_opengl/gl_device.h
parentlower_int64_to_int32: Add missing include (diff)
downloadyuzu-395bed3a0af90a53be44e81eadd06f4931c8e933.tar
yuzu-395bed3a0af90a53be44e81eadd06f4931c8e933.tar.gz
yuzu-395bed3a0af90a53be44e81eadd06f4931c8e933.tar.bz2
yuzu-395bed3a0af90a53be44e81eadd06f4931c8e933.tar.lz
yuzu-395bed3a0af90a53be44e81eadd06f4931c8e933.tar.xz
yuzu-395bed3a0af90a53be44e81eadd06f4931c8e933.tar.zst
yuzu-395bed3a0af90a53be44e81eadd06f4931c8e933.zip
Diffstat (limited to 'src/video_core/renderer_opengl/gl_device.h')
-rw-r--r--src/video_core/renderer_opengl/gl_device.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/video_core/renderer_opengl/gl_device.h b/src/video_core/renderer_opengl/gl_device.h
index 0bd277d38..ad7b01b06 100644
--- a/src/video_core/renderer_opengl/gl_device.h
+++ b/src/video_core/renderer_opengl/gl_device.h
@@ -6,7 +6,7 @@
#include <cstddef>
#include "common/common_types.h"
-#include "video_core/engines/shader_type.h"
+#include "shader_recompiler/stage.h"
namespace OpenGL {
@@ -16,8 +16,8 @@ public:
[[nodiscard]] std::string GetVendorName() const;
- u32 GetMaxUniformBuffers(Tegra::Engines::ShaderType shader_type) const noexcept {
- return max_uniform_buffers[static_cast<std::size_t>(shader_type)];
+ u32 GetMaxUniformBuffers(Shader::Stage stage) const noexcept {
+ return max_uniform_buffers[static_cast<size_t>(stage)];
}
size_t GetUniformBufferAlignment() const {
@@ -148,8 +148,7 @@ private:
static bool TestVariableAoffi();
static bool TestPreciseBug();
- std::string vendor_name;
- std::array<u32, Tegra::Engines::MaxShaderTypes> max_uniform_buffers{};
+ std::array<u32, Shader::MaxStageTypes> max_uniform_buffers{};
size_t uniform_buffer_alignment{};
size_t shader_storage_alignment{};
u32 max_vertex_attributes{};
@@ -181,6 +180,8 @@ private:
bool has_sparse_texture_2{};
bool warp_size_potentially_larger_than_guest{};
bool need_fastmath_off{};
+
+ std::string vendor_name;
};
} // namespace OpenGL