Skip to content

Commit add78f9

Browse files
committed
Print more useful errors in the event of mesh output failures
* These may not be caused by application errors, but in the event that they are this may be more actionable by the user - even though it's invalid API use.
1 parent 9b6f1a5 commit add78f9

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

renderdoc/driver/vulkan/vk_postvs.cpp

+8-6
Original file line numberDiff line numberDiff line change
@@ -3797,16 +3797,18 @@ void VulkanReplay::FetchMeshOut(uint32_t eventId, VulkanRenderState &state)
37973797

37983798
if(numVerts > layout.vertArrayLength)
37993799
{
3800-
RDCERR("Meshlet returned invalid vertex count %u with declared max %u", numVerts,
3801-
layout.vertArrayLength);
3802-
ret.meshout.status = "Got corrupted mesh output data from GPU";
3800+
ret.meshout.status =
3801+
StringFormat::Fmt("Meshlet returned invalid vertex count %u with declared max %u",
3802+
numVerts, layout.vertArrayLength);
3803+
RDCERR("%s", ret.meshout.status.c_str());
38033804
}
38043805

38053806
if(numPrims > layout.primArrayLength)
38063807
{
3807-
RDCERR("Meshlet returned invalid primitive count %u with declared max %u", numPrims,
3808-
layout.primArrayLength);
3809-
ret.meshout.status = "Got corrupted mesh output data from GPU";
3808+
ret.meshout.status =
3809+
StringFormat::Fmt("Meshlet returned invalid primitive count %u with declared max %u",
3810+
numPrims, layout.primArrayLength);
3811+
RDCERR("%s", ret.meshout.status.c_str());
38103812
}
38113813

38123814
if(!ret.meshout.status.empty())

0 commit comments

Comments
 (0)