diff options
author | Subv <subv2112@gmail.com> | 2018-04-15 21:14:57 +0200 |
---|---|---|
committer | Subv <subv2112@gmail.com> | 2018-04-15 21:14:57 +0200 |
commit | 14ac40436ead929506d5fdf16eb3721940e60956 (patch) | |
tree | a3bf955b685822b3931203eb0f075f72010150b0 /src/video_core/renderer_opengl/gl_shader_manager.h | |
parent | GPU: Don't use GetPointer when uploading the constbuffer data to the GPU. (diff) | |
download | yuzu-14ac40436ead929506d5fdf16eb3721940e60956.tar yuzu-14ac40436ead929506d5fdf16eb3721940e60956.tar.gz yuzu-14ac40436ead929506d5fdf16eb3721940e60956.tar.bz2 yuzu-14ac40436ead929506d5fdf16eb3721940e60956.tar.lz yuzu-14ac40436ead929506d5fdf16eb3721940e60956.tar.xz yuzu-14ac40436ead929506d5fdf16eb3721940e60956.tar.zst yuzu-14ac40436ead929506d5fdf16eb3721940e60956.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/renderer_opengl/gl_shader_manager.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/video_core/renderer_opengl/gl_shader_manager.h b/src/video_core/renderer_opengl/gl_shader_manager.h index ecc92d986..be63320e0 100644 --- a/src/video_core/renderer_opengl/gl_shader_manager.h +++ b/src/video_core/renderer_opengl/gl_shader_manager.h @@ -121,6 +121,17 @@ public: return result; } + GLuint GetCurrentProgramStage(Maxwell3D::Regs::ShaderStage stage) { + switch (stage) { + case Maxwell3D::Regs::ShaderStage::Vertex: + return current.vs; + case Maxwell3D::Regs::ShaderStage::Fragment: + return current.fs; + } + + UNREACHABLE(); + } + void UseTrivialGeometryShader() { current.gs = 0; } |