summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2019-11-26 22:33:30 +0100
committerReinUsesLisp <reinuseslisp@airmail.cc>2020-02-14 21:27:17 +0100
commitef9920e164e208f03488ed9593ecffeaf4bcac3e (patch)
tree0f5da30e7d20d1eeef80fb3543f9662269a1dc47 /src
parentgl_rasterizer: Add queued commands counter (diff)
downloadyuzu-ef9920e164e208f03488ed9593ecffeaf4bcac3e.tar
yuzu-ef9920e164e208f03488ed9593ecffeaf4bcac3e.tar.gz
yuzu-ef9920e164e208f03488ed9593ecffeaf4bcac3e.tar.bz2
yuzu-ef9920e164e208f03488ed9593ecffeaf4bcac3e.tar.lz
yuzu-ef9920e164e208f03488ed9593ecffeaf4bcac3e.tar.xz
yuzu-ef9920e164e208f03488ed9593ecffeaf4bcac3e.tar.zst
yuzu-ef9920e164e208f03488ed9593ecffeaf4bcac3e.zip
Diffstat (limited to 'src')
-rw-r--r--src/video_core/renderer_opengl/gl_rasterizer.h31
1 files changed, 15 insertions, 16 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer.h b/src/video_core/renderer_opengl/gl_rasterizer.h
index a9218db22..857a6c073 100644
--- a/src/video_core/renderer_opengl/gl_rasterizer.h
+++ b/src/video_core/renderer_opengl/gl_rasterizer.h
@@ -183,10 +183,23 @@ private:
/// Syncs the alpha test state to match the guest state
void SyncAlphaTest();
- /// Check for extension that are not strictly required
- /// but are needed for correct emulation
+ /// Check for extension that are not strictly required but are needed for correct emulation
void CheckExtensions();
+ std::size_t CalculateVertexArraysSize() const;
+
+ std::size_t CalculateIndexBufferSize() const;
+
+ /// Updates and returns a vertex array object representing current vertex format
+ GLuint SetupVertexFormat();
+
+ void SetupVertexBuffer(GLuint vao);
+ void SetupVertexInstances(GLuint vao);
+
+ GLintptr SetupIndexBuffer();
+
+ void SetupShaders(GLenum primitive_mode);
+
const Device device;
OpenGLState state;
@@ -211,20 +224,6 @@ private:
BindBuffersRangePushBuffer bind_ubo_pushbuffer{GL_UNIFORM_BUFFER};
BindBuffersRangePushBuffer bind_ssbo_pushbuffer{GL_SHADER_STORAGE_BUFFER};
- std::size_t CalculateVertexArraysSize() const;
-
- std::size_t CalculateIndexBufferSize() const;
-
- /// Updates and returns a vertex array object representing current vertex format
- GLuint SetupVertexFormat();
-
- void SetupVertexBuffer(GLuint vao);
- void SetupVertexInstances(GLuint vao);
-
- GLintptr SetupIndexBuffer();
-
- void SetupShaders(GLenum primitive_mode);
-
HostCounter samples_passed{GL_SAMPLES_PASSED};
/// Number of commands queued to the OpenGL driver. Reseted on flush.