vkd3d-utils: Initialize the null type vtbl.

This commit is contained in:
Zebediah Figura 2024-05-02 22:11:54 -05:00 committed by Alexandre Julliard
parent 7b3c47ba2e
commit 35d388eedd
Notes: Alexandre Julliard 2024-05-06 22:37:40 +02:00
Approved-by: Henri Verbeet (@hverbeet)
Approved-by: Alexandre Julliard (@julliard)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/848

View File

@ -197,6 +197,8 @@ static const struct ID3D12ShaderReflectionTypeVtbl d3d12_type_vtbl =
d3d12_type_ImplementsInterface, d3d12_type_ImplementsInterface,
}; };
static struct d3d12_type null_type = {{&d3d12_type_vtbl}};
static struct d3d12_variable *impl_from_ID3D12ShaderReflectionVariable(ID3D12ShaderReflectionVariable *iface) static struct d3d12_variable *impl_from_ID3D12ShaderReflectionVariable(ID3D12ShaderReflectionVariable *iface)
{ {
return CONTAINING_RECORD(iface, struct d3d12_variable, ID3D12ShaderReflectionVariable_iface); return CONTAINING_RECORD(iface, struct d3d12_variable, ID3D12ShaderReflectionVariable_iface);