1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-01-08 10:46:09 +01:00
dxvk/src/dxgi/dxgi_swapchain.h

84 lines
1.8 KiB
C
Raw Normal View History

2017-10-11 16:22:13 +02:00
#pragma once
#include <memory>
#include <mutex>
#include "dxgi_interfaces.h"
#include "dxgi_object.h"
namespace dxvk {
class DxgiFactory;
class DxgiSwapChain : public DxgiObject<IDXGISwapChain> {
public:
DxgiSwapChain(
DxgiFactory* factory,
IUnknown* pDevice,
DXGI_SWAP_CHAIN_DESC* pDesc);
~DxgiSwapChain();
HRESULT QueryInterface(
REFIID riid,
void** ppvObject) final;
HRESULT GetParent(
REFIID riid,
void** ppParent) final;
HRESULT GetDevice(
REFIID riid,
void** ppDevice) final;
HRESULT GetBuffer(
UINT Buffer,
REFIID riid,
void** ppSurface) final;
HRESULT GetContainingOutput(
IDXGIOutput **ppOutput) final;
HRESULT GetDesc(
DXGI_SWAP_CHAIN_DESC *pDesc) final;
HRESULT GetFrameStatistics(
DXGI_FRAME_STATISTICS *pStats) final;
HRESULT GetFullscreenState(
BOOL *pFullscreen,
IDXGIOutput **ppTarget) final;
HRESULT GetLastPresentCount(
UINT *pLastPresentCount) final;
HRESULT Present(
UINT SyncInterval,
UINT Flags) final;
HRESULT ResizeBuffers(
UINT BufferCount,
UINT Width,
UINT Height,
DXGI_FORMAT NewFormat,
UINT SwapChainFlags) final;
HRESULT ResizeTarget(
const DXGI_MODE_DESC *pNewTargetParameters) final;
HRESULT SetFullscreenState(
BOOL Fullscreen,
IDXGIOutput *pTarget) final;
private:
Com<DxgiFactory> m_factory;
Com<IDXVKDevice> m_device;
2017-10-11 16:22:13 +02:00
DXGI_SWAP_CHAIN_DESC m_desc;
2017-10-11 16:22:13 +02:00
};
}