diff --git a/thirdparty/rexglue-sdk/src/graphics/flags.cpp b/thirdparty/rexglue-sdk/src/graphics/flags.cpp index 82fb8b97..19b986d6 100644 --- a/thirdparty/rexglue-sdk/src/graphics/flags.cpp +++ b/thirdparty/rexglue-sdk/src/graphics/flags.cpp @@ -28,6 +28,9 @@ REXCVAR_DEFINE_STRING(dump_shaders, "", "GPU", "Path to dump shaders to"); REXCVAR_DEFINE_BOOL(use_fuzzy_alpha_epsilon, true, "GPU", "Use approximate compare for alpha test values to prevent " "flickering on NVIDIA graphics cards"); +REXCVAR_DEFINE_BOOL(vfetch_index_rounding_bias, false, "GPU/Shader", + "Apply small epsilon bias to vertex fetch indices before " + "flooring to fix black triangles caused by RCP precision"); REXCVAR_DEFINE_BOOL(gpu_debug_markers, false, "GPU", "Insert debug markers into GPU command streams for tools " "like PIX and RenderDoc. Automatically enabled when " diff --git a/thirdparty/rexglue-sdk/src/graphics/pipeline/shader/dxbc_translator_fetch.cpp b/thirdparty/rexglue-sdk/src/graphics/pipeline/shader/dxbc_translator_fetch.cpp index dac21472..31842c0c 100644 --- a/thirdparty/rexglue-sdk/src/graphics/pipeline/shader/dxbc_translator_fetch.cpp +++ b/thirdparty/rexglue-sdk/src/graphics/pipeline/shader/dxbc_translator_fetch.cpp @@ -26,9 +26,6 @@ REXCVAR_DEFINE_BOOL(draw_resolution_scaled_texture_offsets, true, "GPU/Shader", "Scale texture offsets with draw resolution"); -REXCVAR_DEFINE_BOOL(vfetch_index_rounding_bias, false, "GPU/Shader", - "Apply small epsilon bias to vertex fetch indices before " - "flooring to fix black triangles caused by RCP precision"); namespace rex::graphics { using namespace ucode;