mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
vkd3d-utils: Return an ID3DBlob pointer from D3DCreateBlob().
ID3DBlob is a typedef for ID3D10Blob, so this isn't all that consequential, but we're using ID3DBlob for the other vkd3d-utils exports. Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
c97d7f5bff
commit
c07e6536a9
@ -66,7 +66,7 @@ HRESULT WINAPI D3DCompile2(const void *data, SIZE_T data_size, const char *filen
|
|||||||
const char *profile, UINT flags, UINT effect_flags, UINT secondary_flags,
|
const char *profile, UINT flags, UINT effect_flags, UINT secondary_flags,
|
||||||
const void *secondary_data, SIZE_T secondary_data_size, ID3DBlob **shader,
|
const void *secondary_data, SIZE_T secondary_data_size, ID3DBlob **shader,
|
||||||
ID3DBlob **error_messages);
|
ID3DBlob **error_messages);
|
||||||
HRESULT WINAPI D3DCreateBlob(SIZE_T size, ID3D10Blob **blob);
|
HRESULT WINAPI D3DCreateBlob(SIZE_T size, ID3DBlob **blob);
|
||||||
HRESULT WINAPI D3DPreprocess(const void *data, SIZE_T size, const char *filename, const D3D_SHADER_MACRO *macros,
|
HRESULT WINAPI D3DPreprocess(const void *data, SIZE_T size, const char *filename, const D3D_SHADER_MACRO *macros,
|
||||||
ID3DInclude *include, ID3DBlob **shader, ID3DBlob **error_messages);
|
ID3DInclude *include, ID3DBlob **shader, ID3DBlob **error_messages);
|
||||||
|
|
||||||
|
@ -70,7 +70,7 @@ VKD3D_UTILS_API HRESULT WINAPI D3DCompile2(const void *data, SIZE_T data_size, c
|
|||||||
const char *target, UINT flags, UINT effect_flags, UINT secondary_flags,
|
const char *target, UINT flags, UINT effect_flags, UINT secondary_flags,
|
||||||
const void *secondary_data, SIZE_T secondary_data_size, ID3DBlob **shader,
|
const void *secondary_data, SIZE_T secondary_data_size, ID3DBlob **shader,
|
||||||
ID3DBlob **error_messages);
|
ID3DBlob **error_messages);
|
||||||
VKD3D_UTILS_API HRESULT WINAPI D3DCreateBlob(SIZE_T data_size, ID3D10Blob **blob);
|
VKD3D_UTILS_API HRESULT WINAPI D3DCreateBlob(SIZE_T data_size, ID3DBlob **blob);
|
||||||
VKD3D_UTILS_API HRESULT WINAPI D3DPreprocess(const void *data, SIZE_T size, const char *filename,
|
VKD3D_UTILS_API HRESULT WINAPI D3DPreprocess(const void *data, SIZE_T size, const char *filename,
|
||||||
const D3D_SHADER_MACRO *defines, ID3DInclude *include,
|
const D3D_SHADER_MACRO *defines, ID3DInclude *include,
|
||||||
ID3DBlob **shader, ID3DBlob **error_messages);
|
ID3DBlob **shader, ID3DBlob **error_messages);
|
||||||
|
@ -471,7 +471,7 @@ void vkd3d_destroy_event(HANDLE event)
|
|||||||
|
|
||||||
#endif /* _WIN32 */
|
#endif /* _WIN32 */
|
||||||
|
|
||||||
HRESULT WINAPI D3DCreateBlob(SIZE_T data_size, ID3D10Blob **blob)
|
HRESULT WINAPI D3DCreateBlob(SIZE_T data_size, ID3DBlob **blob)
|
||||||
{
|
{
|
||||||
HRESULT hr;
|
HRESULT hr;
|
||||||
void *data;
|
void *data;
|
||||||
|
Loading…
Reference in New Issue
Block a user