Monado OpenXR Runtime
d3d_d3d12_allocator.h File Reference

Header for D3D12-backed image buffer allocator factory function. More...

#include "xrt/xrt_compositor.h"
#include <d3d12.h>
Include dependency graph for d3d_d3d12_allocator.h:

Go to the source code of this file.

Functions

struct xrt_image_native_allocatord3d12_allocator_create (ID3D12Device *device)
 Create a XINA that allocates D3D12 textures. More...
 

Detailed Description

Header for D3D12-backed image buffer allocator factory function.

Author
Rylie Pavlik rylie.nosp@m..pav.nosp@m.lik@c.nosp@m.olla.nosp@m.bora..nosp@m.com
Fernando Velazquez Innella finne.nosp@m.lla@.nosp@m.magic.nosp@m.leap.nosp@m..com

Function Documentation

◆ d3d12_allocator_create()

struct xrt_image_native_allocator * d3d12_allocator_create ( ID3D12Device *  device)

Create a XINA that allocates D3D12 textures.

Parameters
deviceA device to allocate the textures with. Be sure it will not be used from other threads while this allocator allocates.
Returns
struct xrt_image_native_allocator*