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
b4ea70f5
Commit
b4ea70f5
authored
3 years ago
by
Alexander Gauggel
Browse files
Options
Downloads
Patches
Plain Diff
[18]fix renderpass creation validation error if no depth pass is used
parent
e1734709
Branches
Branches containing commit
Tags
Tags containing commit
4 merge requests
!12
Resolve "Swapchain Class"
,
!7
Resolve "Shader Program Class"
,
!5
Resolve "Pipeline State Object"
,
!4
Resolve "Renderpass Class"
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/vkcv/Core.cpp
+11
-9
11 additions, 9 deletions
src/vkcv/Core.cpp
with
11 additions
and
9 deletions
src/vkcv/Core.cpp
+
11
−
9
View file @
b4ea70f5
...
...
@@ -575,6 +575,7 @@ namespace vkcv
std
::
vector
<
vk
::
AttachmentReference
>
colorAttachmentReferences
{};
// individual reference to depth attachment (of a subpass)
vk
::
AttachmentReference
depthAttachmentReference
{};
vk
::
AttachmentReference
*
pDepthAttachment
=
nullptr
;
//stays nullptr if no depth attachment used
for
(
uint32_t
i
=
0
;
i
<
pass
.
attachments
.
size
();
i
++
)
{
...
...
@@ -587,6 +588,7 @@ namespace vkcv
depthAttachmentReference
.
attachment
=
i
;
depthAttachmentReference
.
layout
=
getVkLayoutFromAttachLayout
(
pass
.
attachments
[
i
].
layout_in_pass
);
pDepthAttachment
=
&
depthAttachmentReference
;
}
else
{
...
...
@@ -608,15 +610,15 @@ namespace vkcv
}
vk
::
SubpassDescription
subpassDescription
({},
vk
::
PipelineBindPoint
::
eGraphics
,
0
,
{},
static_cast
<
uint32_t
>
(
colorAttachmentReferences
.
size
()),
colorAttachmentReferences
.
data
(),
{},
&
d
epthAttachment
Reference
,
0
,
{});
vk
::
PipelineBindPoint
::
eGraphics
,
0
,
{},
static_cast
<
uint32_t
>
(
colorAttachmentReferences
.
size
()),
colorAttachmentReferences
.
data
(),
{},
pD
epthAttachment
,
0
,
{});
vk
::
RenderPassCreateInfo
passInfo
({},
static_cast
<
uint32_t
>
(
attachmentDescriptions
.
size
()),
...
...
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