mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-04-13 05:43:18 -07:00
vkd3d-utils: Implement ID3D12ShaderReflection::GetConstantBufferByIndex().
This commit is contained in:
committed by
Alexandre Julliard
parent
166dc24b2f
commit
90cd57404b
Notes:
Alexandre Julliard
2024-03-27 23:06:24 +01:00
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/626
@@ -65,6 +65,15 @@ static inline char *vkd3d_strdup(const char *string)
|
||||
return ptr;
|
||||
}
|
||||
|
||||
static inline void *vkd3d_memdup(const void *mem, size_t size)
|
||||
{
|
||||
void *ptr;
|
||||
|
||||
if ((ptr = vkd3d_malloc(size)))
|
||||
memcpy(ptr, mem, size);
|
||||
return ptr;
|
||||
}
|
||||
|
||||
bool vkd3d_array_reserve(void **elements, size_t *capacity, size_t element_count, size_t element_size);
|
||||
|
||||
#endif /* __VKD3D_MEMORY_H */
|
||||
|
Reference in New Issue
Block a user