<div dir="ltr">On Fri, Jul 22, 2022 at 8:28 PM Henri Verbeet <<a href="mailto:hverbeet@gmail.com">hverbeet@gmail.com</a>> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I'm not entirely sure we're decoding these correctly. The format is<br>
certainly specified in the HLSL; it would seem surprising (though not<br>
inconceivable) that the information just gets dropped when generating<br>
the bytecode.<br></blockquote><div><br></div><div>It appears from the spec we are not missing anything. The obvious way to encode a format component count is in the dword which specifies the type of each component. Those beyond the last component could be D3D11_SB_RETURN_TYPE_UNUSED, but instead they all have the same type. There's no other place to store it. The output from /dumpbin has four components for the declaration too, and the load instruction specifies a vec4 load. Looks like the actual format component count is left out.</div></div></div>