gstreamer_vulkan_wayland/lib.rs
1// Copyright (C) 2020 Sebastian Dröge <sebastian@centricular.com>
2//
3// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
4// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
5// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
6// option. This file may not be copied, modified, or distributed
7// except according to those terms.
8
9#![cfg_attr(docsrs, feature(doc_cfg))]
10#![allow(clippy::missing_safety_doc)]
11
12pub use ffi;
13pub use gst_vulkan;
14
15macro_rules! assert_initialized_main_thread {
16    () => {
17        if !gst::INITIALIZED.load(std::sync::atomic::Ordering::SeqCst) {
18            gst::assert_initialized();
19        }
20    };
21}
22
23mod auto;
24pub use auto::*;
25
26mod vulkan_display_wayland;