ReactOS 0.4.17-dev-966-gf06eace
d3d9on12.idl
Go to the documentation of this file.
1/*
2 * Copyright (C) 2024 Mohamad Al-Jaf
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
17 */
18
19cpp_quote("#include <d3d9.h>")
20import "d3d12.idl";
21
22interface IDirect3D9;
23interface IDirect3DResource9;
24
25#define MAX_D3D9ON12_QUEUES 2
26
27typedef struct D3D9ON12_ARGS
28{
35
36typedef IDirect3D9 * (__stdcall *PFN_Direct3DCreate9On12)(UINT sdk_version, D3D9ON12_ARGS *d3d9on12_args, UINT d3d9on12_args_count);
38
40
41[
42 local,
43 object,
44 uuid(e7fda234-b589-4049-940d-8878977531c8)
45]
47{
49 HRESULT UnwrapUnderlyingResource(IDirect3DResource9 *resource, ID3D12CommandQueue *queue, REFIID riid, void **out);
50 HRESULT ReturnUnderlyingResource(IDirect3DResource9 *resource, UINT fence_count, UINT64 *signal_values, ID3D12Fence **fences);
51}
COMPILER_DEPENDENT_UINT64 UINT64
Definition: actypes.h:131
#define interface
Definition: basetyps.h:61
CD3D10_BUFFER_DESC D3D10_BUFFER_DESC cpp_quote(" ~CD3D10_BUFFER_DESC() {}") operator const D3D10_BUFFER_DESC &() const
Definition: d3d10.idl:496
IDirect3D9 *(__stdcall * PFN_Direct3DCreate9On12)(UINT sdk_version, D3D9ON12_ARGS *d3d9on12_args, UINT d3d9on12_args_count)
Definition: d3d9on12.idl:36
struct IDirect3DDevice9On12 * LPDIRECT3DDEVICE9ON12
Definition: d3d9on12.idl:39
struct IDirect3DDevice9On12 * PDIRECT3DDEVICE9ON12
Definition: d3d9on12.idl:39
#define MAX_D3D9ON12_QUEUES
Definition: d3d9on12.idl:25
IDirect3D9 *__stdcall Direct3DCreate9On12(UINT, D3D9ON12_ARGS *, UINT)
Definition: d3d9_main.c:78
#define __stdcall
Definition: corecrt.h:120
unsigned int BOOL
Definition: ntddk_ex.h:94
#define local
Definition: zutil.h:30
const GLuint * fences
Definition: glext.h:9249
unsigned int UINT
Definition: sysinfo.c:13
static D3D_DRIVER_TYPE HMODULE UINT const D3D_FEATURE_LEVEL UINT UINT sdk_version
Definition: hlsl_d3d11.c:29
REFIID riid
Definition: atlbase.h:39
HRESULT UnwrapUnderlyingResource(IDirect3DResource9 *resource, ID3D12CommandQueue *queue, REFIID riid, void **out)
HRESULT GetD3D12Device(REFIID riid, void **out)
HRESULT ReturnUnderlyingResource(IDirect3DResource9 *resource, UINT fence_count, UINT64 *signal_values, ID3D12Fence **fences)
Definition: msctf.idl:532
#define d
Definition: ke_i.h:81
#define REFIID
Definition: guiddef.h:118
UINT NumQueues
Definition: d3d9on12.idl:32
BOOL Enable9On12
Definition: d3d9on12.idl:29
IUnknown * pD3D12Device
Definition: d3d9on12.idl:30
IUnknown * ppD3D12Queues[MAX_D3D9ON12_QUEUES]
Definition: d3d9on12.idl:31
Definition: queue.c:179
wchar_t tm const _CrtWcstime_Writes_and_advances_ptr_ count wchar_t ** out
Definition: wcsftime.cpp:383