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

[#65][Add] Create Compute Pipeline to Core class

parent 52eb4752
No related branches found
No related tags found
1 merge request!58Resolve "Compute Pipeline"
Pipeline #25512 passed
...@@ -157,6 +157,17 @@ namespace vkcv ...@@ -157,6 +157,17 @@ namespace vkcv
[[nodiscard]] [[nodiscard]]
PipelineHandle createGraphicsPipeline(const PipelineConfig &config); PipelineHandle createGraphicsPipeline(const PipelineConfig &config);
/**
* 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
* @return True if pipeline creation was successful, False if not
*/
[[nodiscard]]
PipelineHandle createComputePipeline(const ShaderProgram &config);
/** /**
* Creates a basic vulkan render pass using @p config from the render pass config class and returns it using the @p handle. * Creates a basic vulkan render pass using @p config from the render pass config class and returns it using the @p handle.
* Fixed Functions for pipeline are set with standard values. * Fixed Functions for pipeline are set with standard values.
......
...@@ -101,6 +101,11 @@ namespace vkcv ...@@ -101,6 +101,11 @@ namespace vkcv
return m_PipelineManager->createPipeline(config, *m_PassManager); return m_PipelineManager->createPipeline(config, *m_PassManager);
} }
PipelineHandle Core::createComputePipeline(const ShaderProgram &shaderProgram)
{
return m_PipelineManager->createComputePipeline(shaderProgram);
}
PassHandle Core::createPass(const PassConfig &config) PassHandle Core::createPass(const PassConfig &config)
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment