summaryrefslogtreecommitdiffstats
path: root/src/video_core/renderer_opengl/gl_device.h
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2019-04-30 05:09:51 +0200
committerReinUsesLisp <reinuseslisp@airmail.cc>2019-05-03 02:46:25 +0200
commitbd81a03d9d4b3e7d69eb8377b13278944bc5ab0b (patch)
treea6741bf5cc228af09f41de88a508e6d27f279ded /src/video_core/renderer_opengl/gl_device.h
parentshader: Remove unused AbufNode Ipa mode (diff)
downloadyuzu-bd81a03d9d4b3e7d69eb8377b13278944bc5ab0b.tar
yuzu-bd81a03d9d4b3e7d69eb8377b13278944bc5ab0b.tar.gz
yuzu-bd81a03d9d4b3e7d69eb8377b13278944bc5ab0b.tar.bz2
yuzu-bd81a03d9d4b3e7d69eb8377b13278944bc5ab0b.tar.lz
yuzu-bd81a03d9d4b3e7d69eb8377b13278944bc5ab0b.tar.xz
yuzu-bd81a03d9d4b3e7d69eb8377b13278944bc5ab0b.tar.zst
yuzu-bd81a03d9d4b3e7d69eb8377b13278944bc5ab0b.zip
Diffstat (limited to '')
-rw-r--r--src/video_core/renderer_opengl/gl_device.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/video_core/renderer_opengl/gl_device.h b/src/video_core/renderer_opengl/gl_device.h
index 78ff5ee58..de8490682 100644
--- a/src/video_core/renderer_opengl/gl_device.h
+++ b/src/video_core/renderer_opengl/gl_device.h
@@ -5,17 +5,27 @@
#pragma once
#include <cstddef>
+#include "common/common_types.h"
namespace OpenGL {
class Device {
public:
- Device();
+ explicit Device();
+ explicit Device(std::nullptr_t);
std::size_t GetUniformBufferAlignment() const {
return uniform_buffer_alignment;
}
+ u32 GetMaxVertexAttributes() const {
+ return max_vertex_attributes;
+ }
+
+ u32 GetMaxVaryings() const {
+ return max_varyings;
+ }
+
bool HasVariableAoffi() const {
return has_variable_aoffi;
}
@@ -24,6 +34,8 @@ private:
static bool TestVariableAoffi();
std::size_t uniform_buffer_alignment{};
+ u32 max_vertex_attributes{};
+ u32 max_varyings{};
bool has_variable_aoffi{};
};