@@ -101,29 +101,6 @@ const smart_refctd_ptr<IFileArchive> DrawAABB::mount(smart_refctd_ptr<ILogger> l
101101 return smart_refctd_ptr (archive);
102102}
103103
104- // bool DrawAABB::validateCreationParameters(SCreationParameters& creationParams)
105- // {
106- // const auto validation = std::to_array
107- // ({
108- // std::make_pair(bool(creationParams.assetManager), "Invalid `creationParams.assetManager` is nullptr!"),
109- // std::make_pair(bool(creationParams.assetManager->getSystem()), "Invalid `creationParams.assetManager->getSystem()` is nullptr!"),
110- // std::make_pair(bool(creationParams.utilities), "Invalid `creationParams.utilities` is nullptr!"),
111- // std::make_pair(bool(creationParams.transfer), "Invalid `creationParams.transfer` is nullptr!"),
112- // std::make_pair(bool(creationParams.renderpass), "Invalid `creationParams.renderpass` is nullptr!"),
113- // (creationParams.assetManager && creationParams.utilities && creationParams.transfer && creationParams.renderpass) ? std::make_pair(bool(creationParams.utilities->getLogicalDevice()->getPhysicalDevice()->getQueueFamilyProperties()[creationParams.transfer->getFamilyIndex()].queueFlags.hasFlags(IQueue::FAMILY_FLAGS::TRANSFER_BIT)), "Invalid `creationParams.transfer` is not capable of transfer operations!") : std::make_pair(false, "Pass valid required DrawAABB::S_CREATION_PARAMETERS!")
114- // });
115- //
116- // system::logger_opt_ptr logger = creationParams.utilities->getLogger();
117- // for (const auto& [ok, error] : validation)
118- // if (!ok)
119- // {
120- // logger.log(error, ILogger::ELL_ERROR);
121- // return false;
122- // }
123- //
124- // return true;
125- // }
126-
127104smart_refctd_ptr<IGPUGraphicsPipeline> DrawAABB::createPipeline (SCreationParameters& params, const IGPUPipelineLayout* pipelineLayout, const std::string& vsPath, const std::string& fsPath)
128105{
129106 auto system = smart_refctd_ptr<ISystem>(params.assetManager ->getSystem ());
0 commit comments