From c45c469c8e46506a23ab64d7aa0e4d49f41ee54d Mon Sep 17 00:00:00 2001 From: Brandon Mak Date: Mon, 30 Jan 2023 16:42:19 +0800 Subject: [PATCH] Change GetUsableSubpasses to GetUsableSubpass --- .../Graphics/MiddleEnd/Interface/SHGraphicsSystem.cpp | 10 ++++++++++ .../Graphics/MiddleEnd/Interface/SHGraphicsSystem.h | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/SHADE_Engine/src/Graphics/MiddleEnd/Interface/SHGraphicsSystem.cpp b/SHADE_Engine/src/Graphics/MiddleEnd/Interface/SHGraphicsSystem.cpp index 12f8f318..9874b706 100644 --- a/SHADE_Engine/src/Graphics/MiddleEnd/Interface/SHGraphicsSystem.cpp +++ b/SHADE_Engine/src/Graphics/MiddleEnd/Interface/SHGraphicsSystem.cpp @@ -1185,6 +1185,16 @@ namespace SHADE return fontLibrary; } + Handle const& SHGraphicsSystem::GetUsableSubpass(std::string subpassName) const noexcept + { + if (usableSubpassesMapping.contains(subpassName)) + { + return usableSubpassesMapping.at (subpassName); + } + else + return {}; + } + Handle SHGraphicsSystem::createDebugDrawPipeline(Handle renderPass, Handle subpass, bool filled, bool triMesh, bool instanced) { auto pipelineLayout = resourceManager.Create diff --git a/SHADE_Engine/src/Graphics/MiddleEnd/Interface/SHGraphicsSystem.h b/SHADE_Engine/src/Graphics/MiddleEnd/Interface/SHGraphicsSystem.h index 11aaf337..bf283bc8 100644 --- a/SHADE_Engine/src/Graphics/MiddleEnd/Interface/SHGraphicsSystem.h +++ b/SHADE_Engine/src/Graphics/MiddleEnd/Interface/SHGraphicsSystem.h @@ -399,7 +399,7 @@ namespace SHADE uint32_t GetCurrentFrameIndex(void) const noexcept { return renderContext.GetCurrentFrame(); } SHFontLibrary const& GetFontLibrary (void) const noexcept; const SHMeshLibrary& GetMeshLibrary() const noexcept { return meshLibrary; }; - std::unordered_map> const& GetUsableSubpasses(void) const noexcept {return usableSubpassesMapping;}; + Handle const& GetUsableSubpass(std::string subpassName) const noexcept; /*-----------------------------------------------------------------------------*/ /* Getters */