Commit graph

33 commits

Author SHA1 Message Date
Henri Verbeet
372dc31eac d3dcompiler: Use vkd3d_shader_parse_dxbc() in d3dcompiler_strip_shader(). 2023-04-18 10:18:48 +02:00
Henri Verbeet
7dfd32d5f0 d3dcompiler: Use vkd3d_shader_parse_dxbc() in d3dcompiler_get_blob_part(). 2023-04-18 10:18:48 +02:00
Henri Verbeet
8455b47b86 d3dcompiler: Use vkd3d_shader_serialize_dxbc() in d3dcompiler_strip_shader().
Note that this adds a todo_wine to test_get_blob_part2(). It looks
like native d3dcompiler only adds padding between sections, while
vkd3d-shader always adds padding to the end of sections. I've sent a
vkd3d-shader patch to fix that, but the extra padding at the end of
the DXBC blob doesn't seem terribly concerning.
2023-04-18 10:18:48 +02:00
Henri Verbeet
0c7313840c d3dcompiler: Use vkd3d_shader_serialize_dxbc() in d3dcompiler_get_blob_part(). 2023-04-18 10:18:48 +02:00
Henri Verbeet
b8fe76a8b5 d3dcompiler: Store DXBC sections as vkd3d_shader_dxbc_section_desc structures. 2023-04-18 10:18:48 +02:00
Henri Verbeet
3fbfd1da2c d3dcompiler: Check for minimum bytecode size in d3dcompiler_strip_shader(). 2023-04-18 10:18:28 +02:00
Henri Verbeet
a342c75a37 d3dcompiler: Check for minimum bytecode size in d3dcompiler_get_blob_part(). 2023-04-18 10:18:28 +02:00
Eric Pouech
576cdea0d7 d3dcompiler: Build without -DWINE_NO_LONG_TYPES.
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-02-08 20:24:15 +01:00
Nikolay Sivov
d12d6b2978 d3dcompiler: Implement D3DWriteBlobToFile().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-01-27 11:10:27 +01:00
Alexandre Julliard
c8d34ef088 d3dcompiler: Build with msvcrt.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-07-02 14:59:40 +02:00
Jactry Zeng
622422e67b d3dcompiler: Implement D3DReadFileToBlob().
Signed-off-by: Jactry Zeng <jzeng@codeweavers.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-07 16:42:37 -05:00
Alistair Leslie-Hughes
26094c5634 d3dcompiler: Add D3DReadFileToBlob, D3DWriteBlobToFile stubs.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-20 01:19:50 +09:00
Michael Stefaniuc
536bdfde27 d3dcompiler_43: Remove ERR() on HeapAlloc failure for small sizes known at compile time. 2013-02-08 10:44:36 +01:00
Rico Schüller
5c999d650f d3dcompiler: Move blob and strip functions to blob.c. 2011-04-04 13:43:29 +02:00
Rico Schüller
c4530c56d1 d3dcompiler: Remove type cast in D3DCreateBlob(). 2011-04-04 13:43:23 +02:00
Rico Schüller
4d54360765 d3dcompiler: Move D3DCreateBlob() to blob.c. 2011-04-04 13:43:01 +02:00
Rico Schüller
806961ec28 d3dcompiler: Use an iface instead of a vtbl pointer in d3dcompiler_blob. 2010-12-21 15:48:33 +01:00
Rico Schüller
cc6699f09d d3dcompiler: Handle TAG_OSG5 in D3DGetBlobPart(). 2010-12-13 12:43:31 +01:00
Henri Verbeet
3db5163fd0 d3dcompiler: Make some variables static. 2010-10-18 19:08:37 +02:00
Rico Schüller
2c9b24b054 d3dcompiler: Implement D3DStripShader(). 2010-10-13 16:29:46 +02:00
Rico Schüller
a36f51b1b2 d3dcompiler: Add D3D_BLOB_XNA_SHADER to D3DGetBlobPart(). 2010-10-13 16:29:23 +02:00
Rico Schüller
cdfdfe59ee d3dcompiler: Add D3D_BLOB_XNA_PREPASS_SHADER to D3DGetBlobPart(). 2010-10-13 16:29:19 +02:00
Rico Schüller
976b4e96bd d3dcompiler: Add D3D_BLOB_LEGACY_SHADER to D3DGetBlobPart(). 2010-10-13 16:29:14 +02:00
Rico Schüller
7b5e05a99d d3dcompiler: Add D3D_BLOB_ALL_SIGNATURE_BLOB to D3DGetBlobPart(). 2010-10-13 16:29:07 +02:00
Rico Schüller
3cbb72667b d3dcompiler: Add D3D_BLOB_PATCH_CONSTANT_SIGNATURE_BLOB to D3DGetBlobPart(). 2010-10-13 16:28:59 +02:00
Rico Schüller
d52f2b63c0 d3dcompiler: Implement D3DGetDebugInfo(). 2010-10-07 15:58:11 +02:00
Rico Schüller
4467901e31 d3dcompiler: Implement D3DGetInputAndOutputSignatureBlob(). 2010-10-07 15:58:11 +02:00
Rico Schüller
164dcc7973 d3dcompiler: Implement D3DGetOutputSignatureBlob(). 2010-10-07 15:58:11 +02:00
Rico Schüller
5946201d19 d3dcompiler: Implement D3DGetInputSignatureBlob(). 2010-10-07 15:58:11 +02:00
Rico Schüller
ec698dea66 d3dcompiler: Implement D3DGetBlobPart(). 2010-10-07 15:58:11 +02:00
Rico Schüller
fa456a61bc d3dcompiler: Implement ID3DBlob::GetBufferSize(). 2010-08-17 11:42:39 +02:00
Rico Schüller
d889800beb d3dcompiler: Implement ID3DBlob::GetBufferPointer(). 2010-08-17 11:42:39 +02:00
Rico Schüller
d511f18f9e d3dcompiler: Implement D3DCreateBlob(). 2010-08-17 11:42:26 +02:00