This commit is contained in:
2025-04-13 00:43:33 +02:00
parent 63b336783b
commit e7f1c877e0
13 changed files with 225 additions and 3 deletions

26
Sources/Backends/D3D11/D3D11Device.h git.filemode.normal_file
View File

@@ -0,0 +1,26 @@
// Copyright (C) 2025 kanel
// This file is part of "Pulse"
// For conditions of distribution and use, see copyright notice in LICENSE
#ifdef PULSE_ENABLE_D3D11_BACKEND
#ifndef PULSE_D3D11_DEVICE_H_
#define PULSE_D3D11_DEVICE_H_
#include <Pulse.h>
#include "D3D11.h"
typedef struct D3D11Device
{
ID3D11Device* device;
ID3D11DeviceContext* context;
IDXGIFactory1* factory;
IDXGIAdapter1* adapter;
} D3D11Device;
PulseDevice PuD3D11CreateDevice(PulseBackend backend, PulseDevice* forbiden_devices, uint32_t forbiden_devices_count);
void PuD3D11DestroyDevice(PulseDevice device);
#endif // PULSE_D3D11_DEVICE_H_
#endif // PULSE_ENABLE_D3D11_BACKEND