[Chore] (MG_Backend/DirectVulkan): get rid of 1x1 texture fallback path for unbinded sampler

This commit is contained in:
2026-05-07 09:30:10 +08:00
parent f600a07404
commit 22582dea3e
2 changed files with 6 additions and 66 deletions
@@ -62,10 +62,9 @@ namespace MobileGL::MG_Backend::DirectVulkan {
Uint32 peakAllocatedSetsThisFrame = 0;
};
Bool ResolveSamplerTexture(const MG_State::GLState::ProgramObject& program,
static Bool ResolveSamplerTexture(const MG_State::GLState::ProgramObject& program,
const ProgramFactory::VkProgramObject& programObj, Uint32 binding,
SharedPtr<MG_State::GLState::ITextureObject>& outTexture) const;
SharedPtr<MG_State::GLState::ITextureObject> GetOrCreateSamplerFallbackTexture(TextureTarget target) const;
SharedPtr<MG_State::GLState::ITextureObject>& outTexture);
Bool ResolveSamplerDescriptor(VkCommandBuffer commandBuffer, const MG_State::GLState::ProgramObject& program,
const ProgramFactory::VkProgramObject& programObj, Uint32 binding,
VkDescriptorImageInfo& outImageInfo) const;
@@ -91,8 +90,6 @@ namespace MobileGL::MG_Backend::DirectVulkan {
Uint32 m_peakDescriptorSetsObserved = 0;
VkTextureManager* m_textureManager = nullptr;
VkSamplerManager* m_samplerManager = nullptr;
mutable Array<SharedPtr<MG_State::GLState::ITextureObject>,
static_cast<SizeT>(TextureTarget::TextureTargetCount)> m_samplerFallbackTextures{};
};
} // namespace MobileGL::MG_Backend::DirectVulkan