[PATCH vkd3d 2/3] vkd3d-shader: Introduce a compile option to use Unknown format for typed UAV reads.

Conor McCarthy conor.mccarthy.444 at gmail.com
Fri Jul 29 06:02:35 CDT 2022


On Fri, Jul 22, 2022 at 8:28 PM Henri Verbeet <hverbeet at gmail.com> wrote:

> I'm not entirely sure we're decoding these correctly. The format is
> certainly specified in the HLSL; it would seem surprising (though not
> inconceivable) that the information just gets dropped when generating
> the bytecode.
>

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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20220729/07c07606/attachment.htm>


More information about the wine-devel mailing list