Monado OpenXR Runtime
d3d_d3d11_allocator.h File Reference

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

#include "xrt/xrt_compositor.h"
#include <d3d11.h>
Include dependency graph for d3d_d3d11_allocator.h:

Go to the source code of this file.

Functions

struct xrt_image_native_allocatord3d11_allocator_create (ID3D11Device *device)
 Create a XINA that allocates D3D11 textures. More...
 

Detailed Description

Header for D3D11-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

Function Documentation

◆ d3d11_allocator_create()

struct xrt_image_native_allocator * d3d11_allocator_create ( ID3D11Device *  device)

Create a XINA that allocates D3D11 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*

References U_ZERO.