Repository navigation
[RDAT] Add mesh node signature elements to mesh node case for RDAT - #6499
Conversation
|
The new test does have some data inside SigOutputElements / SigPrimOutputElements, and ideally the test would just check for that data. But other rdat tests tend to check for lots of surrounding structure. The test is large, since it tests ALL RDAT output, and I would like to remove some check lines, but I am unsure what the general guidelines are for what doesn't need to be checked in RDAT tests. |
Damyan Pepper (damyanp)
left a comment
There was a problem hiding this comment.
LGTM - I have some questions around TODO comments.
Yeah, I was going to comment on that but I remember seeing other tests like this. It strikes me as being pretty brittle if anything is ever added to the output here, but I don't think you're too far from existing patterns here. For the preview branch this is probably ok and we don't need to dig too deep into it. |
Tex Riddell (tex3d)
left a comment
There was a problem hiding this comment.
Looks good! The one thing to watch out for when initializing a record to zero is if it has any ArrayRef fields, which must be set to (uint)-1 (RDAT_NULL_REF) for any null/empty arrays. This was the cause of the corrupt values for the signature elements before this change. I feel like RDAT validation should have caught that, but maybe there's a gap here. I'll look into that later.
e6c1c4f
into
microsoft:release-preview-mesh-nodes
Previously, mesh nodes would be missing two details in the RDAT output: SigOutputElements and SigPrimOutputElements.
The signature data was missing from RDAT because lib\DxilContainer\DxilContainerAssembler.cpp:AddShaderNodeInfo only added MeshOutputTopology, MaxOutputVertices, and MaxOutputPrimitives data to the RDAT.
In this PR, more data gets added to RDAT, including the previously missing signature elements.
A test was added that verifies that the RDAT includes these new signatue element details.
Fixes #6495