[GPU] Apply BaseMap MipFilter via samplers as it may be overridden

Make it have no effect on the texture resource as a resource may be used with samplers with different overrides. Also make sure magnification vs. minification is not undefined with it on Direct3D 12.
This commit is contained in:
Triang3l
2022-06-26 18:36:26 +03:00
parent 086a070fa9
commit 2606fa5709
5 changed files with 40 additions and 22 deletions

View File

@@ -113,7 +113,9 @@ enum class TextureSign : uint32_t {
enum class TextureFilter : uint32_t {
kPoint = 0,
kLinear = 1,
kBaseMap = 2, // Only applicable for mip-filter - always fetch from level 0.
// Only applicable to the mip filter - like OpenGL minification filters
// GL_NEAREST / GL_LINEAR without MIPMAP_NEAREST / MIPMAP_LINEAR.
kBaseMap = 2,
kUseFetchConst = 3,
};