<div dir="ltr"><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jul 21, 2022 at 2:45 AM Henri Verbeet <<a href="mailto:hverbeet@gmail.com">hverbeet@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">So what this compile option then comes down to is using either the<br>
declared UAV type, or SpvImageFormatUnknown. And when not using<br>
SpvImageFormatUnknown, there's arguably still a bug of ignoring<br>
component counts. We could opt to not fix that bug, or fail shader<br>
compilation for those formats, but it doesn't seem terribly hard to<br>
fix, and I don't think there are that many additional formats anyway.<br></blockquote><div><br></div><div>What do you propose to do for component counts? UAVs with < 4 components are still declared in DXBC as vec4, and loads declare e.g. u1.xyzw as the source. Information about the actual component count seems to be missing. It is stored in DXIL, so maybe it can be used there, but not for SM < 6.<br></div></div></div>