[PATCH vkd3d 2/6] vkd3d-shader/hlsl: Write empty SM4 shaders.

Henri Verbeet hverbeet at gmail.com
Thu Aug 19 11:19:04 CDT 2021

On Thu, 19 Aug 2021 at 17:57, Zebediah Figura (she/her)
<zfigura at codeweavers.com> wrote:
> I was assuming TPF referred to both SM1 and SM4 formats, since they are
> tokenized. What's the naming convention then? and what is the API
> convention?

TPF is specifically the format used for shader model 4 and 5 shaders,
mostly as opposed to DXIL for shader model 6. I've been using
"VKD3D_SHADER_SOURCE_D3D_BYTECODE" for shader model 1-3 sources, and
"d3dbc" as the vkd3d-compiler string. We'd then potentially have the

    "d3dbc" - Legacy Direct3D bytecode, no container.
    "dxbc-d3dbc" - Legacy Direct3D bytecode embedded in a DXBC container.
    "dxbc-tpf" - TPF (shader model 4/5) embedded in a DXBC container.
    "dxbc-dxil" - DXIL (shader model 6) embedded in a DXBC container.

More information about the wine-devel mailing list