vkd3d: Move ID3D12StateObject impl_froms to header
Basic casts should not be function calls. Signed-off-by: Joshua Ashton <joshua@froggi.es>
This commit is contained in:
parent
cabc31fc4c
commit
bde3ad8e01
|
@ -20,11 +20,6 @@
|
||||||
#include "vkd3d_private.h"
|
#include "vkd3d_private.h"
|
||||||
#include "vkd3d_string.h"
|
#include "vkd3d_string.h"
|
||||||
|
|
||||||
struct d3d12_state_object *impl_from_ID3D12StateObject(ID3D12StateObject *iface)
|
|
||||||
{
|
|
||||||
return CONTAINING_RECORD(iface, struct d3d12_state_object, ID3D12StateObject_iface);
|
|
||||||
}
|
|
||||||
|
|
||||||
static inline struct d3d12_state_object *impl_from_ID3D12StateObjectProperties(ID3D12StateObjectProperties *iface)
|
static inline struct d3d12_state_object *impl_from_ID3D12StateObjectProperties(ID3D12StateObjectProperties *iface)
|
||||||
{
|
{
|
||||||
return CONTAINING_RECORD(iface, struct d3d12_state_object, ID3D12StateObjectProperties_iface);
|
return CONTAINING_RECORD(iface, struct d3d12_state_object, ID3D12StateObjectProperties_iface);
|
||||||
|
|
|
@ -2993,7 +2993,11 @@ struct d3d12_state_object
|
||||||
|
|
||||||
HRESULT d3d12_state_object_create(struct d3d12_device *device, const D3D12_STATE_OBJECT_DESC *desc,
|
HRESULT d3d12_state_object_create(struct d3d12_device *device, const D3D12_STATE_OBJECT_DESC *desc,
|
||||||
struct d3d12_state_object **object);
|
struct d3d12_state_object **object);
|
||||||
struct d3d12_state_object *impl_from_ID3D12StateObject(ID3D12StateObject *iface);
|
|
||||||
|
static inline struct d3d12_state_object *impl_from_ID3D12StateObject(ID3D12StateObject *iface)
|
||||||
|
{
|
||||||
|
return CONTAINING_RECORD(iface, struct d3d12_state_object, ID3D12StateObject_iface);
|
||||||
|
}
|
||||||
|
|
||||||
/* utils */
|
/* utils */
|
||||||
enum vkd3d_format_type
|
enum vkd3d_format_type
|
||||||
|
|
Loading…
Reference in New Issue