vkd3d-shader/fx: Add support for tx -> text output.

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
This commit is contained in:
Nikolay Sivov
2025-06-12 00:38:10 +02:00
committed by Henri Verbeet
parent 586b2b5a79
commit 7281f4ed39
Notes: Henri Verbeet 2025-06-16 17:49:09 +02:00
Approved-by: Henri Verbeet (@hverbeet)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1570
5 changed files with 71 additions and 2 deletions

View File

@@ -113,6 +113,9 @@ source_type_info[] =
{VKD3D_SHADER_SOURCE_FX,
"fx", "Raw effect binary section. This type includes fx_2_0 and fx_4+ formats.\n",
true, VKD3D_SHADER_TARGET_D3D_ASM},
{VKD3D_SHADER_SOURCE_TX,
"tx", "A D3DX texture shader. This is the format used for the 'tx_1_0' HLSL target profile.\n",
true, VKD3D_SHADER_TARGET_D3D_ASM},
{VKD3D_SHADER_SOURCE_FX,
"dxbc-fx", "An effect binary embedded in a DXBC container.\n",
true, VKD3D_SHADER_TARGET_D3D_ASM, TAG_FX10},
@@ -868,6 +871,8 @@ int main(int argc, char **argv)
options.source_type = get_source_type_info(VKD3D_SHADER_SOURCE_D3D_BYTECODE);
else if ((token & 0xffff0000) == 0xfeff0000)
options.source_type = get_source_type_info(VKD3D_SHADER_SOURCE_FX);
else if ((token & 0xffff0000) == 0x54580000)
options.source_type = get_source_type_info(VKD3D_SHADER_SOURCE_TX);
else
options.source_type = get_source_type_info(VKD3D_SHADER_SOURCE_HLSL);
}