summaryrefslogtreecommitdiffstats
path: root/src/video_core/renderer_opengl/gl_rasterizer.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2019-01-30 04:02:01 +0100
committerGitHub <noreply@github.com>2019-01-30 04:02:01 +0100
commit52bb5245268e113bfacc4c4bb27a74ea3058adbc (patch)
tree4ba30f0ad404bd4120dd5b2e4f21193bf03952fd /src/video_core/renderer_opengl/gl_rasterizer.h
parentvideo_core/GPU Implemented the GPU PFIFO puller semaphore operations. (#1908) (diff)
parentgl_rasterizer: Implement global memory management (diff)
downloadyuzu-52bb5245268e113bfacc4c4bb27a74ea3058adbc.tar
yuzu-52bb5245268e113bfacc4c4bb27a74ea3058adbc.tar.gz
yuzu-52bb5245268e113bfacc4c4bb27a74ea3058adbc.tar.bz2
yuzu-52bb5245268e113bfacc4c4bb27a74ea3058adbc.tar.lz
yuzu-52bb5245268e113bfacc4c4bb27a74ea3058adbc.tar.xz
yuzu-52bb5245268e113bfacc4c4bb27a74ea3058adbc.tar.zst
yuzu-52bb5245268e113bfacc4c4bb27a74ea3058adbc.zip
Diffstat (limited to '')
-rw-r--r--src/video_core/renderer_opengl/gl_rasterizer.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer.h b/src/video_core/renderer_opengl/gl_rasterizer.h
index 21c51f874..57ab2f627 100644
--- a/src/video_core/renderer_opengl/gl_rasterizer.h
+++ b/src/video_core/renderer_opengl/gl_rasterizer.h
@@ -138,6 +138,16 @@ private:
GLenum primitive_mode, u32 current_bindpoint);
/**
+ * Configures the current global memory regions to use for the draw command.
+ * @param stage The shader stage to configure buffers for.
+ * @param shader The shader object that contains the specified stage.
+ * @param current_bindpoint The offset at which to start counting new buffer bindpoints.
+ * @returns The next available bindpoint for use in the next shader stage.
+ */
+ u32 SetupGlobalRegions(Tegra::Engines::Maxwell3D::Regs::ShaderStage stage, Shader& shader,
+ GLenum primitive_mode, u32 current_bindpoint);
+
+ /**
* Configures the current textures to use for the draw command.
* @param stage The shader stage to configure textures for.
* @param shader The shader object that contains the specified stage.