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
2ebaeebb
Commit
2ebaeebb
authored
3 years ago
by
Mark Oliver Mints
Browse files
Options
Downloads
Patches
Plain Diff
[
#65
][Add] Pipeline Layout for Compute Shadetr
parent
bfe7c164
No related branches found
No related tags found
1 merge request
!58
Resolve "Compute Pipeline"
Pipeline
#25509
passed
3 years ago
Stage: build
Stage: deploy
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/vkcv/PipelineManager.cpp
+14
-2
14 additions, 2 deletions
src/vkcv/PipelineManager.cpp
src/vkcv/PipelineManager.hpp
+0
-1
0 additions, 1 deletion
src/vkcv/PipelineManager.hpp
with
14 additions
and
3 deletions
src/vkcv/PipelineManager.cpp
+
14
−
2
View file @
2ebaeebb
...
@@ -330,8 +330,20 @@ namespace vkcv
...
@@ -330,8 +330,20 @@ namespace vkcv
nullptr
nullptr
);
);
// TODO: Set Compute Pipeline Layout
const
size_t
matrixPushConstantSize
=
shaderProgram
.
getPushConstantSize
();
vk
::
PipelineLayout
vkPipelineLayout
{};
// TODO: Set params
const
vk
::
PushConstantRange
pushConstantRange
(
vk
::
ShaderStageFlagBits
::
eAll
,
0
,
matrixPushConstantSize
);
vk
::
PipelineLayoutCreateInfo
pipelineLayoutCreateInfo
(
// TODO: Check this. I'm not sure if this is correct
{},
nullptr
,
(
pushConstantRange
));
vk
::
PipelineLayout
vkPipelineLayout
{};
if
(
m_Device
.
createPipelineLayout
(
&
pipelineLayoutCreateInfo
,
nullptr
,
&
vkPipelineLayout
)
!=
vk
::
Result
::
eSuccess
)
{
m_Device
.
destroy
(
computeModule
);
return
PipelineHandle
();
}
// TODO: Create Compute Pipeline
// TODO: Create Compute Pipeline
vk
::
Pipeline
vkPipeline
{};
vk
::
Pipeline
vkPipeline
{};
...
...
This diff is collapsed.
Click to expand it.
src/vkcv/PipelineManager.hpp
+
0
−
1
View file @
2ebaeebb
...
@@ -24,7 +24,6 @@ namespace vkcv
...
@@ -24,7 +24,6 @@ namespace vkcv
vk
::
Result
createShaderModule
(
vk
::
ShaderModule
&
module
,
const
ShaderProgram
&
shaderProgram
,
ShaderStage
stage
);
vk
::
Result
createShaderModule
(
vk
::
ShaderModule
&
module
,
const
ShaderProgram
&
shaderProgram
,
ShaderStage
stage
);
public
:
public
:
PipelineManager
()
=
delete
;
// no default ctor
PipelineManager
()
=
delete
;
// no default ctor
explicit
PipelineManager
(
vk
::
Device
device
)
noexcept
;
// ctor
explicit
PipelineManager
(
vk
::
Device
device
)
noexcept
;
// ctor
...
...
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