Files
gtk/gdk/win32/gdkd3d12textureprivate.h
Benjamin Otte 595294b8f4 gpu: Add D3D12 texture support to GL renderer
Add a gdk_d3d12_texture_import_gl() function to match the EGL import
behavior.

And then use it in the import code.

What makes this a bit awkward is that we need to not just shuffle a
tex_id but also a mem_id around, but oh well...
2024-11-07 22:16:37 +01:00

22 lines
955 B
C

#pragma once
#include "gdkd3d12texture.h"
#include "gdkd3d12texturebuilder.h"
G_BEGIN_DECLS
GdkTexture * gdk_d3d12_texture_new_from_builder (GdkD3D12TextureBuilder *builder,
GDestroyNotify destroy,
gpointer data,
GError **error);
HANDLE gdk_d3d12_texture_get_resource_handle (GdkD3D12Texture *self);
guint gdk_d3d12_texture_import_gl (GdkD3D12Texture *self,
GdkGLContext *context,
guint *out_mem_id);
G_END_DECLS