Varjo Native SDK
Varjo_d3d12.h
Go to the documentation of this file.
1 // Copyright 2020 Varjo Technologies Oy. All rights reserved.
2 
3 #ifndef VARJO_D3D12_H
4 #define VARJO_D3D12_H
5 
6 #include <d3d12.h>
7 
8 #include "Varjo.h"
9 
10 #if defined __cplusplus
11 extern "C" {
12 #endif
13 
17 VARJO_API struct varjo_Texture varjo_FromD3D12Texture(struct ID3D12Resource* texture);
18 
22 VARJO_API struct ID3D12Resource* varjo_ToD3D12Texture(struct varjo_Texture texture);
23 
24 #if defined __cplusplus
25 }
26 #endif
27 
28 #endif
Varjo.h
varjo_ToD3D12Texture
struct ID3D12Resource * varjo_ToD3D12Texture(struct varjo_Texture texture)
Converts a Varjo texture to Direct3D 12 texture.
varjo_FromD3D12Texture
struct varjo_Texture varjo_FromD3D12Texture(struct ID3D12Resource *texture)
Converts a Direct3D 12 texture to varjo_Texture.
varjo_Texture
API-agnostic texture handle.
Definition: Varjo_types.h:478