mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-09-11 13:48:30 +09:00
[Chore] (MG_Backend/DirectVulkan): get rid of junk
This commit is contained in:
@@ -84,18 +84,6 @@ namespace MobileGL::MG_Backend::DirectVulkan {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
Bool VkRenderTargetManager::GetOffscreenColorViewByTexture(Uint textureExternalIndex,
|
|
||||||
VkImageView& outImageView) const {
|
|
||||||
for (const auto& [_, target] : m_offscreenColorTargets) {
|
|
||||||
if (target.colorTextureExternalIndex != textureExternalIndex || target.imageView == VK_NULL_HANDLE) {
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
outImageView = target.imageView;
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
Bool VkRenderTargetManager::GetOffscreenRenderSurface(Uint glFboExternalIndex, VkImageView& outColorView,
|
Bool VkRenderTargetManager::GetOffscreenRenderSurface(Uint glFboExternalIndex, VkImageView& outColorView,
|
||||||
VkFormat& outColorFormat, VkImageView& outDepthStencilView,
|
VkFormat& outColorFormat, VkImageView& outDepthStencilView,
|
||||||
VkFormat& outDepthStencilFormat, VkExtent2D& outExtent) const {
|
VkFormat& outDepthStencilFormat, VkExtent2D& outExtent) const {
|
||||||
|
|||||||
@@ -35,7 +35,6 @@ namespace MobileGL::MG_Backend::DirectVulkan {
|
|||||||
VkFormat& outDepthStencilFormat);
|
VkFormat& outDepthStencilFormat);
|
||||||
Bool GetOffscreenColorTargetStateByTexture(Uint textureExternalIndex, VkImageView& outImageView,
|
Bool GetOffscreenColorTargetStateByTexture(Uint textureExternalIndex, VkImageView& outImageView,
|
||||||
VkImage& outImage, VkImageLayout*& outLayout);
|
VkImage& outImage, VkImageLayout*& outLayout);
|
||||||
Bool GetOffscreenColorViewByTexture(Uint textureExternalIndex, VkImageView& outImageView) const;
|
|
||||||
Bool GetOffscreenRenderSurface(Uint glFboExternalIndex, VkImageView& outColorView, VkFormat& outColorFormat,
|
Bool GetOffscreenRenderSurface(Uint glFboExternalIndex, VkImageView& outColorView, VkFormat& outColorFormat,
|
||||||
VkImageView& outDepthStencilView, VkFormat& outDepthStencilFormat,
|
VkImageView& outDepthStencilView, VkFormat& outDepthStencilFormat,
|
||||||
VkExtent2D& outExtent) const;
|
VkExtent2D& outExtent) const;
|
||||||
|
|||||||
Reference in New Issue
Block a user