mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-15 11:18:29 +12:00
Latte/Vulkan: Set shader rounding mode via VK_KHR_SHADER_FLOAT_CONTROLS
This commit is contained in:
parent
43c9a4eccd
commit
4a564e2447
11 changed files with 142 additions and 75 deletions
|
@ -306,6 +306,11 @@ namespace LatteDecompiler
|
|||
{
|
||||
src->add("#define GET_FRAGCOORD() vec4(gl_FragCoord.xy*uf_fragCoordScale.xy,gl_FragCoord.z, 1.0/gl_FragCoord.w)" _CRLF);
|
||||
}
|
||||
if (decompilerContext->options->spirvInstrinsics.hasRoundingModeRTEFloat32)
|
||||
{
|
||||
src->add("#extension GL_EXT_spirv_intrinsics: enable" _CRLF);
|
||||
src->add("spirv_execution_mode(4462, 32);" _CRLF); // RoundingModeRTE 32
|
||||
}
|
||||
src->add("#else" _CRLF);
|
||||
// OpenGL defines
|
||||
src->add("#define ATTR_LAYOUT(__vkSet, __location) layout(location = __location)" _CRLF);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue