diff options
author | bunnei <bunneidev@gmail.com> | 2019-05-19 20:02:58 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-19 20:02:58 +0200 |
commit | d49efbfb4aa4e935f6c753871d6af6534701f542 (patch) | |
tree | 79608391a32719a0be20c898fc79aba93f9f1d48 /src/video_core/renderer_opengl/gl_device.h | |
parent | Merge pull request #2410 from lioncash/affinity (diff) | |
parent | shader_ir/other: Implement IPA.IDX (diff) | |
download | yuzu-d49efbfb4aa4e935f6c753871d6af6534701f542.tar yuzu-d49efbfb4aa4e935f6c753871d6af6534701f542.tar.gz yuzu-d49efbfb4aa4e935f6c753871d6af6534701f542.tar.bz2 yuzu-d49efbfb4aa4e935f6c753871d6af6534701f542.tar.lz yuzu-d49efbfb4aa4e935f6c753871d6af6534701f542.tar.xz yuzu-d49efbfb4aa4e935f6c753871d6af6534701f542.tar.zst yuzu-d49efbfb4aa4e935f6c753871d6af6534701f542.zip |
Diffstat (limited to 'src/video_core/renderer_opengl/gl_device.h')
-rw-r--r-- | src/video_core/renderer_opengl/gl_device.h | 14 |
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{}; }; |