mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
vkd3d-utils: Implement D3DGetDebugInfo().
This commit is contained in:
parent
b63c853688
commit
247eaa6b7d
Notes:
Alexandre Julliard
2023-10-18 22:51:37 +02:00
Approved-by: Matteo Bruni (@Mystral) Approved-by: Giovanni Mascellani (@giomasce) Approved-by: Henri Verbeet (@hverbeet) Approved-by: Alexandre Julliard (@julliard) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/414
@ -89,6 +89,7 @@ HRESULT WINAPI D3DCompile2(const void *data, SIZE_T data_size, const char *filen
|
|||||||
ID3DBlob **error_messages);
|
ID3DBlob **error_messages);
|
||||||
HRESULT WINAPI D3DCreateBlob(SIZE_T size, ID3DBlob **blob);
|
HRESULT WINAPI D3DCreateBlob(SIZE_T size, ID3DBlob **blob);
|
||||||
HRESULT WINAPI D3DGetBlobPart(const void *data, SIZE_T data_size, D3D_BLOB_PART part, UINT flags, ID3DBlob **blob);
|
HRESULT WINAPI D3DGetBlobPart(const void *data, SIZE_T data_size, D3D_BLOB_PART part, UINT flags, ID3DBlob **blob);
|
||||||
|
HRESULT WINAPI D3DGetDebugInfo(const void *data, SIZE_T data_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);
|
||||||
|
|
||||||
|
@ -107,6 +107,8 @@ VKD3D_UTILS_API void vkd3d_utils_set_log_callback(PFN_vkd3d_log callback);
|
|||||||
/** \since 1.10 */
|
/** \since 1.10 */
|
||||||
VKD3D_UTILS_API HRESULT WINAPI D3DGetBlobPart(const void *data,
|
VKD3D_UTILS_API HRESULT WINAPI D3DGetBlobPart(const void *data,
|
||||||
SIZE_T data_size, D3D_BLOB_PART part, UINT flags, ID3DBlob **blob);
|
SIZE_T data_size, D3D_BLOB_PART part, UINT flags, ID3DBlob **blob);
|
||||||
|
/** \since 1.10 */
|
||||||
|
VKD3D_UTILS_API HRESULT WINAPI D3DGetDebugInfo(const void *data, SIZE_T data_size, ID3DBlob **blob);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
@ -12,6 +12,7 @@ global:
|
|||||||
D3DCompile2;
|
D3DCompile2;
|
||||||
D3DCreateBlob;
|
D3DCreateBlob;
|
||||||
D3DGetBlobPart;
|
D3DGetBlobPart;
|
||||||
|
D3DGetDebugInfo;
|
||||||
D3DPreprocess;
|
D3DPreprocess;
|
||||||
vkd3d_create_event;
|
vkd3d_create_event;
|
||||||
vkd3d_destroy_event;
|
vkd3d_destroy_event;
|
||||||
|
@ -759,6 +759,13 @@ HRESULT WINAPI D3DGetBlobPart(const void *data, SIZE_T data_size, D3D_BLOB_PART
|
|||||||
return get_blob_part(data, data_size, part, flags, blob);
|
return get_blob_part(data, data_size, part, flags, blob);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
HRESULT WINAPI D3DGetDebugInfo(const void *data, SIZE_T data_size, ID3DBlob **blob)
|
||||||
|
{
|
||||||
|
TRACE("data %p, data_size %lu, blob %p.\n", data, data_size, blob);
|
||||||
|
|
||||||
|
return get_blob_part(data, data_size, D3D_BLOB_DEBUG_INFO, 0, blob);
|
||||||
|
}
|
||||||
|
|
||||||
void vkd3d_utils_set_log_callback(PFN_vkd3d_log callback)
|
void vkd3d_utils_set_log_callback(PFN_vkd3d_log callback)
|
||||||
{
|
{
|
||||||
vkd3d_set_log_callback(callback);
|
vkd3d_set_log_callback(callback);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user