working d3d11 device creation

This commit is contained in:
2025-04-13 17:21:15 +02:00
parent e7f1c877e0
commit 1c2f6a35ab
7 changed files with 139 additions and 27 deletions

View File

@@ -10,16 +10,17 @@
#include <Pulse.h>
#include "D3D11.h"
typedef struct D3D11Device
typedef struct Direct3D11Device
{
DXGI_ADAPTER_DESC1 description;
ID3D11Device* device;
ID3D11DeviceContext* context;
IDXGIFactory1* factory;
IDXGIAdapter1* adapter;
} D3D11Device;
} Direct3D11Device;
PulseDevice PuD3D11CreateDevice(PulseBackend backend, PulseDevice* forbiden_devices, uint32_t forbiden_devices_count);
void PuD3D11DestroyDevice(PulseDevice device);
PulseDevice Direct3D11CreateDevice(PulseBackend backend, PulseDevice* forbiden_devices, uint32_t forbiden_devices_count);
void Direct3D11DestroyDevice(PulseDevice device);
#endif // PULSE_D3D11_DEVICE_H_