mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
include: D3D12_RT_FORMAT_ARRAY remove typedef to make header compatible with windows.
windows d3d12.idl doesn't have this as a typedef.
This commit is contained in:
parent
2935ac5c7e
commit
5c134d44d6
Notes:
Alexandre Julliard
2023-11-28 00:12:22 +01:00
Approved-by: Henri Verbeet (@hverbeet) Approved-by: Alexandre Julliard (@julliard) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/492
@ -2129,11 +2129,11 @@ typedef struct D3D12_PIPELINE_STATE_STREAM_DESC
|
|||||||
void *pPipelineStateSubobjectStream;
|
void *pPipelineStateSubobjectStream;
|
||||||
} D3D12_PIPELINE_STATE_STREAM_DESC;
|
} D3D12_PIPELINE_STATE_STREAM_DESC;
|
||||||
|
|
||||||
typedef struct D3D12_RT_FORMAT_ARRAY
|
struct D3D12_RT_FORMAT_ARRAY
|
||||||
{
|
{
|
||||||
DXGI_FORMAT RTFormats[D3D12_SIMULTANEOUS_RENDER_TARGET_COUNT];
|
DXGI_FORMAT RTFormats[D3D12_SIMULTANEOUS_RENDER_TARGET_COUNT];
|
||||||
UINT NumRenderTargets;
|
UINT NumRenderTargets;
|
||||||
} D3D12_RT_FORMAT_ARRAY;
|
};
|
||||||
|
|
||||||
typedef enum D3D12_PIPELINE_STATE_SUBOBJECT_TYPE
|
typedef enum D3D12_PIPELINE_STATE_SUBOBJECT_TYPE
|
||||||
{
|
{
|
||||||
|
@ -1839,7 +1839,7 @@ static HRESULT pipeline_state_desc_from_d3d12_stream_desc(struct d3d12_pipeline_
|
|||||||
[D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_INPUT_LAYOUT] = DCL_SUBOBJECT_INFO(D3D12_INPUT_LAYOUT_DESC, input_layout),
|
[D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_INPUT_LAYOUT] = DCL_SUBOBJECT_INFO(D3D12_INPUT_LAYOUT_DESC, input_layout),
|
||||||
[D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_IB_STRIP_CUT_VALUE] = DCL_SUBOBJECT_INFO(D3D12_INDEX_BUFFER_STRIP_CUT_VALUE, strip_cut_value),
|
[D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_IB_STRIP_CUT_VALUE] = DCL_SUBOBJECT_INFO(D3D12_INDEX_BUFFER_STRIP_CUT_VALUE, strip_cut_value),
|
||||||
[D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_PRIMITIVE_TOPOLOGY] = DCL_SUBOBJECT_INFO(D3D12_PRIMITIVE_TOPOLOGY_TYPE, primitive_topology_type),
|
[D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_PRIMITIVE_TOPOLOGY] = DCL_SUBOBJECT_INFO(D3D12_PRIMITIVE_TOPOLOGY_TYPE, primitive_topology_type),
|
||||||
[D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_RENDER_TARGET_FORMATS] = DCL_SUBOBJECT_INFO(D3D12_RT_FORMAT_ARRAY, rtv_formats),
|
[D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_RENDER_TARGET_FORMATS] = DCL_SUBOBJECT_INFO(struct D3D12_RT_FORMAT_ARRAY, rtv_formats),
|
||||||
[D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_DEPTH_STENCIL_FORMAT] = DCL_SUBOBJECT_INFO(DXGI_FORMAT, dsv_format),
|
[D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_DEPTH_STENCIL_FORMAT] = DCL_SUBOBJECT_INFO(DXGI_FORMAT, dsv_format),
|
||||||
[D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_SAMPLE_DESC] = DCL_SUBOBJECT_INFO(DXGI_SAMPLE_DESC, sample_desc),
|
[D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_SAMPLE_DESC] = DCL_SUBOBJECT_INFO(DXGI_SAMPLE_DESC, sample_desc),
|
||||||
[D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_NODE_MASK] = DCL_SUBOBJECT_INFO(UINT, node_mask),
|
[D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_NODE_MASK] = DCL_SUBOBJECT_INFO(UINT, node_mask),
|
||||||
|
@ -1334,7 +1334,7 @@ struct d3d12_pipeline_state_desc
|
|||||||
D3D12_INPUT_LAYOUT_DESC input_layout;
|
D3D12_INPUT_LAYOUT_DESC input_layout;
|
||||||
D3D12_INDEX_BUFFER_STRIP_CUT_VALUE strip_cut_value;
|
D3D12_INDEX_BUFFER_STRIP_CUT_VALUE strip_cut_value;
|
||||||
D3D12_PRIMITIVE_TOPOLOGY_TYPE primitive_topology_type;
|
D3D12_PRIMITIVE_TOPOLOGY_TYPE primitive_topology_type;
|
||||||
D3D12_RT_FORMAT_ARRAY rtv_formats;
|
struct D3D12_RT_FORMAT_ARRAY rtv_formats;
|
||||||
DXGI_FORMAT dsv_format;
|
DXGI_FORMAT dsv_format;
|
||||||
DXGI_SAMPLE_DESC sample_desc;
|
DXGI_SAMPLE_DESC sample_desc;
|
||||||
D3D12_VIEW_INSTANCING_DESC view_instancing_desc;
|
D3D12_VIEW_INSTANCING_DESC view_instancing_desc;
|
||||||
|
@ -3265,7 +3265,7 @@ static void test_create_pipeline_state(void)
|
|||||||
struct d3d12_render_target_formats_subobject
|
struct d3d12_render_target_formats_subobject
|
||||||
{
|
{
|
||||||
DECLSPEC_ALIGN(sizeof(void *)) D3D12_PIPELINE_STATE_SUBOBJECT_TYPE type;
|
DECLSPEC_ALIGN(sizeof(void *)) D3D12_PIPELINE_STATE_SUBOBJECT_TYPE type;
|
||||||
D3D12_RT_FORMAT_ARRAY render_target_formats;
|
struct D3D12_RT_FORMAT_ARRAY render_target_formats;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct d3d12_depth_stencil_format_subobject
|
struct d3d12_depth_stencil_format_subobject
|
||||||
|
Loading…
Reference in New Issue
Block a user