mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-09-12 06:08:30 +09:00
[Chore] (MG_Test/Backend/DirectVulkan/TestExec): get rid of junk
This commit is contained in:
@@ -188,15 +188,6 @@ namespace MobileGL::MG_Backend::DirectVulkan {
|
|||||||
return m_pipelineFactory->GetOrCreatePipeline(payload);
|
return m_pipelineFactory->GetOrCreatePipeline(payload);
|
||||||
}
|
}
|
||||||
|
|
||||||
void VulkanRenderer::PrepareDemoPipeline() {
|
|
||||||
MGLOG_D("PrepareDemoPipeline called");
|
|
||||||
|
|
||||||
VkPipelineLayoutCreateInfo plci{VK_STRUCTURE_TYPE_PIPELINE_LAYOUT_CREATE_INFO};
|
|
||||||
VK_VERIFY(vkCreatePipelineLayout(m_device, &plci, nullptr, &m_pipelineLayout), "vkCreatePipelineLayout");
|
|
||||||
|
|
||||||
MGLOG_I("PrepareDemoPipeline completed");
|
|
||||||
}
|
|
||||||
|
|
||||||
void VulkanRenderer::CreateFrameContexts() {
|
void VulkanRenderer::CreateFrameContexts() {
|
||||||
VK_VERIFY(m_frameContext.Initialize(m_device, m_commandPool, m_config.MaxFramesInFlight),
|
VK_VERIFY(m_frameContext.Initialize(m_device, m_commandPool, m_config.MaxFramesInFlight),
|
||||||
"CreateFrameContexts");
|
"CreateFrameContexts");
|
||||||
@@ -246,7 +237,6 @@ namespace MobileGL::MG_Backend::DirectVulkan {
|
|||||||
m_vertexInputStateFactory = MakeUnique<VertexInputStateFactory>(m_config);
|
m_vertexInputStateFactory = MakeUnique<VertexInputStateFactory>(m_config);
|
||||||
MOBILEGL_ASSERT(m_vertexInputStateFactory != nullptr, "VertexInputStateFactory creation failed.");
|
MOBILEGL_ASSERT(m_vertexInputStateFactory != nullptr, "VertexInputStateFactory creation failed.");
|
||||||
|
|
||||||
PrepareDemoPipeline();
|
|
||||||
CreateFrameContexts();
|
CreateFrameContexts();
|
||||||
m_frameVertexUploadBuffers.resize(m_frameContext.GetFrameCount());
|
m_frameVertexUploadBuffers.resize(m_frameContext.GetFrameCount());
|
||||||
m_frameVertexUploadHeads.assign(m_frameContext.GetFrameCount(), 0);
|
m_frameVertexUploadHeads.assign(m_frameContext.GetFrameCount(), 0);
|
||||||
@@ -286,10 +276,6 @@ namespace MobileGL::MG_Backend::DirectVulkan {
|
|||||||
|
|
||||||
m_frameContext.Destroy(m_device, m_commandPool);
|
m_frameContext.Destroy(m_device, m_commandPool);
|
||||||
|
|
||||||
if (m_pipelineLayout != VK_NULL_HANDLE) {
|
|
||||||
vkDestroyPipelineLayout(m_device, m_pipelineLayout, nullptr);
|
|
||||||
m_pipelineLayout = VK_NULL_HANDLE;
|
|
||||||
}
|
|
||||||
if (m_uniformDescriptorBinder) {
|
if (m_uniformDescriptorBinder) {
|
||||||
m_uniformDescriptorBinder->Shutdown();
|
m_uniformDescriptorBinder->Shutdown();
|
||||||
m_uniformDescriptorBinder.reset();
|
m_uniformDescriptorBinder.reset();
|
||||||
|
|||||||
@@ -132,7 +132,6 @@ namespace MobileGL::MG_Backend::DirectVulkan {
|
|||||||
Vector<VkImageView> m_depthStencilImageViews;
|
Vector<VkImageView> m_depthStencilImageViews;
|
||||||
Vector<VkImageLayout> m_depthStencilImageLayouts;
|
Vector<VkImageLayout> m_depthStencilImageLayouts;
|
||||||
|
|
||||||
VkPipelineLayout m_pipelineLayout = VK_NULL_HANDLE;
|
|
||||||
Vector<VkBufferObject> m_frameVertexUploadBuffers;
|
Vector<VkBufferObject> m_frameVertexUploadBuffers;
|
||||||
Vector<VkDeviceSize> m_frameVertexUploadHeads;
|
Vector<VkDeviceSize> m_frameVertexUploadHeads;
|
||||||
Vector<VkBufferObject> m_frameIndexUploadBuffers;
|
Vector<VkBufferObject> m_frameIndexUploadBuffers;
|
||||||
@@ -177,7 +176,6 @@ namespace MobileGL::MG_Backend::DirectVulkan {
|
|||||||
Bool EnsureOffscreenRenderTarget(Uint glFboExternalIndex, const MG_State::GLState::FramebufferObject& glFbo,
|
Bool EnsureOffscreenRenderTarget(Uint glFboExternalIndex, const MG_State::GLState::FramebufferObject& glFbo,
|
||||||
VkRenderPass& outRenderPass, VkFramebuffer& outFramebuffer,
|
VkRenderPass& outRenderPass, VkFramebuffer& outFramebuffer,
|
||||||
VkExtent2D& outExtent, VkFormat& outDepthStencilFormat);
|
VkExtent2D& outExtent, VkFormat& outDepthStencilFormat);
|
||||||
void PrepareDemoPipeline();
|
|
||||||
VkPipeline GetOrCreatePipeline(const MG_State::GLState::ProgramObject& program, VkPipelineLayout pipelineLayout,
|
VkPipeline GetOrCreatePipeline(const MG_State::GLState::ProgramObject& program, VkPipelineLayout pipelineLayout,
|
||||||
Uint64 vertexInputHash,
|
Uint64 vertexInputHash,
|
||||||
const VkPipelineVertexInputStateCreateInfo& vertexInputState);
|
const VkPipelineVertexInputStateCreateInfo& vertexInputState);
|
||||||
|
|||||||
Reference in New Issue
Block a user