Skip to content
Snippets Groups Projects
Verified Commit 46a39ea6 authored by Tobias Frisch's avatar Tobias Frisch
Browse files

Remove implicit conversion and remove debug logging

parent 73d9b730
No related branches found
No related tags found
No related merge requests found
...@@ -54,17 +54,16 @@ namespace vkcv { ...@@ -54,17 +54,16 @@ namespace vkcv {
} }
} }
vk::DescriptorPool DescriptorSetManager::allocateDescriptorPool() { bool DescriptorSetManager::allocateDescriptorPool() {
vk::DescriptorPool pool; vk::DescriptorPool pool;
if (getCore().getContext().getDevice().createDescriptorPool(&m_PoolInfo, nullptr, &pool) if (getCore().getContext().getDevice().createDescriptorPool(&m_PoolInfo, nullptr, &pool)
!= vk::Result::eSuccess) { != vk::Result::eSuccess) {
vkcv_log(LogLevel::WARNING, "Failed to allocate descriptor pool"); vkcv_log(LogLevel::WARNING, "Failed to allocate descriptor pool");
pool = nullptr; return false;
} else { } else {
m_Pools.push_back(pool); m_Pools.push_back(pool);
return true;
} }
return pool;
} }
DescriptorSetManager::DescriptorSetManager() noexcept : DescriptorSetManager::DescriptorSetManager() noexcept :
......
...@@ -59,9 +59,9 @@ namespace vkcv { ...@@ -59,9 +59,9 @@ namespace vkcv {
* constructor is called initially in the constructor and then every time the pool runs * constructor is called initially in the constructor and then every time the pool runs
* out memory. * out memory.
* *
* @return a DescriptorPool object * @return whether a DescriptorPool object could be created
*/ */
vk::DescriptorPool allocateDescriptorPool(); bool allocateDescriptorPool();
public: public:
/** /**
......
...@@ -706,15 +706,6 @@ namespace vkcv { ...@@ -706,15 +706,6 @@ namespace vkcv {
0 0
); );
vkcv_log(LogLevel::RAW_INFO, "STAGES: %lu", shaderStages.size());
for (const auto& shaderStage : shaderStages) {
vkcv_log(LogLevel::RAW_INFO, "STAGE: %s %s %s",
shaderStage.pName,
vk::to_string(shaderStage.stage).c_str(),
vk::to_string(shaderStage.flags).c_str()
);
}
auto pipelineResult = getCore().getContext().getDevice().createGraphicsPipeline( auto pipelineResult = getCore().getContext().getDevice().createGraphicsPipeline(
nullptr, graphicsPipelineCreateInfo nullptr, graphicsPipelineCreateInfo
); );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment