mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-13 10:18:30 +12:00
add an option to preserve position invariance
This commit is contained in:
parent
4281f6e0c8
commit
fa004a33c6
7 changed files with 21 additions and 2 deletions
|
@ -178,6 +178,8 @@ void RendererShaderMtl::CompileInternal()
|
|||
// TODO: always disable fast math for problematic shaders
|
||||
if (g_current_game_profile->GetFastMath())
|
||||
options->setFastMathEnabled(true);
|
||||
if (g_current_game_profile->GetPositionInvariance())
|
||||
options->setPreserveInvariance(true);
|
||||
|
||||
NS::Error* error = nullptr;
|
||||
MTL::Library* library = m_mtlr->GetDevice()->newLibrary(ToNSString(m_mslCode), options, &error);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue