diff options
| author | 2019-11-26 18:33:30 -0300 | |
|---|---|---|
| committer | 2020-02-14 17:27:17 -0300 | |
| commit | ef9920e164e208f03488ed9593ecffeaf4bcac3e (patch) | |
| tree | 0f5da30e7d20d1eeef80fb3543f9662269a1dc47 /src | |
| parent | gl_rasterizer: Add queued commands counter (diff) | |
| download | yuzu-ef9920e164e208f03488ed9593ecffeaf4bcac3e.tar.gz yuzu-ef9920e164e208f03488ed9593ecffeaf4bcac3e.tar.xz yuzu-ef9920e164e208f03488ed9593ecffeaf4bcac3e.zip | |
gl_rasterizer: Sort method declarations
Diffstat (limited to 'src')
| -rw-r--r-- | src/video_core/renderer_opengl/gl_rasterizer.h | 31 |
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: | |||
| 183 | /// Syncs the alpha test state to match the guest state | 183 | /// Syncs the alpha test state to match the guest state |
| 184 | void SyncAlphaTest(); | 184 | void SyncAlphaTest(); |
| 185 | 185 | ||
| 186 | /// Check for extension that are not strictly required | 186 | /// Check for extension that are not strictly required but are needed for correct emulation |
| 187 | /// but are needed for correct emulation | ||
| 188 | void CheckExtensions(); | 187 | void CheckExtensions(); |
| 189 | 188 | ||
| 189 | std::size_t CalculateVertexArraysSize() const; | ||
| 190 | |||
| 191 | std::size_t CalculateIndexBufferSize() const; | ||
| 192 | |||
| 193 | /// Updates and returns a vertex array object representing current vertex format | ||
| 194 | GLuint SetupVertexFormat(); | ||
| 195 | |||
| 196 | void SetupVertexBuffer(GLuint vao); | ||
| 197 | void SetupVertexInstances(GLuint vao); | ||
| 198 | |||
| 199 | GLintptr SetupIndexBuffer(); | ||
| 200 | |||
| 201 | void SetupShaders(GLenum primitive_mode); | ||
| 202 | |||
| 190 | const Device device; | 203 | const Device device; |
| 191 | OpenGLState state; | 204 | OpenGLState state; |
| 192 | 205 | ||
| @@ -211,20 +224,6 @@ private: | |||
| 211 | BindBuffersRangePushBuffer bind_ubo_pushbuffer{GL_UNIFORM_BUFFER}; | 224 | BindBuffersRangePushBuffer bind_ubo_pushbuffer{GL_UNIFORM_BUFFER}; |
| 212 | BindBuffersRangePushBuffer bind_ssbo_pushbuffer{GL_SHADER_STORAGE_BUFFER}; | 225 | BindBuffersRangePushBuffer bind_ssbo_pushbuffer{GL_SHADER_STORAGE_BUFFER}; |
| 213 | 226 | ||
| 214 | std::size_t CalculateVertexArraysSize() const; | ||
| 215 | |||
| 216 | std::size_t CalculateIndexBufferSize() const; | ||
| 217 | |||
| 218 | /// Updates and returns a vertex array object representing current vertex format | ||
| 219 | GLuint SetupVertexFormat(); | ||
| 220 | |||
| 221 | void SetupVertexBuffer(GLuint vao); | ||
| 222 | void SetupVertexInstances(GLuint vao); | ||
| 223 | |||
| 224 | GLintptr SetupIndexBuffer(); | ||
| 225 | |||
| 226 | void SetupShaders(GLenum primitive_mode); | ||
| 227 | |||
| 228 | HostCounter samples_passed{GL_SAMPLES_PASSED}; | 227 | HostCounter samples_passed{GL_SAMPLES_PASSED}; |
| 229 | 228 | ||
| 230 | /// Number of commands queued to the OpenGL driver. Reseted on flush. | 229 | /// Number of commands queued to the OpenGL driver. Reseted on flush. |