15#ifndef XEFG_SWAPCHAIN_D3D12_H
16#define XEFG_SWAPCHAIN_D3D12_H
140 ID3D12PipelineLibrary* pPipelineLibrary, uint8_t blocking, uint32_t initFlags);
171 uint32_t backBufferWidth,
172 uint32_t backBufferHeight,
173 DXGI_FORMAT backBufferFormat,
217 HWND hWnd, const DXGI_SWAP_CHAIN_DESC1* pSwapChainDesc, const DXGI_SWAP_CHAIN_FULLSCREEN_DESC* pFullscreenDesc,
272 ID3D12DescriptorHeap* pDescriptorHeap, uint32_t descriptorHeapOffsetInBytes);
296 ID3D12Heap* tempBufferHeap,
297 uint64_t tempBufferHeapOffset,
298 ID3D12Heap* tempTextureHeap,
299 uint64_t tempTextureHeapOffset);
XEFG_SWAPCHAIN_API xefg_swapchain_result_t xefgSwapChainD3D12BuildPipelines(xefg_swapchain_handle_t hSwapChain, ID3D12PipelineLibrary *pPipelineLibrary, uint8_t blocking, uint32_t initFlags)
Initiates pipeline build process This function can only be called between xefgSwapChainD3D12CreateCon...
XEFG_SWAPCHAIN_API xefg_swapchain_result_t xefgSwapChainD3D12SetDescriptorHeap(xefg_swapchain_handle_t hSwapChain, ID3D12DescriptorHeap *pDescriptorHeap, uint32_t descriptorHeapOffsetInBytes)
Informs the XeSS-FG swap chain library of the descriptor heap to use during frame generation....
XEFG_SWAPCHAIN_API xefg_swapchain_result_t xefgSwapChainD3D12GetProperties(xefg_swapchain_handle_t context, const xefg_swapchain_d3d12_init_params_t *initParams, uint32_t backBufferWidth, uint32_t backBufferHeight, DXGI_FORMAT backBufferFormat, xefg_swapchain_properties_t *properties)
Queries properties (including required heap sizes) given desired initialization parameters.
XEFG_SWAPCHAIN_API xefg_swapchain_result_t xefgSwapChainD3D12UpdateExternalHeapOnResize(xefg_swapchain_handle_t hSwapChain, ID3D12Heap *tempBufferHeap, uint64_t tempBufferHeapOffset, ID3D12Heap *tempTextureHeap, uint64_t tempTextureHeapOffset)
Updates external heap pointers during the next call to ResizeBuffers or ResizeBuffers1.
XEFG_SWAPCHAIN_API xefg_swapchain_result_t xefgSwapChainD3D12GetInitializationParameters(xefg_swapchain_handle_t hSwapChain, xefg_swapchain_d3d12_init_params_t *pParams)
Retrieve initialization parameters if the initialization was successful.
XEFG_SWAPCHAIN_API xefg_swapchain_result_t xefgSwapChainD3D12InitFromSwapChain(xefg_swapchain_handle_t hSwapChain, ID3D12CommandQueue *pCmdQueue, const xefg_swapchain_d3d12_init_params_t *pInitParams)
Initializes the XeSS-FG Swap Chain library for the generation and presentation of additional frames....
XEFG_SWAPCHAIN_API xefg_swapchain_result_t xefgSwapChainD3D12GetSwapChainPtr(xefg_swapchain_handle_t hSwapChain, REFIID riid, void **ppSwapChain)
Gets a pointer to a DXGI swap chain. The application must use it for all presentation in the applicat...
XEFG_SWAPCHAIN_API xefg_swapchain_result_t xefgSwapChainD3D12CreateContext(ID3D12Device *pDevice, xefg_swapchain_handle_t *phSwapChain)
Creates a swap chain handle and checks necessary D3D12 features.
XEFG_SWAPCHAIN_API xefg_swapchain_result_t xefgSwapChainD3D12TagFrameResource(xefg_swapchain_handle_t hSwapChain, ID3D12CommandList *pCmdList, uint32_t presentId, const xefg_swapchain_d3d12_resource_data_t *pResData)
Informs the XeSS-FG swap chain library of the frame resources used to generate a frame that will be p...
XEFG_SWAPCHAIN_API xefg_swapchain_result_t xefgSwapChainD3D12InitFromSwapChainDesc(xefg_swapchain_handle_t hSwapChain, HWND hWnd, const DXGI_SWAP_CHAIN_DESC1 *pSwapChainDesc, const DXGI_SWAP_CHAIN_FULLSCREEN_DESC *pFullscreenDesc, ID3D12CommandQueue *pCmdQueue, IDXGIFactory2 *pDxgiFactory, const xefg_swapchain_d3d12_init_params_t *pInitParams)
Initializes the XeSS-FG Swap Chain library for the generation and presentation of additional frames....
Initialization parameters. Optional external allocations are only available for the internal XeSS-FG ...
ID3D12PipelineLibrary * pPipelineLibrary
ID3D12Heap * pTempTextureHeap
uint32_t creationNodeMask
xefg_swapchain_ui_mode_t uiMode
ID3D12Heap * pTempBufferHeap
uint64_t textureHeapOffset
IDXGISwapChain * pApplicationSwapChain
uint64_t bufferHeapOffset
uint32_t maxInterpolatedFrames
XeSS-FG won't produce more than this number of interpolated frames.
Contains all fields needed when providing a resource to the library, describing its state,...
xefg_swapchain_resource_validity_t validity
xefg_swapchain_2d_t resourceSize
xefg_swapchain_2d_t resourceBase
xefg_swapchain_resource_type_t type
ID3D12Resource * pResource
D3D12_RESOURCE_STATES incomingState
enum _xefg_swapchain_ui_mode_t xefg_swapchain_ui_mode_t
XeSS-FG UI composition mode.
struct _xefg_swapchain_handle_t * xefg_swapchain_handle_t
#define XEFG_SWAPCHAIN_PACK_E()
#define XEFG_SWAPCHAIN_API
enum _xefg_swapchain_result_t xefg_swapchain_result_t
XeSS-FG Swap Chain return codes.
struct _xefg_swapchain_properties_t xefg_swapchain_properties_t
Properties for internal XeSS-FG Swap Chain resources.
#define XEFG_SWAPCHAIN_PACK_B()
enum _xefg_swapchain_resource_type_t xefg_swapchain_resource_type_t
XeSS-FG Swap Chain resources type.
struct _xefg_swapchain_2d_t xefg_swapchain_2d_t
2D variable.
enum _xefg_swapchain_resource_validity_t xefg_swapchain_resource_validity_t
Informs the library about the lifetime of the resource being provided. The library will take appropri...
struct _xefg_swapchain_d3d12_init_params_t xefg_swapchain_d3d12_init_params_t
Initialization parameters. Optional external allocations are only available for the internal XeSS-FG ...
struct _xefg_swapchain_d3d12_resource_data_t xefg_swapchain_d3d12_resource_data_t
Contains all fields needed when providing a resource to the library, describing its state,...