summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOatmealDome <julian@oatmealdome.me>2021-08-06 23:28:26 -0400
committerOatmealDome <julian@oatmealdome.me>2021-12-28 02:10:39 -0500
commit4e12d6e871680fe70bb45e7909f00a89539f7a3f (patch)
tree5dd48954e9016d348d9a7ab74cb88c58aec9030f
parent91cdeb5aa6e46ea0cc60e157d4d30863e54f7ec0 (diff)
ShaderGenCommon: Add bit for LOD bias
-rw-r--r--Source/Core/VideoCommon/ShaderGenCommon.cpp1
-rw-r--r--Source/Core/VideoCommon/ShaderGenCommon.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/Source/Core/VideoCommon/ShaderGenCommon.cpp b/Source/Core/VideoCommon/ShaderGenCommon.cpp
index 34921f9116..0a965e6f62 100644
--- a/Source/Core/VideoCommon/ShaderGenCommon.cpp
+++ b/Source/Core/VideoCommon/ShaderGenCommon.cpp
@@ -42,6 +42,7 @@ ShaderHostConfig ShaderHostConfig::GetCurrent()
bits.manual_texture_sampling = !g_ActiveConfig.bFastTextureSampling;
bits.manual_texture_sampling_custom_texture_sizes =
g_ActiveConfig.ManualTextureSamplingWithHiResTextures();
+ bits.backend_sampler_lod_bias = g_ActiveConfig.backend_info.bSupportsLodBiasInSampler;
return bits;
}
diff --git a/Source/Core/VideoCommon/ShaderGenCommon.h b/Source/Core/VideoCommon/ShaderGenCommon.h
index 88a303356b..b787035a36 100644
--- a/Source/Core/VideoCommon/ShaderGenCommon.h
+++ b/Source/Core/VideoCommon/ShaderGenCommon.h
@@ -172,6 +172,7 @@ union ShaderHostConfig
BitField<23, 1, bool, u32> enable_validation_layer;
BitField<24, 1, bool, u32> manual_texture_sampling;
BitField<25, 1, bool, u32> manual_texture_sampling_custom_texture_sizes;
+ BitField<26, 1, bool, u32> backend_sampler_lod_bias;
static ShaderHostConfig GetCurrent();
};