Skip to content
Snippets Groups Projects
Commit c5067cf7 authored by Mark Oliver Mints's avatar Mark Oliver Mints
Browse files

[#71] update Core

parent ff56e184
No related branches found
No related tags found
1 merge request!83Resolve "Refactor Pipeline Config and Manager"
Pipeline #27061 failed
......@@ -15,6 +15,7 @@
#include "Buffer.hpp"
#include "Image.hpp"
#include "PipelineConfig.hpp"
#include "ComputePipelineConfig.hpp"
#include "CommandResources.hpp"
#include "SyncResources.hpp"
#include "Result.hpp"
......@@ -159,14 +160,11 @@ namespace vkcv
* Creates a basic vulkan compute pipeline using @p shader program and returns it using the @p handle.
* Fixed Functions for pipeline are set with standard values.
*
* @param shader program that hold the compiles compute shader
* @param handle a handle to return the created vulkan handle
* @param config Contains the compiles compute shader and the corresponding descriptor set layout
* @return True if pipeline creation was successful, False if not
*/
[[nodiscard]]
ComputePipelineHandle createComputePipeline(
const ShaderProgram &shaderProgram,
const std::vector<vk::DescriptorSetLayout> &descriptorSetLayouts);
ComputePipelineHandle createComputePipeline(const ComputePipelineConfig &config);
/**
* Creates a basic vulkan render pass using @p config from the render pass config class and returns it using the @p handle.
......
......@@ -141,11 +141,9 @@ namespace vkcv
return m_PipelineManager->createPipeline(config, *m_PassManager);
}
ComputePipelineHandle Core::createComputePipeline(
const ShaderProgram &shaderProgram,
const std::vector<vk::DescriptorSetLayout>& descriptorSetLayouts)
ComputePipelineHandle Core::createComputePipeline(const ComputePipelineConfig &config)
{
return m_ComputePipelineManager->createComputePipeline(shaderProgram, descriptorSetLayouts);
return m_ComputePipelineManager->createComputePipeline(config);
}
PassHandle Core::createPass(const PassConfig &config)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment