Skip to content

Commit

Permalink
Improve error reporting in DeviceContextVkImpl.
Browse files Browse the repository at this point in the history
  • Loading branch information
eugeneko authored and TheMostDiligent committed Sep 12, 2023
1 parent 8803983 commit aebd4e3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Graphics/GraphicsEngineVulkan/src/DeviceContextVkImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -696,6 +696,8 @@ void DeviceContextVkImpl::DvpLogRenderPass_PSOMismatch()
VERIFY_EXPR(SampleCount == 0 || SampleCount == m_pBoundDepthStencil->GetTexture()->GetDesc().SampleCount);
SampleCount = m_pBoundDepthStencil->GetTexture()->GetDesc().SampleCount;
ss << GetTextureFormatAttribs(m_pBoundDepthStencil->GetDesc().Format).Name;
if (m_pBoundDepthStencil->GetDesc().ViewType == TEXTURE_VIEW_READ_ONLY_DEPTH_STENCIL)
ss << " (read-only)";
}
else
ss << "<Not set>";
Expand All @@ -708,6 +710,8 @@ void DeviceContextVkImpl::DvpLogRenderPass_PSOMismatch()
for (Uint32 rt = 0; rt < GrPipeline.NumRenderTargets; ++rt)
ss << ' ' << GetTextureFormatAttribs(GrPipeline.RTVFormats[rt]).Name;
ss << "; DSV: " << GetTextureFormatAttribs(GrPipeline.DSVFormat).Name;
if (GrPipeline.ReadOnlyDSV)
ss << " (read-only)";
ss << "; Sample count: " << Uint32{GrPipeline.SmplDesc.Count};

if (GrPipeline.ShadingRateFlags & PIPELINE_SHADING_RATE_FLAG_TEXTURE_BASED)
Expand Down

0 comments on commit aebd4e3

Please sign in to comment.