Skip to content

Commit

Permalink
feat: add shader type developer option
Browse files Browse the repository at this point in the history
Add additional option to replace based  on pixel or vertex shaders.
This is useful for checking against the vanilla shader.
  • Loading branch information
alandtse committed May 25, 2024
1 parent 8964951 commit 97e0ca5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ShaderCache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1410,7 +1410,7 @@ namespace SIE
uint32_t descriptor)
{
auto state = State::GetSingleton();
if (!((ShaderCache::IsSupportedShader(shader) || state->IsDeveloperMode() && state->IsShaderEnabled(shader)) && ShaderCache::IsShaderSourceAvailable(shader))) {
if (!((ShaderCache::IsSupportedShader(shader) || state->IsDeveloperMode() && state->IsShaderEnabled(shader)) && ShaderCache::IsShaderSourceAvailable(shader) && state->enableVShaders)) {
return nullptr;
}

Expand Down Expand Up @@ -1444,7 +1444,7 @@ namespace SIE
uint32_t descriptor)
{
auto state = State::GetSingleton();
if (!((ShaderCache::IsSupportedShader(shader) || state->IsDeveloperMode() && state->IsShaderEnabled(shader)) && ShaderCache::IsShaderSourceAvailable(shader))) {
if (!((ShaderCache::IsSupportedShader(shader) || state->IsDeveloperMode() && state->IsShaderEnabled(shader)) && ShaderCache::IsShaderSourceAvailable(shader) && state->enablePShaders)) {
return nullptr;
}

Expand Down

0 comments on commit 97e0ca5

Please sign in to comment.