Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
VkCV Framework
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Vulkan2021
VkCV Framework
Commits
6a93f420
Commit
6a93f420
authored
3 years ago
by
Mark Oliver Mints
Browse files
Options
Downloads
Patches
Plain Diff
[
#65
][Add] Create Compute Pipeline to Core class
parent
52eb4752
No related branches found
No related tags found
1 merge request
!58
Resolve "Compute Pipeline"
Pipeline
#25512
passed
3 years ago
Stage: build
Stage: deploy
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/vkcv/Core.hpp
+11
-0
11 additions, 0 deletions
include/vkcv/Core.hpp
src/vkcv/Core.cpp
+5
-0
5 additions, 0 deletions
src/vkcv/Core.cpp
with
16 additions
and
0 deletions
include/vkcv/Core.hpp
+
11
−
0
View file @
6a93f420
...
@@ -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.
...
...
This diff is collapsed.
Click to expand it.
src/vkcv/Core.cpp
+
5
−
0
View file @
6a93f420
...
@@ -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
)
{
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment