[Feat] (MG_Backend/DirectVulkan): Transition texture for sampling

This commit is contained in:
2026-03-06 15:37:14 +08:00
parent c36bfe0843
commit 641f54e1b7
5 changed files with 126 additions and 13 deletions
@@ -76,6 +76,7 @@ public:
TextureResource* SyncTextureAndGetDescriptor(
MG_State::GLState::ITextureObject& texture);
void UpdateTrackedImageLayout(MG_State::GLState::ITextureObject* texture, VkImageLayout newLayout);
Bool TransitionTextureForSampling(VkCommandBuffer commandBuffer, MG_State::GLState::ITextureObject& texture);
static Bool TransitionImageLayout(VkCommandBuffer commandBuffer, VkImage image, VkImageLayout& trackedLayout,
VkImageLayout newLayout, VkPipelineStageFlags srcStageMask,