XeSS-FG SDK API Reference Guide 1.3.1
Loading...
Searching...
No Matches
xefg_swapchain_d3d12.h
Go to the documentation of this file.
1/*******************************************************************************
2 * Copyright (C) 2024 Intel Corporation
3 *
4 * This software and the related documents are Intel copyrighted materials, and
5 * your use of them is governed by the express license under which they were
6 * provided to you ("License"). Unless the License provides otherwise, you may
7 * not use, modify, copy, publish, distribute, disclose or transmit this
8 * software or the related documents without Intel's prior written permission.
9 *
10 * This software and the related documents are provided as is, with no express
11 * or implied warranties, other than those that are expressly stated in the
12 * License.
13 ******************************************************************************/
14
15#ifndef XEFG_SWAPCHAIN_D3D12_H
16#define XEFG_SWAPCHAIN_D3D12_H
17
18#ifdef __cplusplus
19extern "C" {
20#endif
21
22#include <d3d12.h>
23#include <dxgi.h>
24#include <dxgi1_5.h>
25
26#include "xefg_swapchain.h"
27
83
105
106
110
111
121
140 ID3D12PipelineLibrary* pPipelineLibrary, uint8_t blocking, uint32_t initFlags);
141
170 const xefg_swapchain_d3d12_init_params_t* initParams,
171 uint32_t backBufferWidth,
172 uint32_t backBufferHeight,
173 DXGI_FORMAT backBufferFormat,
174 xefg_swapchain_properties_t* properties);
175
191 ID3D12CommandQueue* pCmdQueue, const xefg_swapchain_d3d12_init_params_t* pInitParams);
192
217 HWND hWnd, const DXGI_SWAP_CHAIN_DESC1* pSwapChainDesc, const DXGI_SWAP_CHAIN_FULLSCREEN_DESC* pFullscreenDesc,
218 ID3D12CommandQueue* pCmdQueue, IDXGIFactory2* pDxgiFactory, const xefg_swapchain_d3d12_init_params_t* pInitParams);
219
233
256 ID3D12CommandList* pCmdList, uint32_t presentId, const xefg_swapchain_d3d12_resource_data_t* pResData);
257
272 ID3D12DescriptorHeap* pDescriptorHeap, uint32_t descriptorHeapOffsetInBytes);
273
274
295 xefg_swapchain_handle_t hSwapChain,
296 ID3D12Heap* tempBufferHeap,
297 uint64_t tempBufferHeapOffset,
298 ID3D12Heap* tempTextureHeap,
299 uint64_t tempTextureHeapOffset);
300
321
323
324#ifdef __cplusplus
325}
326#endif
327
328#endif /* XEFG_SWAPCHAIN_D3D12_H */
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 ...
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_resource_type_t type
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,...