mirror of
https://github.com/Kbz-8/Pulse.git
synced 2026-01-10 15:03:34 +00:00
29 lines
707 B
C
29 lines
707 B
C
// Copyright (C) 2025 kbz_8
|
|
// This file is part of "Pulse"
|
|
// For conditions of distribution and use, see copyright notice in LICENSE
|
|
|
|
#include <Pulse.h>
|
|
|
|
#ifdef PULSE_ENABLE_D3D11_BACKEND
|
|
|
|
#ifndef PULSE_D3D11_DEVICE_H_
|
|
#define PULSE_D3D11_DEVICE_H_
|
|
|
|
#include "D3D11.h"
|
|
|
|
typedef struct Direct3D11Device
|
|
{
|
|
DXGI_ADAPTER_DESC1 description;
|
|
ID3D11Device* device;
|
|
ID3D11DeviceContext* context;
|
|
IDXGIFactory1* factory;
|
|
IDXGIAdapter1* adapter;
|
|
} Direct3D11Device;
|
|
|
|
PulseDevice Direct3D11CreateDevice(PulseBackend backend, PulseDevice* forbiden_devices, uint32_t forbiden_devices_count);
|
|
void Direct3D11DestroyDevice(PulseDevice device);
|
|
|
|
#endif // PULSE_D3D11_DEVICE_H_
|
|
|
|
#endif // PULSE_ENABLE_D3D11_BACKEND
|