| 1 | #pragma once |
| 2 | |
| 3 | #include <windows.h> |
| 4 | |
| 5 | #include "gdkd3d12texture.h" |
| 6 | |
| 7 | #include "gdkd3d12texturebuilder.h" |
| 8 | |
| 9 | G_BEGIN_DECLS |
| 10 | |
| 11 | GdkTexture * gdk_d3d12_texture_new_from_builder (GdkD3D12TextureBuilder *builder, |
| 12 | GDestroyNotify destroy, |
| 13 | gpointer data, |
| 14 | GError **error); |
| 15 | |
| 16 | ID3D12Resource * gdk_d3d12_texture_get_resource (GdkD3D12Texture *self); |
| 17 | HANDLE gdk_d3d12_texture_get_resource_handle (GdkD3D12Texture *self); |
| 18 | ID3D12Fence * gdk_d3d12_texture_get_fence (GdkD3D12Texture *self); |
| 19 | HANDLE gdk_d3d12_texture_get_fence_handle (GdkD3D12Texture *self); |
| 20 | guint64 gdk_d3d12_texture_get_fence_wait (GdkD3D12Texture *self); |
| 21 | |
| 22 | guint gdk_d3d12_texture_import_gl (GdkD3D12Texture *self, |
| 23 | GdkGLContext *context, |
| 24 | guint *out_mem_id, |
| 25 | guint *out_semaphore_id); |
| 26 | |
| 27 | G_END_DECLS |
| 28 |