Skip to content

Commit

Permalink
Fix Vulkan validation errors
Browse files Browse the repository at this point in the history
  • Loading branch information
andrejnau committed Jul 3, 2021
1 parent 285c509 commit 26c2c71
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Render/RenderCommandList/RenderCommandListImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ void RenderCommandListImpl::Reset()
m_lazy_barriers.clear();
m_resource_state_tracker.clear();

m_framebuffers.clear();
m_cmd_resources.clear();
m_bound_resources.clear();
m_bound_deferred_view.clear();
Expand Down Expand Up @@ -605,6 +606,7 @@ void RenderCommandListImpl::BeginRenderPass(const RenderPassBeginDesc& desc)
framebuffer_desc.depth_stencil = dsv;
framebuffer_desc.shading_rate_image = m_shading_rate_image;
std::shared_ptr<Framebuffer> framebuffer = m_object_cache.GetFramebuffer(framebuffer_desc);
m_framebuffers.emplace_back(framebuffer);

std::array<ShadingRateCombiner, 2> combiners = {
ShadingRateCombiner::kPassthrough, ShadingRateCombiner::kPassthrough
Expand Down
1 change: 1 addition & 0 deletions src/Render/RenderCommandList/RenderCommandListImpl.h
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ class RenderCommandListImpl : public RenderCommandList

Device& m_device;
ObjectCache& m_object_cache;
std::vector<std::shared_ptr<Framebuffer>> m_framebuffers;
std::shared_ptr<CommandList> m_command_list;
uint32_t m_viewport_width = 0;
uint32_t m_viewport_height = 0;
Expand Down

0 comments on commit 26c2c71

Please sign in to comment.