vulkan: add handle type for arbitrary vulkan handles
authorMatthew Waters <matthew@centricular.com>
Tue, 5 Nov 2019 22:29:51 +0000 (09:29 +1100)
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Thu, 7 Nov 2019 20:01:57 +0000 (20:01 +0000)
commit212b313e2960bd81c81742406356b51531ef515a
treece28ddf4bff700babc115485bd3d940e5f5cd454
parent66244e934249c04eaba2fab7d64f51ececc0ae32
vulkan: add handle type for arbitrary vulkan handles

Serve two purposes:
1. refcounting of vulkan handles with associated destruction.  When
   combined with the trash list, the user can ensure destruction at
   the correct time according to the vulkan rules.
2. avoids polluting our API with 32-bit vs 64-bit integer/pointers
   differences as exposed through the vulkan API.  on 32-bit, vulkan
   non-dispatchable handles are 64-bit integers and on 64-bit, they
   are pointers.
gst-libs/gst/vulkan/gstvkhandle.c [new file with mode: 0644]
gst-libs/gst/vulkan/gstvkhandle.h [new file with mode: 0644]
gst-libs/gst/vulkan/meson.build
gst-libs/gst/vulkan/vulkan.h
gst-libs/gst/vulkan/vulkan_fwd.h