Skip to content

Commit

Permalink
DeviceContextVk: set dynamic rendering view mask to 0
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMostDiligent committed Feb 2, 2025
1 parent edfe8e2 commit 43352e0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Graphics/GraphicsEngineVulkan/src/DeviceContextVkImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1914,7 +1914,7 @@ void DeviceContextVkImpl::ChooseRenderPassAndFramebuffer()
FramebufferCache::CreateDyanmicRenderInfoAttribs CreateRIAttribs;
CreateRIAttribs.Extent = {m_FramebufferWidth, m_FramebufferHeight};
CreateRIAttribs.Layers = m_FramebufferSlices;
CreateRIAttribs.ViewMask = (1u << m_NumViewports) - 1u;
CreateRIAttribs.ViewMask = 0;
if (m_pBoundDepthStencil)
{
const TEXTURE_FORMAT DepthStencilFmt = m_pBoundDepthStencil->GetTexture()->GetDesc().Format;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2216,7 +2216,7 @@ VkPipelineRenderingCreateInfoKHR GraphicsPipelineDesc_To_VkPipelineRenderingCrea
VkPipelineRenderingCreateInfoKHR PipelineRenderingCI{};
PipelineRenderingCI.sType = VK_STRUCTURE_TYPE_PIPELINE_RENDERING_CREATE_INFO_KHR;
PipelineRenderingCI.pNext = nullptr;
PipelineRenderingCI.viewMask = (1u << PipelineDesc.NumViewports) - 1u;
PipelineRenderingCI.viewMask = 0;

PipelineRenderingCI.colorAttachmentCount = PipelineDesc.NumRenderTargets;
ColorAttachmentFormats.resize(PipelineDesc.NumRenderTargets);
Expand Down

0 comments on commit 43352e0

Please sign in to comment.