1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
// This file was generated by gir (https://github.com/gtk-rs/gir)
// from gir-files (https://github.com/gtk-rs/gir-files)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git)
// DO NOT EDIT
use crate::{VulkanCommandPool, ffi};
use glib::{prelude::*, translate::*};
glib::wrapper! {
#[doc(alias = "GstVulkanOperation")]
pub struct VulkanOperation(Object<ffi::GstVulkanOperation, ffi::GstVulkanOperationClass>) @extends gst::Object;
match fn {
type_ => || ffi::gst_vulkan_operation_get_type(),
}
}
impl VulkanOperation {
pub const NONE: Option<&'static VulkanOperation> = None;
#[doc(alias = "gst_vulkan_operation_new")]
pub fn new(cmd_pool: &impl IsA<VulkanCommandPool>) -> VulkanOperation {
skip_assert_initialized!();
unsafe {
from_glib_full(ffi::gst_vulkan_operation_new(
cmd_pool.as_ref().to_glib_none().0,
))
}
}
}
unsafe impl Send for VulkanOperation {}
unsafe impl Sync for VulkanOperation {}
pub trait VulkanOperationExt: IsA<VulkanOperation> + 'static {
#[doc(alias = "gst_vulkan_operation_add_dependency_frame")]
fn add_dependency_frame(
&self,
frame: &gst::Buffer,
wait_stage: u64,
signal_stage: u64,
) -> bool {
unsafe {
from_glib(ffi::gst_vulkan_operation_add_dependency_frame(
self.as_ref().to_glib_none().0,
frame.to_glib_none().0,
wait_stage,
signal_stage,
))
}
}
//#[doc(alias = "gst_vulkan_operation_add_extra_image_barriers")]
//fn add_extra_image_barriers(&self, extra_barriers: /*Unknown conversion*//*Unimplemented*/Array TypeId { ns_id: 0, id: 25 }) {
// unsafe { TODO: call ffi:gst_vulkan_operation_add_extra_image_barriers() }
//}
//#[doc(alias = "gst_vulkan_operation_add_frame_barrier")]
//fn add_frame_barrier(&self, frame: &gst::Buffer, src_stage: u64, dst_stage: u64, new_access: u64, new_layout: /*Ignored*/&vulkan::ImageLayout, new_queue: Option<&impl IsA<VulkanQueue>>) -> bool {
// unsafe { TODO: call ffi:gst_vulkan_operation_add_frame_barrier() }
//}
//#[cfg(feature = "v1_26")]
//#[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
//#[doc(alias = "gst_vulkan_operation_begin_query")]
//fn begin_query(&self, base: /*Ignored*/&mut vulkan::BaseInStructure, id: u32) -> bool {
// unsafe { TODO: call ffi:gst_vulkan_operation_begin_query() }
//}
#[doc(alias = "gst_vulkan_operation_discard_dependencies")]
fn discard_dependencies(&self) {
unsafe {
ffi::gst_vulkan_operation_discard_dependencies(self.as_ref().to_glib_none().0);
}
}
//#[doc(alias = "gst_vulkan_operation_enable_query")]
//fn enable_query(&self, query_type: u32, n_queries: u32, pnext: /*Unimplemented*/Option<Basic: Pointer>) -> Result<(), glib::Error> {
// unsafe { TODO: call ffi:gst_vulkan_operation_enable_query() }
//}
#[doc(alias = "gst_vulkan_operation_end_query")]
fn end_query(&self, id: u32) -> bool {
unsafe {
from_glib(ffi::gst_vulkan_operation_end_query(
self.as_ref().to_glib_none().0,
id,
))
}
}
//#[doc(alias = "gst_vulkan_operation_get_query")]
//#[doc(alias = "get_query")]
//fn query(&self, data: /*Unimplemented*/&mut Option<Basic: Pointer>) -> Result<(), glib::Error> {
// unsafe { TODO: call ffi:gst_vulkan_operation_get_query() }
//}
//#[doc(alias = "gst_vulkan_operation_new_extra_image_barriers")]
//fn new_extra_image_barriers(&self) -> /*Unknown conversion*//*Unimplemented*/Array TypeId { ns_id: 0, id: 25 } {
// unsafe { TODO: call ffi:gst_vulkan_operation_new_extra_image_barriers() }
//}
//#[doc(alias = "gst_vulkan_operation_pipeline_barrier2")]
//fn pipeline_barrier2(&self, dependency_info: /*Unimplemented*/Option<Basic: Pointer>) -> bool {
// unsafe { TODO: call ffi:gst_vulkan_operation_pipeline_barrier2() }
//}
#[doc(alias = "gst_vulkan_operation_reset")]
fn reset(&self) {
unsafe {
ffi::gst_vulkan_operation_reset(self.as_ref().to_glib_none().0);
}
}
//#[doc(alias = "gst_vulkan_operation_retrieve_image_barriers")]
//fn retrieve_image_barriers(&self) -> /*Unknown conversion*//*Unimplemented*/Array TypeId { ns_id: 0, id: 25 } {
// unsafe { TODO: call ffi:gst_vulkan_operation_retrieve_image_barriers() }
//}
//#[doc(alias = "gst_vulkan_operation_update_frame")]
//fn update_frame(&self, frame: &gst::Buffer, dst_stage: u64, new_access: u64, new_layout: /*Ignored*/&vulkan::ImageLayout, new_queue: Option<&impl IsA<VulkanQueue>>) {
// unsafe { TODO: call ffi:gst_vulkan_operation_update_frame() }
//}
#[doc(alias = "gst_vulkan_operation_use_sync2")]
fn use_sync2(&self) -> bool {
unsafe {
from_glib(ffi::gst_vulkan_operation_use_sync2(
self.as_ref().to_glib_none().0,
))
}
}
#[doc(alias = "gst_vulkan_operation_wait")]
fn wait(&self) -> bool {
unsafe {
from_glib(ffi::gst_vulkan_operation_wait(
self.as_ref().to_glib_none().0,
))
}
}
#[doc(alias = "command-pool")]
fn command_pool(&self) -> Option<VulkanCommandPool> {
ObjectExt::property(self.as_ref(), "command-pool")
}
}
impl<O: IsA<VulkanOperation>> VulkanOperationExt for O {}