![]() |
XeSS-FG SDK API Reference Guide 1.3.1
|
Go to the source code of this file.
Data Structures | |
| struct | _xefg_swapchain_d3d12_init_params_t |
| Initialization parameters. Optional external allocations are only available for the internal XeSS-FG resources, the Swap Chain API resources will still be managed by the API. More... | |
| struct | _xefg_swapchain_d3d12_resource_data_t |
| Contains all fields needed when providing a resource to the library, describing its state, lifetime, range and so on. More... | |
Typedefs | |
| typedef 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 resources, the Swap Chain API resources will still be managed by the API. | |
| typedef 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, lifetime, range and so on. | |
Functions | |
| 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 | 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 xefgSwapChainD3D12CreateContext and any initialization function This call initiates build of DX12 pipelines and kernel compilation This call can be blocking (if blocking set to true) or non-blocking. In case of non-blocking call library will wait for pipeline build on call to initialization function If pPipelineLibrary passed to this call - same pipeline library must be passed to initialization function Pipeline build status can be retrieved using xefgSwapChainGetPipelineBuildStatus. | |
| 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 | 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. The application should call xefgSwapChainD3D12GetSwapChainPtr to retrieve the actual IDXGISwapChain handle. | |
| 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. The application should call xefgSwapChainD3D12GetSwapChainPtr to retrieve the actual IDXGISwapChain handle. | |
| 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 application. | |
| 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 presented. | |
| 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. This API needs to be called before presenting a frame. The descriptor heap must be a D3D12_DESCRIPTOR_HEAP_TYPE_CBV_SRV_UAV. | |
| 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. | |
Initialization parameters. Optional external allocations are only available for the internal XeSS-FG resources, the Swap Chain API resources will still be managed by the API.
Contains all fields needed when providing a resource to the library, describing its state, lifetime, range and so on.