summaryrefslogtreecommitdiffstats
path: root/src/video_core/engines/maxwell_3d.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-07-13 04:57:57 +0200
committerbunnei <bunneidev@gmail.com>2018-07-13 04:57:57 +0200
commit8aeff9cf8e84c27ab83cea8df1a94ce8082efc78 (patch)
treee79cdf86838e120908b50fd25ad4f48a98bc29e9 /src/video_core/engines/maxwell_3d.h
parentgl_shader_gen: Implement dual vertex shader mode. (diff)
downloadyuzu-8aeff9cf8e84c27ab83cea8df1a94ce8082efc78.tar
yuzu-8aeff9cf8e84c27ab83cea8df1a94ce8082efc78.tar.gz
yuzu-8aeff9cf8e84c27ab83cea8df1a94ce8082efc78.tar.bz2
yuzu-8aeff9cf8e84c27ab83cea8df1a94ce8082efc78.tar.lz
yuzu-8aeff9cf8e84c27ab83cea8df1a94ce8082efc78.tar.xz
yuzu-8aeff9cf8e84c27ab83cea8df1a94ce8082efc78.tar.zst
yuzu-8aeff9cf8e84c27ab83cea8df1a94ce8082efc78.zip
Diffstat (limited to '')
-rw-r--r--src/video_core/engines/maxwell_3d.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/video_core/engines/maxwell_3d.h b/src/video_core/engines/maxwell_3d.h
index 5a7cf0107..6f0170ff7 100644
--- a/src/video_core/engines/maxwell_3d.h
+++ b/src/video_core/engines/maxwell_3d.h
@@ -379,6 +379,14 @@ public:
}
};
+ bool IsShaderConfigEnabled(size_t index) const {
+ // The VertexB is always enabled.
+ if (index == static_cast<size_t>(Regs::ShaderProgram::VertexB)) {
+ return true;
+ }
+ return shader_config[index].enable != 0;
+ }
+
union {
struct {
INSERT_PADDING_WORDS(0x45);
@@ -780,9 +788,6 @@ public:
/// Returns the texture information for a specific texture in a specific shader stage.
Texture::FullTextureInfo GetStageTexture(Regs::ShaderStage stage, size_t offset) const;
- /// Returns whether the specified shader stage is enabled or not.
- bool IsShaderStageEnabled(Regs::ShaderStage stage) const;
-
private:
std::unordered_map<u32, std::vector<u32>> uploaded_macros;