Created
February 8, 2020 21:20
-
-
Save cwfitzgerald/876a826c94b91b43e191c1f0bbdd027a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* automatically generated by rust-bindgen */ | |
#[allow(non_snake_case, non_camel_case_types, non_upper_case_globals)] | |
pub mod root { | |
#[repr(C)] | |
pub struct __BindgenUnionField<T>(::core::marker::PhantomData<T>); | |
impl<T> __BindgenUnionField<T> { | |
#[inline] | |
pub const fn new() -> Self { | |
__BindgenUnionField(::core::marker::PhantomData) | |
} | |
#[inline] | |
pub unsafe fn as_ref(&self) -> &T { | |
::core::mem::transmute(self) | |
} | |
#[inline] | |
pub unsafe fn as_mut(&mut self) -> &mut T { | |
::core::mem::transmute(self) | |
} | |
} | |
impl<T> ::core::default::Default for __BindgenUnionField<T> { | |
#[inline] | |
fn default() -> Self { | |
Self::new() | |
} | |
} | |
impl<T> ::core::clone::Clone for __BindgenUnionField<T> { | |
#[inline] | |
fn clone(&self) -> Self { | |
Self::new() | |
} | |
} | |
impl<T> ::core::marker::Copy for __BindgenUnionField<T> {} | |
impl<T> ::core::fmt::Debug for __BindgenUnionField<T> { | |
fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { | |
fmt.write_str("__BindgenUnionField") | |
} | |
} | |
impl<T> ::core::hash::Hash for __BindgenUnionField<T> { | |
fn hash<H: ::core::hash::Hasher>(&self, _state: &mut H) {} | |
} | |
impl<T> ::core::cmp::PartialEq for __BindgenUnionField<T> { | |
fn eq(&self, _other: &__BindgenUnionField<T>) -> bool { | |
true | |
} | |
} | |
impl<T> ::core::cmp::Eq for __BindgenUnionField<T> {} | |
#[allow(unused_imports)] | |
use self::super::root; | |
pub mod rx { | |
#[allow(unused_imports)] | |
use self::super::super::root; | |
pub mod concepts { | |
#[allow(unused_imports)] | |
use self::super::super::super::root; | |
#[repr(C)] | |
#[derive(Debug)] | |
pub struct no_copy { | |
pub _address: u8, | |
} | |
#[test] | |
fn bindgen_test_layout_no_copy() { | |
assert_eq!( | |
::core::mem::size_of::<no_copy>(), | |
1usize, | |
concat!("Size of: ", stringify!(no_copy)) | |
); | |
assert_eq!( | |
::core::mem::align_of::<no_copy>(), | |
1usize, | |
concat!("Alignment of ", stringify!(no_copy)) | |
); | |
} | |
#[repr(C)] | |
#[derive(Debug)] | |
pub struct no_move { | |
pub _address: u8, | |
} | |
#[test] | |
fn bindgen_test_layout_no_move() { | |
assert_eq!( | |
::core::mem::size_of::<no_move>(), | |
1usize, | |
concat!("Size of: ", stringify!(no_move)) | |
); | |
assert_eq!( | |
::core::mem::align_of::<no_move>(), | |
1usize, | |
concat!("Alignment of ", stringify!(no_move)) | |
); | |
} | |
#[repr(C)] | |
pub struct interface__bindgen_vtable(::core::ffi::c_void); | |
#[repr(C)] | |
#[derive(Debug)] | |
pub struct interface { | |
pub vtable_: *const interface__bindgen_vtable, | |
pub __bindgen_padding_0: u64, | |
} | |
#[test] | |
fn bindgen_test_layout_interface() { | |
assert_eq!( | |
::core::mem::size_of::<interface>(), | |
16usize, | |
concat!("Size of: ", stringify!(interface)) | |
); | |
assert_eq!( | |
::core::mem::align_of::<interface>(), | |
8usize, | |
concat!("Alignment of ", stringify!(interface)) | |
); | |
} | |
} | |
pub mod traits { | |
#[allow(unused_imports)] | |
use self::super::super::super::root; | |
pub type conditional = u8; | |
} | |
pub mod utility { | |
#[allow(unused_imports)] | |
use self::super::super::super::root; | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct nat { | |
pub _address: u8, | |
} | |
#[test] | |
fn bindgen_test_layout_nat() { | |
assert_eq!( | |
::core::mem::size_of::<nat>(), | |
1usize, | |
concat!("Size of: ", stringify!(nat)) | |
); | |
assert_eq!( | |
::core::mem::align_of::<nat>(), | |
1usize, | |
concat!("Alignment of ", stringify!(nat)) | |
); | |
} | |
} | |
pub mod memory { | |
#[allow(unused_imports)] | |
use self::super::super::super::root; | |
#[repr(C)] | |
#[derive(Debug)] | |
pub struct allocator { | |
pub _base: root::rx::concepts::interface, | |
} | |
extern "C" { | |
#[link_name = "\u{1}?k_alignment@allocator@memory@rx@@2_KB"] | |
pub static allocator_k_alignment: root::rx_size; | |
} | |
#[test] | |
fn bindgen_test_layout_allocator() { | |
assert_eq!( | |
::core::mem::size_of::<allocator>(), | |
16usize, | |
concat!("Size of: ", stringify!(allocator)) | |
); | |
assert_eq!( | |
::core::mem::align_of::<allocator>(), | |
8usize, | |
concat!("Alignment of ", stringify!(allocator)) | |
); | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct view { | |
pub owner: *mut root::rx::memory::allocator, | |
pub data: *mut root::rx_byte, | |
pub size: root::rx_size, | |
} | |
#[test] | |
fn bindgen_test_layout_view() { | |
assert_eq!( | |
::core::mem::size_of::<view>(), | |
24usize, | |
concat!("Size of: ", stringify!(view)) | |
); | |
assert_eq!( | |
::core::mem::align_of::<view>(), | |
8usize, | |
concat!("Alignment of ", stringify!(view)) | |
); | |
assert_eq!( | |
unsafe { &(*(::core::ptr::null::<view>())).owner as *const _ as usize }, | |
0usize, | |
concat!("Offset of field: ", stringify!(view), "::", stringify!(owner)) | |
); | |
assert_eq!( | |
unsafe { &(*(::core::ptr::null::<view>())).data as *const _ as usize }, | |
8usize, | |
concat!("Offset of field: ", stringify!(view), "::", stringify!(data)) | |
); | |
assert_eq!( | |
unsafe { &(*(::core::ptr::null::<view>())).size as *const _ as usize }, | |
16usize, | |
concat!("Offset of field: ", stringify!(view), "::", stringify!(size)) | |
); | |
} | |
#[repr(C)] | |
#[derive(Debug)] | |
pub struct bump_point_allocator { | |
pub _base: root::rx::memory::allocator, | |
pub m_size: root::rx_size, | |
pub m_data: *mut root::rx_byte, | |
pub m_lock: root::rx::concurrency::spin_lock, | |
pub m_this_point: *mut root::rx_byte, | |
pub m_last_point: *mut root::rx_byte, | |
} | |
#[test] | |
fn bindgen_test_layout_bump_point_allocator() { | |
assert_eq!( | |
::core::mem::size_of::<bump_point_allocator>(), | |
56usize, | |
concat!("Size of: ", stringify!(bump_point_allocator)) | |
); | |
assert_eq!( | |
::core::mem::align_of::<bump_point_allocator>(), | |
8usize, | |
concat!("Alignment of ", stringify!(bump_point_allocator)) | |
); | |
assert_eq!( | |
unsafe { &(*(::core::ptr::null::<bump_point_allocator>())).m_size as *const _ as usize }, | |
16usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(bump_point_allocator), | |
"::", | |
stringify!(m_size) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::core::ptr::null::<bump_point_allocator>())).m_data as *const _ as usize }, | |
24usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(bump_point_allocator), | |
"::", | |
stringify!(m_data) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::core::ptr::null::<bump_point_allocator>())).m_lock as *const _ as usize }, | |
32usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(bump_point_allocator), | |
"::", | |
stringify!(m_lock) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::core::ptr::null::<bump_point_allocator>())).m_this_point as *const _ as usize }, | |
40usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(bump_point_allocator), | |
"::", | |
stringify!(m_this_point) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::core::ptr::null::<bump_point_allocator>())).m_last_point as *const _ as usize }, | |
48usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(bump_point_allocator), | |
"::", | |
stringify!(m_last_point) | |
) | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}?reset@bump_point_allocator@memory@rx@@QEAAXXZ"] | |
pub fn bump_point_allocator_reset(this: *mut root::rx::memory::bump_point_allocator); | |
} | |
extern "C" { | |
#[link_name = "\u{1}?used@bump_point_allocator@memory@rx@@QEBA_KXZ"] | |
pub fn bump_point_allocator_used(this: *const root::rx::memory::bump_point_allocator) -> root::rx_size; | |
} | |
extern "C" { | |
#[link_name = "\u{1}?size@bump_point_allocator@memory@rx@@QEBA_KXZ"] | |
pub fn bump_point_allocator_size(this: *const root::rx::memory::bump_point_allocator) -> root::rx_size; | |
} | |
extern "C" { | |
#[link_name = "\u{1}?available@bump_point_allocator@memory@rx@@QEBA_KXZ"] | |
pub fn bump_point_allocator_available( | |
this: *const root::rx::memory::bump_point_allocator, | |
) -> root::rx_size; | |
} | |
extern "C" { | |
#[link_name = "\u{1}??0bump_point_allocator@memory@rx@@QEAA@PEAE_K@Z"] | |
pub fn bump_point_allocator_bump_point_allocator( | |
this: *mut root::rx::memory::bump_point_allocator, | |
_memory: *mut root::rx_byte, | |
_size: root::rx_size, | |
); | |
} | |
impl bump_point_allocator { | |
#[inline] | |
pub unsafe fn reset(&mut self) { | |
bump_point_allocator_reset(self) | |
} | |
#[inline] | |
pub unsafe fn used(&self) -> root::rx_size { | |
bump_point_allocator_used(self) | |
} | |
#[inline] | |
pub unsafe fn size(&self) -> root::rx_size { | |
bump_point_allocator_size(self) | |
} | |
#[inline] | |
pub unsafe fn available(&self) -> root::rx_size { | |
bump_point_allocator_available(self) | |
} | |
#[inline] | |
pub unsafe fn new(_memory: *mut root::rx_byte, _size: root::rx_size) -> Self { | |
let mut __bindgen_tmp = ::core::mem::MaybeUninit::uninit(); | |
bump_point_allocator_bump_point_allocator(__bindgen_tmp.as_mut_ptr(), _memory, _size); | |
__bindgen_tmp.assume_init() | |
} | |
} | |
extern "C" { | |
#[link_name = "\u{1}?allocate@bump_point_allocator@memory@rx@@UEAAPEAE_K@Z"] | |
pub fn bump_point_allocator_allocate( | |
this: *mut ::core::ffi::c_void, | |
_size: root::rx_size, | |
) -> *mut root::rx_byte; | |
} | |
extern "C" { | |
#[link_name = "\u{1}?reallocate@bump_point_allocator@memory@rx@@UEAAPEAEPEAE_K@Z"] | |
pub fn bump_point_allocator_reallocate( | |
this: *mut ::core::ffi::c_void, | |
_data: *mut root::rx_byte, | |
_size: root::rx_size, | |
) -> *mut root::rx_byte; | |
} | |
extern "C" { | |
#[link_name = "\u{1}?deallocate@bump_point_allocator@memory@rx@@UEAAXPEAE@Z"] | |
pub fn bump_point_allocator_deallocate(this: *mut ::core::ffi::c_void, data: *mut root::rx_byte); | |
} | |
} | |
pub mod concurrency { | |
#[allow(unused_imports)] | |
use self::super::super::super::root; | |
#[repr(C)] | |
#[repr(align(1))] | |
#[derive(Debug)] | |
pub struct spin_lock { | |
pub _bindgen_opaque_blob: u8, | |
} | |
#[test] | |
fn bindgen_test_layout_spin_lock() { | |
assert_eq!( | |
::core::mem::size_of::<spin_lock>(), | |
1usize, | |
concat!("Size of: ", stringify!(spin_lock)) | |
); | |
assert_eq!( | |
::core::mem::align_of::<spin_lock>(), | |
1usize, | |
concat!("Alignment of ", stringify!(spin_lock)) | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}?lock@spin_lock@concurrency@rx@@QEAAXXZ"] | |
pub fn spin_lock_lock(this: *mut root::rx::concurrency::spin_lock); | |
} | |
extern "C" { | |
#[link_name = "\u{1}?unlock@spin_lock@concurrency@rx@@QEAAXXZ"] | |
pub fn spin_lock_unlock(this: *mut root::rx::concurrency::spin_lock); | |
} | |
impl spin_lock { | |
#[inline] | |
pub unsafe fn lock(&mut self) { | |
spin_lock_lock(self) | |
} | |
#[inline] | |
pub unsafe fn unlock(&mut self) { | |
spin_lock_unlock(self) | |
} | |
} | |
} | |
#[repr(C)] | |
#[derive(Debug)] | |
pub struct vector<T> { | |
pub m_allocator: *mut root::rx::memory::allocator, | |
pub m_data: *mut T, | |
pub m_size: root::rx_size, | |
pub m_capacity: root::rx_size, | |
pub _phantom_0: ::core::marker::PhantomData<::core::cell::UnsafeCell<T>>, | |
} | |
#[repr(C)] | |
#[derive(Debug)] | |
pub struct string { | |
pub m_allocator: *mut root::rx::memory::allocator, | |
pub m_data: *mut ::std::os::raw::c_char, | |
pub m_last: *mut ::std::os::raw::c_char, | |
pub m_capacity: *mut ::std::os::raw::c_char, | |
pub m_buffer: [::std::os::raw::c_char; 16usize], | |
} | |
extern "C" { | |
#[link_name = "\u{1}?k_npos@string@rx@@2_KB"] | |
pub static string_k_npos: root::rx_size; | |
} | |
extern "C" { | |
#[link_name = "\u{1}?k_small_string@string@rx@@2_KB"] | |
pub static string_k_small_string: root::rx_size; | |
} | |
#[test] | |
fn bindgen_test_layout_string() { | |
assert_eq!( | |
::core::mem::size_of::<string>(), | |
48usize, | |
concat!("Size of: ", stringify!(string)) | |
); | |
assert_eq!( | |
::core::mem::align_of::<string>(), | |
8usize, | |
concat!("Alignment of ", stringify!(string)) | |
); | |
assert_eq!( | |
unsafe { &(*(::core::ptr::null::<string>())).m_allocator as *const _ as usize }, | |
0usize, | |
concat!("Offset of field: ", stringify!(string), "::", stringify!(m_allocator)) | |
); | |
assert_eq!( | |
unsafe { &(*(::core::ptr::null::<string>())).m_data as *const _ as usize }, | |
8usize, | |
concat!("Offset of field: ", stringify!(string), "::", stringify!(m_data)) | |
); | |
assert_eq!( | |
unsafe { &(*(::core::ptr::null::<string>())).m_last as *const _ as usize }, | |
16usize, | |
concat!("Offset of field: ", stringify!(string), "::", stringify!(m_last)) | |
); | |
assert_eq!( | |
unsafe { &(*(::core::ptr::null::<string>())).m_capacity as *const _ as usize }, | |
24usize, | |
concat!("Offset of field: ", stringify!(string), "::", stringify!(m_capacity)) | |
); | |
assert_eq!( | |
unsafe { &(*(::core::ptr::null::<string>())).m_buffer as *const _ as usize }, | |
32usize, | |
concat!("Offset of field: ", stringify!(string), "::", stringify!(m_buffer)) | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}?reserve@string@rx@@QEAAX_K@Z"] | |
pub fn string_reserve(this: *mut root::rx::string, _size: root::rx_size); | |
} | |
extern "C" { | |
#[link_name = "\u{1}?resize@string@rx@@QEAAX_K@Z"] | |
pub fn string_resize(this: *mut root::rx::string, _size: root::rx_size); | |
} | |
extern "C" { | |
#[link_name = "\u{1}?find_first_of@string@rx@@QEBA_KH@Z"] | |
pub fn string_find_first_of(this: *const root::rx::string, _ch: ::std::os::raw::c_int) -> root::rx_size; | |
} | |
extern "C" { | |
#[link_name = "\u{1}?find_first_of@string@rx@@QEBA_KPEBD@Z"] | |
pub fn string_find_first_of1( | |
this: *const root::rx::string, | |
_contents: *const ::std::os::raw::c_char, | |
) -> root::rx_size; | |
} | |
extern "C" { | |
#[link_name = "\u{1}?find_first_of@string@rx@@QEBA_KAEBU12@@Z"] | |
pub fn string_find_first_of2( | |
this: *const root::rx::string, | |
_contents: *const root::rx::string, | |
) -> root::rx_size; | |
} | |
extern "C" { | |
#[link_name = "\u{1}?find_last_of@string@rx@@QEBA_KH@Z"] | |
pub fn string_find_last_of(this: *const root::rx::string, _ch: ::std::os::raw::c_int) -> root::rx_size; | |
} | |
extern "C" { | |
#[link_name = "\u{1}?find_last_of@string@rx@@QEBA_KPEBD@Z"] | |
pub fn string_find_last_of1( | |
this: *const root::rx::string, | |
_contents: *const ::std::os::raw::c_char, | |
) -> root::rx_size; | |
} | |
extern "C" { | |
#[link_name = "\u{1}?find_last_of@string@rx@@QEBA_KAEBU12@@Z"] | |
pub fn string_find_last_of2( | |
this: *const root::rx::string, | |
_contents: *const root::rx::string, | |
) -> root::rx_size; | |
} | |
extern "C" { | |
#[link_name = "\u{1}?size@string@rx@@QEBA_KXZ"] | |
pub fn string_size(this: *const root::rx::string) -> root::rx_size; | |
} | |
extern "C" { | |
#[link_name = "\u{1}?capacity@string@rx@@QEBA_KXZ"] | |
pub fn string_capacity(this: *const root::rx::string) -> root::rx_size; | |
} | |
extern "C" { | |
#[link_name = "\u{1}?is_empty@string@rx@@QEBA_NXZ"] | |
pub fn string_is_empty(this: *const root::rx::string) -> bool; | |
} | |
extern "C" { | |
#[link_name = "\u{1}?clear@string@rx@@QEAAXXZ"] | |
pub fn string_clear(this: *mut root::rx::string); | |
} | |
extern "C" { | |
#[link_name = "\u{1}?append@string@rx@@QEAAAEAU12@PEBD0@Z"] | |
pub fn string_append( | |
this: *mut root::rx::string, | |
_first: *const ::std::os::raw::c_char, | |
_last: *const ::std::os::raw::c_char, | |
) -> *mut root::rx::string; | |
} | |
extern "C" { | |
#[link_name = "\u{1}?append@string@rx@@QEAAAEAU12@PEBD_K@Z"] | |
pub fn string_append1( | |
this: *mut root::rx::string, | |
_contents: *const ::std::os::raw::c_char, | |
_size: root::rx_size, | |
) -> *mut root::rx::string; | |
} | |
extern "C" { | |
#[link_name = "\u{1}?append@string@rx@@QEAAAEAU12@PEBD@Z"] | |
pub fn string_append2( | |
this: *mut root::rx::string, | |
_contents: *const ::std::os::raw::c_char, | |
) -> *mut root::rx::string; | |
} | |
extern "C" { | |
#[link_name = "\u{1}?append@string@rx@@QEAAAEAU12@AEBU12@@Z"] | |
pub fn string_append3( | |
this: *mut root::rx::string, | |
_contents: *const root::rx::string, | |
) -> *mut root::rx::string; | |
} | |
extern "C" { | |
#[link_name = "\u{1}?append@string@rx@@QEAAAEAU12@D@Z"] | |
pub fn string_append4(this: *mut root::rx::string, _ch: ::std::os::raw::c_char) -> *mut root::rx::string; | |
} | |
extern "C" { | |
#[link_name = "\u{1}?insert_at@string@rx@@QEAAX_KPEBD0@Z"] | |
pub fn string_insert_at( | |
this: *mut root::rx::string, | |
_position: root::rx_size, | |
_contents: *const ::std::os::raw::c_char, | |
_size: root::rx_size, | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}?insert_at@string@rx@@QEAAX_KPEBD@Z"] | |
pub fn string_insert_at1( | |
this: *mut root::rx::string, | |
_position: root::rx_size, | |
_contents: *const ::std::os::raw::c_char, | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}?insert_at@string@rx@@QEAAX_KAEBU12@@Z"] | |
pub fn string_insert_at2( | |
this: *mut root::rx::string, | |
_position: root::rx_size, | |
_contents: *const root::rx::string, | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}?lstrip@string@rx@@QEBA?AU12@PEBD@Z"] | |
pub fn string_lstrip( | |
this: *const root::rx::string, | |
_set: *const ::std::os::raw::c_char, | |
) -> root::rx::string; | |
} | |
extern "C" { | |
#[link_name = "\u{1}?rstrip@string@rx@@QEBA?AU12@PEBD@Z"] | |
pub fn string_rstrip( | |
this: *const root::rx::string, | |
_set: *const ::std::os::raw::c_char, | |
) -> root::rx::string; | |
} | |
extern "C" { | |
#[link_name = "\u{1}?split@string@rx@@QEBA?AU?$vector@Ustring@rx@@@2@PEAUallocator@memory@2@H_K@Z"] | |
pub fn string_split( | |
this: *const root::rx::string, | |
_allocator: *mut root::rx::memory::allocator, | |
_ch: ::std::os::raw::c_int, | |
_count: root::rx_size, | |
) -> root::rx::vector<root::rx::string>; | |
} | |
extern "C" { | |
#[link_name = "\u{1}?split@string@rx@@QEBA?AU?$vector@Ustring@rx@@@2@H_K@Z"] | |
pub fn string_split1( | |
this: *const root::rx::string, | |
_ch: ::std::os::raw::c_int, | |
_count: root::rx_size, | |
) -> root::rx::vector<root::rx::string>; | |
} | |
extern "C" { | |
#[link_name = "\u{1}?substring@string@rx@@QEBA?AU12@_K0@Z"] | |
pub fn string_substring( | |
this: *const root::rx::string, | |
_offset: root::rx_size, | |
_length: root::rx_size, | |
) -> root::rx::string; | |
} | |
extern "C" { | |
#[link_name = "\u{1}?scan@string@rx@@QEBA_KPEBDZZ"] | |
pub fn string_scan( | |
this: *const root::rx::string, | |
_scan_format: *const ::std::os::raw::c_char, | |
... | |
) -> root::rx_size; | |
} | |
extern "C" { | |
#[link_name = "\u{1}?pop_back@string@rx@@QEAADXZ"] | |
pub fn string_pop_back(this: *mut root::rx::string) -> ::std::os::raw::c_char; | |
} | |
extern "C" { | |
#[link_name = "\u{1}?erase@string@rx@@QEAAX_K0@Z"] | |
pub fn string_erase(this: *mut root::rx::string, _begin: root::rx_size, _end: root::rx_size); | |
} | |
extern "C" { | |
#[link_name = "\u{1}?first@string@rx@@QEAAAEADXZ"] | |
pub fn string_first(this: *mut root::rx::string) -> *mut ::std::os::raw::c_char; | |
} | |
extern "C" { | |
#[link_name = "\u{1}?first@string@rx@@QEBAAEBDXZ"] | |
pub fn string_first1(this: *const root::rx::string) -> *const ::std::os::raw::c_char; | |
} | |
extern "C" { | |
#[link_name = "\u{1}?last@string@rx@@QEAAAEADXZ"] | |
pub fn string_last(this: *mut root::rx::string) -> *mut ::std::os::raw::c_char; | |
} | |
extern "C" { | |
#[link_name = "\u{1}?last@string@rx@@QEBAAEBDXZ"] | |
pub fn string_last1(this: *const root::rx::string) -> *const ::std::os::raw::c_char; | |
} | |
extern "C" { | |
#[link_name = "\u{1}?data@string@rx@@QEAAPEADXZ"] | |
pub fn string_data(this: *mut root::rx::string) -> *mut ::std::os::raw::c_char; | |
} | |
extern "C" { | |
#[link_name = "\u{1}?data@string@rx@@QEBAPEBDXZ"] | |
pub fn string_data1(this: *const root::rx::string) -> *const ::std::os::raw::c_char; | |
} | |
extern "C" { | |
#[link_name = "\u{1}?human_size_format@string@rx@@SA?AU12@_K@Z"] | |
pub fn string_human_size_format(_size: root::rx_size) -> root::rx::string; | |
} | |
extern "C" { | |
#[link_name = "\u{1}?begins_with@string@rx@@QEBA_NPEBD@Z"] | |
pub fn string_begins_with(this: *const root::rx::string, _prefix: *const ::std::os::raw::c_char) -> bool; | |
} | |
extern "C" { | |
#[link_name = "\u{1}?begins_with@string@rx@@QEBA_NAEBU12@@Z"] | |
pub fn string_begins_with1(this: *const root::rx::string, _prefix: *const root::rx::string) -> bool; | |
} | |
extern "C" { | |
#[link_name = "\u{1}?ends_with@string@rx@@QEBA_NPEBD@Z"] | |
pub fn string_ends_with(this: *const root::rx::string, _suffix: *const ::std::os::raw::c_char) -> bool; | |
} | |
extern "C" { | |
#[link_name = "\u{1}?ends_with@string@rx@@QEBA_NAEBU12@@Z"] | |
pub fn string_ends_with1(this: *const root::rx::string, _suffix: *const root::rx::string) -> bool; | |
} | |
extern "C" { | |
#[link_name = "\u{1}?contains@string@rx@@QEBA_NPEBD@Z"] | |
pub fn string_contains(this: *const root::rx::string, _needle: *const ::std::os::raw::c_char) -> bool; | |
} | |
extern "C" { | |
#[link_name = "\u{1}?contains@string@rx@@QEBA_NAEBU12@@Z"] | |
pub fn string_contains1(this: *const root::rx::string, _needle: *const root::rx::string) -> bool; | |
} | |
extern "C" { | |
#[link_name = "\u{1}?hash@string@rx@@QEBA_KXZ"] | |
pub fn string_hash(this: *const root::rx::string) -> root::rx_size; | |
} | |
extern "C" { | |
#[link_name = "\u{1}?to_utf16@string@rx@@QEBA?AUwide_string@2@XZ"] | |
pub fn string_to_utf16(this: *const root::rx::string) -> root::rx::wide_string; | |
} | |
extern "C" { | |
#[link_name = "\u{1}?allocator@string@rx@@QEBAPEAU0memory@2@XZ"] | |
pub fn string_allocator(this: *const root::rx::string) -> *mut root::rx::memory::allocator; | |
} | |
extern "C" { | |
#[link_name = "\u{1}?disown@string@rx@@QEAA?AUview@memory@2@XZ"] | |
pub fn string_disown(this: *mut root::rx::string) -> root::rx::memory::view; | |
} | |
extern "C" { | |
#[link_name = "\u{1}??0string@rx@@QEAA@PEAUallocator@memory@1@@Z"] | |
pub fn string_string(this: *mut root::rx::string, _allocator: *mut root::rx::memory::allocator); | |
} | |
extern "C" { | |
#[link_name = "\u{1}??0string@rx@@QEAA@PEAUallocator@memory@1@AEBU01@@Z"] | |
pub fn string_string1( | |
this: *mut root::rx::string, | |
_allocator: *mut root::rx::memory::allocator, | |
_contents: *const root::rx::string, | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}??0string@rx@@QEAA@PEAUallocator@memory@1@PEBD@Z"] | |
pub fn string_string2( | |
this: *mut root::rx::string, | |
_allocator: *mut root::rx::memory::allocator, | |
_contents: *const ::std::os::raw::c_char, | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}??0string@rx@@QEAA@PEAUallocator@memory@1@PEBD_K@Z"] | |
pub fn string_string3( | |
this: *mut root::rx::string, | |
_allocator: *mut root::rx::memory::allocator, | |
_contents: *const ::std::os::raw::c_char, | |
_size: root::rx_size, | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}??0string@rx@@QEAA@PEAUallocator@memory@1@PEBD1@Z"] | |
pub fn string_string4( | |
this: *mut root::rx::string, | |
_allocator: *mut root::rx::memory::allocator, | |
_first: *const ::std::os::raw::c_char, | |
_last: *const ::std::os::raw::c_char, | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}??0string@rx@@QEAA@XZ"] | |
pub fn string_string5(this: *mut root::rx::string); | |
} | |
extern "C" { | |
#[link_name = "\u{1}??0string@rx@@QEAA@AEBU01@@Z"] | |
pub fn string_string6(this: *mut root::rx::string, _contents: *const root::rx::string); | |
} | |
extern "C" { | |
#[link_name = "\u{1}??0string@rx@@QEAA@$$QEAU01@@Z"] | |
pub fn string_string7(this: *mut root::rx::string, contents_: *mut root::rx::string); | |
} | |
extern "C" { | |
#[link_name = "\u{1}??0string@rx@@QEAA@PEBD@Z"] | |
pub fn string_string8(this: *mut root::rx::string, _contents: *const ::std::os::raw::c_char); | |
} | |
extern "C" { | |
#[link_name = "\u{1}??0string@rx@@QEAA@PEBD_K@Z"] | |
pub fn string_string9( | |
this: *mut root::rx::string, | |
_contents: *const ::std::os::raw::c_char, | |
_size: root::rx_size, | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}??0string@rx@@QEAA@PEBD0@Z"] | |
pub fn string_string10( | |
this: *mut root::rx::string, | |
_first: *const ::std::os::raw::c_char, | |
_last: *const ::std::os::raw::c_char, | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}??0string@rx@@QEAA@Uview@memory@1@@Z"] | |
pub fn string_string11(this: *mut root::rx::string, _view: root::rx::memory::view); | |
} | |
extern "C" { | |
#[link_name = "\u{1}??_Dstring@rx@@QEAAXXZ"] | |
pub fn string_string_destructor(this: *mut root::rx::string); | |
} | |
impl string { | |
#[inline] | |
pub unsafe fn reserve(&mut self, _size: root::rx_size) { | |
string_reserve(self, _size) | |
} | |
#[inline] | |
pub unsafe fn resize(&mut self, _size: root::rx_size) { | |
string_resize(self, _size) | |
} | |
#[inline] | |
pub unsafe fn find_first_of(&self, _ch: ::std::os::raw::c_int) -> root::rx_size { | |
string_find_first_of(self, _ch) | |
} | |
#[inline] | |
pub unsafe fn find_first_of1(&self, _contents: *const ::std::os::raw::c_char) -> root::rx_size { | |
string_find_first_of1(self, _contents) | |
} | |
#[inline] | |
pub unsafe fn find_first_of2(&self, _contents: *const root::rx::string) -> root::rx_size { | |
string_find_first_of2(self, _contents) | |
} | |
#[inline] | |
pub unsafe fn find_last_of(&self, _ch: ::std::os::raw::c_int) -> root::rx_size { | |
string_find_last_of(self, _ch) | |
} | |
#[inline] | |
pub unsafe fn find_last_of1(&self, _contents: *const ::std::os::raw::c_char) -> root::rx_size { | |
string_find_last_of1(self, _contents) | |
} | |
#[inline] | |
pub unsafe fn find_last_of2(&self, _contents: *const root::rx::string) -> root::rx_size { | |
string_find_last_of2(self, _contents) | |
} | |
#[inline] | |
pub unsafe fn size(&self) -> root::rx_size { | |
string_size(self) | |
} | |
#[inline] | |
pub unsafe fn capacity(&self) -> root::rx_size { | |
string_capacity(self) | |
} | |
#[inline] | |
pub unsafe fn is_empty(&self) -> bool { | |
string_is_empty(self) | |
} | |
#[inline] | |
pub unsafe fn clear(&mut self) { | |
string_clear(self) | |
} | |
#[inline] | |
pub unsafe fn append( | |
&mut self, | |
_first: *const ::std::os::raw::c_char, | |
_last: *const ::std::os::raw::c_char, | |
) -> *mut root::rx::string { | |
string_append(self, _first, _last) | |
} | |
#[inline] | |
pub unsafe fn append1( | |
&mut self, | |
_contents: *const ::std::os::raw::c_char, | |
_size: root::rx_size, | |
) -> *mut root::rx::string { | |
string_append1(self, _contents, _size) | |
} | |
#[inline] | |
pub unsafe fn append2(&mut self, _contents: *const ::std::os::raw::c_char) -> *mut root::rx::string { | |
string_append2(self, _contents) | |
} | |
#[inline] | |
pub unsafe fn append3(&mut self, _contents: *const root::rx::string) -> *mut root::rx::string { | |
string_append3(self, _contents) | |
} | |
#[inline] | |
pub unsafe fn append4(&mut self, _ch: ::std::os::raw::c_char) -> *mut root::rx::string { | |
string_append4(self, _ch) | |
} | |
#[inline] | |
pub unsafe fn insert_at( | |
&mut self, | |
_position: root::rx_size, | |
_contents: *const ::std::os::raw::c_char, | |
_size: root::rx_size, | |
) { | |
string_insert_at(self, _position, _contents, _size) | |
} | |
#[inline] | |
pub unsafe fn insert_at1(&mut self, _position: root::rx_size, _contents: *const ::std::os::raw::c_char) { | |
string_insert_at1(self, _position, _contents) | |
} | |
#[inline] | |
pub unsafe fn insert_at2(&mut self, _position: root::rx_size, _contents: *const root::rx::string) { | |
string_insert_at2(self, _position, _contents) | |
} | |
#[inline] | |
pub unsafe fn lstrip(&self, _set: *const ::std::os::raw::c_char) -> root::rx::string { | |
string_lstrip(self, _set) | |
} | |
#[inline] | |
pub unsafe fn rstrip(&self, _set: *const ::std::os::raw::c_char) -> root::rx::string { | |
string_rstrip(self, _set) | |
} | |
#[inline] | |
pub unsafe fn split( | |
&self, | |
_allocator: *mut root::rx::memory::allocator, | |
_ch: ::std::os::raw::c_int, | |
_count: root::rx_size, | |
) -> root::rx::vector<root::rx::string> { | |
string_split(self, _allocator, _ch, _count) | |
} | |
#[inline] | |
pub unsafe fn split1( | |
&self, | |
_ch: ::std::os::raw::c_int, | |
_count: root::rx_size, | |
) -> root::rx::vector<root::rx::string> { | |
string_split1(self, _ch, _count) | |
} | |
#[inline] | |
pub unsafe fn substring(&self, _offset: root::rx_size, _length: root::rx_size) -> root::rx::string { | |
string_substring(self, _offset, _length) | |
} | |
#[inline] | |
pub unsafe fn pop_back(&mut self) -> ::std::os::raw::c_char { | |
string_pop_back(self) | |
} | |
#[inline] | |
pub unsafe fn erase(&mut self, _begin: root::rx_size, _end: root::rx_size) { | |
string_erase(self, _begin, _end) | |
} | |
#[inline] | |
pub unsafe fn first(&mut self) -> *mut ::std::os::raw::c_char { | |
string_first(self) | |
} | |
#[inline] | |
pub unsafe fn first1(&self) -> *const ::std::os::raw::c_char { | |
string_first1(self) | |
} | |
#[inline] | |
pub unsafe fn last(&mut self) -> *mut ::std::os::raw::c_char { | |
string_last(self) | |
} | |
#[inline] | |
pub unsafe fn last1(&self) -> *const ::std::os::raw::c_char { | |
string_last1(self) | |
} | |
#[inline] | |
pub unsafe fn data(&mut self) -> *mut ::std::os::raw::c_char { | |
string_data(self) | |
} | |
#[inline] | |
pub unsafe fn data1(&self) -> *const ::std::os::raw::c_char { | |
string_data1(self) | |
} | |
#[inline] | |
pub unsafe fn human_size_format(_size: root::rx_size) -> root::rx::string { | |
string_human_size_format(_size) | |
} | |
#[inline] | |
pub unsafe fn begins_with(&self, _prefix: *const ::std::os::raw::c_char) -> bool { | |
string_begins_with(self, _prefix) | |
} | |
#[inline] | |
pub unsafe fn begins_with1(&self, _prefix: *const root::rx::string) -> bool { | |
string_begins_with1(self, _prefix) | |
} | |
#[inline] | |
pub unsafe fn ends_with(&self, _suffix: *const ::std::os::raw::c_char) -> bool { | |
string_ends_with(self, _suffix) | |
} | |
#[inline] | |
pub unsafe fn ends_with1(&self, _suffix: *const root::rx::string) -> bool { | |
string_ends_with1(self, _suffix) | |
} | |
#[inline] | |
pub unsafe fn contains(&self, _needle: *const ::std::os::raw::c_char) -> bool { | |
string_contains(self, _needle) | |
} | |
#[inline] | |
pub unsafe fn contains1(&self, _needle: *const root::rx::string) -> bool { | |
string_contains1(self, _needle) | |
} | |
#[inline] | |
pub unsafe fn hash(&self) -> root::rx_size { | |
string_hash(self) | |
} | |
#[inline] | |
pub unsafe fn to_utf16(&self) -> root::rx::wide_string { | |
string_to_utf16(self) | |
} | |
#[inline] | |
pub unsafe fn allocator(&self) -> *mut root::rx::memory::allocator { | |
string_allocator(self) | |
} | |
#[inline] | |
pub unsafe fn disown(&mut self) -> root::rx::memory::view { | |
string_disown(self) | |
} | |
#[inline] | |
pub unsafe fn new(_allocator: *mut root::rx::memory::allocator) -> Self { | |
let mut __bindgen_tmp = ::core::mem::MaybeUninit::uninit(); | |
string_string(__bindgen_tmp.as_mut_ptr(), _allocator); | |
__bindgen_tmp.assume_init() | |
} | |
#[inline] | |
pub unsafe fn new1( | |
_allocator: *mut root::rx::memory::allocator, | |
_contents: *const root::rx::string, | |
) -> Self { | |
let mut __bindgen_tmp = ::core::mem::MaybeUninit::uninit(); | |
string_string1(__bindgen_tmp.as_mut_ptr(), _allocator, _contents); | |
__bindgen_tmp.assume_init() | |
} | |
#[inline] | |
pub unsafe fn new2( | |
_allocator: *mut root::rx::memory::allocator, | |
_contents: *const ::std::os::raw::c_char, | |
) -> Self { | |
let mut __bindgen_tmp = ::core::mem::MaybeUninit::uninit(); | |
string_string2(__bindgen_tmp.as_mut_ptr(), _allocator, _contents); | |
__bindgen_tmp.assume_init() | |
} | |
#[inline] | |
pub unsafe fn new3( | |
_allocator: *mut root::rx::memory::allocator, | |
_contents: *const ::std::os::raw::c_char, | |
_size: root::rx_size, | |
) -> Self { | |
let mut __bindgen_tmp = ::core::mem::MaybeUninit::uninit(); | |
string_string3(__bindgen_tmp.as_mut_ptr(), _allocator, _contents, _size); | |
__bindgen_tmp.assume_init() | |
} | |
#[inline] | |
pub unsafe fn new4( | |
_allocator: *mut root::rx::memory::allocator, | |
_first: *const ::std::os::raw::c_char, | |
_last: *const ::std::os::raw::c_char, | |
) -> Self { | |
let mut __bindgen_tmp = ::core::mem::MaybeUninit::uninit(); | |
string_string4(__bindgen_tmp.as_mut_ptr(), _allocator, _first, _last); | |
__bindgen_tmp.assume_init() | |
} | |
#[inline] | |
pub unsafe fn new5() -> Self { | |
let mut __bindgen_tmp = ::core::mem::MaybeUninit::uninit(); | |
string_string5(__bindgen_tmp.as_mut_ptr()); | |
__bindgen_tmp.assume_init() | |
} | |
#[inline] | |
pub unsafe fn new6(_contents: *const root::rx::string) -> Self { | |
let mut __bindgen_tmp = ::core::mem::MaybeUninit::uninit(); | |
string_string6(__bindgen_tmp.as_mut_ptr(), _contents); | |
__bindgen_tmp.assume_init() | |
} | |
#[inline] | |
pub unsafe fn new7(contents_: *mut root::rx::string) -> Self { | |
let mut __bindgen_tmp = ::core::mem::MaybeUninit::uninit(); | |
string_string7(__bindgen_tmp.as_mut_ptr(), contents_); | |
__bindgen_tmp.assume_init() | |
} | |
#[inline] | |
pub unsafe fn new8(_contents: *const ::std::os::raw::c_char) -> Self { | |
let mut __bindgen_tmp = ::core::mem::MaybeUninit::uninit(); | |
string_string8(__bindgen_tmp.as_mut_ptr(), _contents); | |
__bindgen_tmp.assume_init() | |
} | |
#[inline] | |
pub unsafe fn new9(_contents: *const ::std::os::raw::c_char, _size: root::rx_size) -> Self { | |
let mut __bindgen_tmp = ::core::mem::MaybeUninit::uninit(); | |
string_string9(__bindgen_tmp.as_mut_ptr(), _contents, _size); | |
__bindgen_tmp.assume_init() | |
} | |
#[inline] | |
pub unsafe fn new10(_first: *const ::std::os::raw::c_char, _last: *const ::std::os::raw::c_char) -> Self { | |
let mut __bindgen_tmp = ::core::mem::MaybeUninit::uninit(); | |
string_string10(__bindgen_tmp.as_mut_ptr(), _first, _last); | |
__bindgen_tmp.assume_init() | |
} | |
#[inline] | |
pub unsafe fn new11(_view: root::rx::memory::view) -> Self { | |
let mut __bindgen_tmp = ::core::mem::MaybeUninit::uninit(); | |
string_string11(__bindgen_tmp.as_mut_ptr(), _view); | |
__bindgen_tmp.assume_init() | |
} | |
#[inline] | |
pub unsafe fn destruct(&mut self) { | |
string_string_destructor(self) | |
} | |
} | |
#[repr(C)] | |
#[derive(Debug)] | |
pub struct wide_string { | |
pub m_allocator: *mut root::rx::memory::allocator, | |
pub m_data: *mut root::rx_u16, | |
pub m_size: root::rx_size, | |
} | |
#[test] | |
fn bindgen_test_layout_wide_string() { | |
assert_eq!( | |
::core::mem::size_of::<wide_string>(), | |
24usize, | |
concat!("Size of: ", stringify!(wide_string)) | |
); | |
assert_eq!( | |
::core::mem::align_of::<wide_string>(), | |
8usize, | |
concat!("Alignment of ", stringify!(wide_string)) | |
); | |
assert_eq!( | |
unsafe { &(*(::core::ptr::null::<wide_string>())).m_allocator as *const _ as usize }, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(wide_string), | |
"::", | |
stringify!(m_allocator) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::core::ptr::null::<wide_string>())).m_data as *const _ as usize }, | |
8usize, | |
concat!("Offset of field: ", stringify!(wide_string), "::", stringify!(m_data)) | |
); | |
assert_eq!( | |
unsafe { &(*(::core::ptr::null::<wide_string>())).m_size as *const _ as usize }, | |
16usize, | |
concat!("Offset of field: ", stringify!(wide_string), "::", stringify!(m_size)) | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}?size@wide_string@rx@@QEBA_KXZ"] | |
pub fn wide_string_size(this: *const root::rx::wide_string) -> root::rx_size; | |
} | |
extern "C" { | |
#[link_name = "\u{1}?is_empty@wide_string@rx@@QEBA_NXZ"] | |
pub fn wide_string_is_empty(this: *const root::rx::wide_string) -> bool; | |
} | |
extern "C" { | |
#[link_name = "\u{1}?data@wide_string@rx@@QEAAPEAGXZ"] | |
pub fn wide_string_data(this: *mut root::rx::wide_string) -> *mut root::rx_u16; | |
} | |
extern "C" { | |
#[link_name = "\u{1}?data@wide_string@rx@@QEBAPEBGXZ"] | |
pub fn wide_string_data1(this: *const root::rx::wide_string) -> *const root::rx_u16; | |
} | |
extern "C" { | |
#[link_name = "\u{1}?resize@wide_string@rx@@QEAAX_K@Z"] | |
pub fn wide_string_resize(this: *mut root::rx::wide_string, _size: root::rx_size); | |
} | |
extern "C" { | |
#[link_name = "\u{1}?to_utf8@wide_string@rx@@QEBA?AUstring@2@XZ"] | |
pub fn wide_string_to_utf8(this: *const root::rx::wide_string) -> root::rx::string; | |
} | |
extern "C" { | |
#[link_name = "\u{1}?allocator@wide_string@rx@@QEBAPEAU0memory@2@XZ"] | |
pub fn wide_string_allocator(this: *const root::rx::wide_string) -> *mut root::rx::memory::allocator; | |
} | |
extern "C" { | |
#[link_name = "\u{1}??0wide_string@rx@@QEAA@PEAUallocator@memory@1@@Z"] | |
pub fn wide_string_wide_string( | |
this: *mut root::rx::wide_string, | |
_allocator: *mut root::rx::memory::allocator, | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}??0wide_string@rx@@QEAA@PEAUallocator@memory@1@AEBU01@@Z"] | |
pub fn wide_string_wide_string1( | |
this: *mut root::rx::wide_string, | |
_allocator: *mut root::rx::memory::allocator, | |
_other: *const root::rx::wide_string, | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}??0wide_string@rx@@QEAA@PEAUallocator@memory@1@PEBG@Z"] | |
pub fn wide_string_wide_string2( | |
this: *mut root::rx::wide_string, | |
_allocator: *mut root::rx::memory::allocator, | |
_contents: *const root::rx_u16, | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}??0wide_string@rx@@QEAA@PEAUallocator@memory@1@PEBG_K@Z"] | |
pub fn wide_string_wide_string3( | |
this: *mut root::rx::wide_string, | |
_allocator: *mut root::rx::memory::allocator, | |
_contents: *const root::rx_u16, | |
_size: root::rx_size, | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}??0wide_string@rx@@QEAA@XZ"] | |
pub fn wide_string_wide_string4(this: *mut root::rx::wide_string); | |
} | |
extern "C" { | |
#[link_name = "\u{1}??0wide_string@rx@@QEAA@AEBU01@@Z"] | |
pub fn wide_string_wide_string5(this: *mut root::rx::wide_string, _other: *const root::rx::wide_string); | |
} | |
extern "C" { | |
#[link_name = "\u{1}??0wide_string@rx@@QEAA@PEBG@Z"] | |
pub fn wide_string_wide_string6(this: *mut root::rx::wide_string, _contents: *const root::rx_u16); | |
} | |
extern "C" { | |
#[link_name = "\u{1}??0wide_string@rx@@QEAA@PEBG_K@Z"] | |
pub fn wide_string_wide_string7( | |
this: *mut root::rx::wide_string, | |
_contents: *const root::rx_u16, | |
_size: root::rx_size, | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}??0wide_string@rx@@QEAA@$$QEAU01@@Z"] | |
pub fn wide_string_wide_string8(this: *mut root::rx::wide_string, other_: *mut root::rx::wide_string); | |
} | |
extern "C" { | |
#[link_name = "\u{1}??_Dwide_string@rx@@QEAAXXZ"] | |
pub fn wide_string_wide_string_destructor(this: *mut root::rx::wide_string); | |
} | |
impl wide_string { | |
#[inline] | |
pub unsafe fn size(&self) -> root::rx_size { | |
wide_string_size(self) | |
} | |
#[inline] | |
pub unsafe fn is_empty(&self) -> bool { | |
wide_string_is_empty(self) | |
} | |
#[inline] | |
pub unsafe fn data(&mut self) -> *mut root::rx_u16 { | |
wide_string_data(self) | |
} | |
#[inline] | |
pub unsafe fn data1(&self) -> *const root::rx_u16 { | |
wide_string_data1(self) | |
} | |
#[inline] | |
pub unsafe fn resize(&mut self, _size: root::rx_size) { | |
wide_string_resize(self, _size) | |
} | |
#[inline] | |
pub unsafe fn to_utf8(&self) -> root::rx::string { | |
wide_string_to_utf8(self) | |
} | |
#[inline] | |
pub unsafe fn allocator(&self) -> *mut root::rx::memory::allocator { | |
wide_string_allocator(self) | |
} | |
#[inline] | |
pub unsafe fn new(_allocator: *mut root::rx::memory::allocator) -> Self { | |
let mut __bindgen_tmp = ::core::mem::MaybeUninit::uninit(); | |
wide_string_wide_string(__bindgen_tmp.as_mut_ptr(), _allocator); | |
__bindgen_tmp.assume_init() | |
} | |
#[inline] | |
pub unsafe fn new1( | |
_allocator: *mut root::rx::memory::allocator, | |
_other: *const root::rx::wide_string, | |
) -> Self { | |
let mut __bindgen_tmp = ::core::mem::MaybeUninit::uninit(); | |
wide_string_wide_string1(__bindgen_tmp.as_mut_ptr(), _allocator, _other); | |
__bindgen_tmp.assume_init() | |
} | |
#[inline] | |
pub unsafe fn new2(_allocator: *mut root::rx::memory::allocator, _contents: *const root::rx_u16) -> Self { | |
let mut __bindgen_tmp = ::core::mem::MaybeUninit::uninit(); | |
wide_string_wide_string2(__bindgen_tmp.as_mut_ptr(), _allocator, _contents); | |
__bindgen_tmp.assume_init() | |
} | |
#[inline] | |
pub unsafe fn new3( | |
_allocator: *mut root::rx::memory::allocator, | |
_contents: *const root::rx_u16, | |
_size: root::rx_size, | |
) -> Self { | |
let mut __bindgen_tmp = ::core::mem::MaybeUninit::uninit(); | |
wide_string_wide_string3(__bindgen_tmp.as_mut_ptr(), _allocator, _contents, _size); | |
__bindgen_tmp.assume_init() | |
} | |
#[inline] | |
pub unsafe fn new4() -> Self { | |
let mut __bindgen_tmp = ::core::mem::MaybeUninit::uninit(); | |
wide_string_wide_string4(__bindgen_tmp.as_mut_ptr()); | |
__bindgen_tmp.assume_init() | |
} | |
#[inline] | |
pub unsafe fn new5(_other: *const root::rx::wide_string) -> Self { | |
let mut __bindgen_tmp = ::core::mem::MaybeUninit::uninit(); | |
wide_string_wide_string5(__bindgen_tmp.as_mut_ptr(), _other); | |
__bindgen_tmp.assume_init() | |
} | |
#[inline] | |
pub unsafe fn new6(_contents: *const root::rx_u16) -> Self { | |
let mut __bindgen_tmp = ::core::mem::MaybeUninit::uninit(); | |
wide_string_wide_string6(__bindgen_tmp.as_mut_ptr(), _contents); | |
__bindgen_tmp.assume_init() | |
} | |
#[inline] | |
pub unsafe fn new7(_contents: *const root::rx_u16, _size: root::rx_size) -> Self { | |
let mut __bindgen_tmp = ::core::mem::MaybeUninit::uninit(); | |
wide_string_wide_string7(__bindgen_tmp.as_mut_ptr(), _contents, _size); | |
__bindgen_tmp.assume_init() | |
} | |
#[inline] | |
pub unsafe fn new8(other_: *mut root::rx::wide_string) -> Self { | |
let mut __bindgen_tmp = ::core::mem::MaybeUninit::uninit(); | |
wide_string_wide_string8(__bindgen_tmp.as_mut_ptr(), other_); | |
__bindgen_tmp.assume_init() | |
} | |
#[inline] | |
pub unsafe fn destruct(&mut self) { | |
wide_string_wide_string_destructor(self) | |
} | |
} | |
pub mod math { | |
#[allow(unused_imports)] | |
use self::super::super::super::root; | |
pub type vec2i = root::rx::math::vec2<root::rx_s32>; | |
pub type vec2z = root::rx::math::vec2<root::rx_size>; | |
pub type vec4i = root::rx::math::vec4<root::rx_s32>; | |
/// <div rustbindgen replaces="rx::math::vec2"></div> | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct vec2<T> { | |
pub x: T, | |
pub y: T, | |
pub _phantom_0: ::core::marker::PhantomData<::core::cell::UnsafeCell<T>>, | |
} | |
/// <div rustbindgen replaces="rx::math::vec4"></div> | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct vec4<T> { | |
pub x: T, | |
pub y: T, | |
pub z: T, | |
pub w: T, | |
pub _phantom_0: ::core::marker::PhantomData<::core::cell::UnsafeCell<T>>, | |
} | |
} | |
pub mod render { | |
#[allow(unused_imports)] | |
use self::super::super::super::root; | |
pub mod frontend { | |
#[allow(unused_imports)] | |
use self::super::super::super::super::root; | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct scissor_state { | |
pub m_hash: root::rx_size, | |
pub m_offset: root::rx::math::vec2i, | |
pub m_size: root::rx::math::vec2i, | |
pub m_enabled: bool, | |
} | |
extern "C" { | |
#[link_name = "\u{1}?k_dirty_bit@scissor_state@frontend@render@rx@@0_KB"] | |
pub static scissor_state_k_dirty_bit: root::rx_size; | |
} | |
#[test] | |
fn bindgen_test_layout_scissor_state() { | |
assert_eq!( | |
::core::mem::size_of::<scissor_state>(), | |
32usize, | |
concat!("Size of: ", stringify!(scissor_state)) | |
); | |
assert_eq!( | |
::core::mem::align_of::<scissor_state>(), | |
8usize, | |
concat!("Alignment of ", stringify!(scissor_state)) | |
); | |
assert_eq!( | |
unsafe { &(*(::core::ptr::null::<scissor_state>())).m_hash as *const _ as usize }, | |
0usize, | |
concat!("Offset of field: ", stringify!(scissor_state), "::", stringify!(m_hash)) | |
); | |
assert_eq!( | |
unsafe { &(*(::core::ptr::null::<scissor_state>())).m_offset as *const _ as usize }, | |
8usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(scissor_state), | |
"::", | |
stringify!(m_offset) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::core::ptr::null::<scissor_state>())).m_size as *const _ as usize }, | |
16usize, | |
concat!("Offset of field: ", stringify!(scissor_state), "::", stringify!(m_size)) | |
); | |
assert_eq!( | |
unsafe { &(*(::core::ptr::null::<scissor_state>())).m_enabled as *const _ as usize }, | |
24usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(scissor_state), | |
"::", | |
stringify!(m_enabled) | |
) | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}?record_enable@scissor_state@frontend@render@rx@@QEAAX_N@Z"] | |
pub fn scissor_state_record_enable( | |
this: *mut root::rx::render::frontend::scissor_state, | |
_enable: bool, | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}?record_offset@scissor_state@frontend@render@rx@@QEAAXAEBU?$vec2@H@math@4@@Z"] | |
pub fn scissor_state_record_offset( | |
this: *mut root::rx::render::frontend::scissor_state, | |
_offset: *const root::rx::math::vec2i, | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}?record_size@scissor_state@frontend@render@rx@@QEAAXAEBU?$vec2@H@math@4@@Z"] | |
pub fn scissor_state_record_size( | |
this: *mut root::rx::render::frontend::scissor_state, | |
_size: *const root::rx::math::vec2i, | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}?enabled@scissor_state@frontend@render@rx@@QEBA_NXZ"] | |
pub fn scissor_state_enabled(this: *const root::rx::render::frontend::scissor_state) -> bool; | |
} | |
extern "C" { | |
#[link_name = "\u{1}?offset@scissor_state@frontend@render@rx@@QEBAAEBU?$vec2@H@math@4@XZ"] | |
pub fn scissor_state_offset( | |
this: *const root::rx::render::frontend::scissor_state, | |
) -> *const root::rx::math::vec2i; | |
} | |
extern "C" { | |
#[link_name = "\u{1}?size@scissor_state@frontend@render@rx@@QEBAAEBU?$vec2@H@math@4@XZ"] | |
pub fn scissor_state_size( | |
this: *const root::rx::render::frontend::scissor_state, | |
) -> *const root::rx::math::vec2i; | |
} | |
extern "C" { | |
#[link_name = "\u{1}?flush@scissor_state@frontend@render@rx@@QEAA_KXZ"] | |
pub fn scissor_state_flush(this: *mut root::rx::render::frontend::scissor_state) -> root::rx_size; | |
} | |
extern "C" { | |
#[link_name = "\u{1}??0scissor_state@frontend@render@rx@@QEAA@XZ"] | |
pub fn scissor_state_scissor_state(this: *mut root::rx::render::frontend::scissor_state); | |
} | |
impl scissor_state { | |
#[inline] | |
pub unsafe fn record_enable(&mut self, _enable: bool) { | |
scissor_state_record_enable(self, _enable) | |
} | |
#[inline] | |
pub unsafe fn record_offset(&mut self, _offset: *const root::rx::math::vec2i) { | |
scissor_state_record_offset(self, _offset) | |
} | |
#[inline] | |
pub unsafe fn record_size(&mut self, _size: *const root::rx::math::vec2i) { | |
scissor_state_record_size(self, _size) | |
} | |
#[inline] | |
pub unsafe fn enabled(&self) -> bool { | |
scissor_state_enabled(self) | |
} | |
#[inline] | |
pub unsafe fn offset(&self) -> *const root::rx::math::vec2i { | |
scissor_state_offset(self) | |
} | |
#[inline] | |
pub unsafe fn size(&self) -> *const root::rx::math::vec2i { | |
scissor_state_size(self) | |
} | |
#[inline] | |
pub unsafe fn flush(&mut self) -> root::rx_size { | |
scissor_state_flush(self) | |
} | |
#[inline] | |
pub unsafe fn new() -> Self { | |
let mut __bindgen_tmp = ::core::mem::MaybeUninit::uninit(); | |
scissor_state_scissor_state(__bindgen_tmp.as_mut_ptr()); | |
__bindgen_tmp.assume_init() | |
} | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct blend_state { | |
pub m_hash: root::rx_size, | |
pub m_color_src_factor: root::rx::render::frontend::blend_state_factor_type, | |
pub m_color_dst_factor: root::rx::render::frontend::blend_state_factor_type, | |
pub m_alpha_src_factor: root::rx::render::frontend::blend_state_factor_type, | |
pub m_alpha_dst_factor: root::rx::render::frontend::blend_state_factor_type, | |
pub m_write_mask: root::rx_u8, | |
pub m_enabled: bool, | |
} | |
impl blend_state_factor_type { | |
pub const k_zero: root::rx::render::frontend::blend_state_factor_type = | |
root::rx::render::frontend::blend_state_factor_type(0); | |
} | |
impl blend_state_factor_type { | |
pub const k_one: root::rx::render::frontend::blend_state_factor_type = | |
root::rx::render::frontend::blend_state_factor_type(1); | |
} | |
impl blend_state_factor_type { | |
pub const k_src_color: root::rx::render::frontend::blend_state_factor_type = | |
root::rx::render::frontend::blend_state_factor_type(2); | |
} | |
impl blend_state_factor_type { | |
pub const k_one_minus_src_color: root::rx::render::frontend::blend_state_factor_type = | |
root::rx::render::frontend::blend_state_factor_type(3); | |
} | |
impl blend_state_factor_type { | |
pub const k_dst_color: root::rx::render::frontend::blend_state_factor_type = | |
root::rx::render::frontend::blend_state_factor_type(4); | |
} | |
impl blend_state_factor_type { | |
pub const k_one_minus_dst_color: root::rx::render::frontend::blend_state_factor_type = | |
root::rx::render::frontend::blend_state_factor_type(5); | |
} | |
impl blend_state_factor_type { | |
pub const k_src_alpha: root::rx::render::frontend::blend_state_factor_type = | |
root::rx::render::frontend::blend_state_factor_type(6); | |
} | |
impl blend_state_factor_type { | |
pub const k_one_minus_src_alpha: root::rx::render::frontend::blend_state_factor_type = | |
root::rx::render::frontend::blend_state_factor_type(7); | |
} | |
impl blend_state_factor_type { | |
pub const k_dst_alpha: root::rx::render::frontend::blend_state_factor_type = | |
root::rx::render::frontend::blend_state_factor_type(8); | |
} | |
impl blend_state_factor_type { | |
pub const k_one_minus_dst_alpha: root::rx::render::frontend::blend_state_factor_type = | |
root::rx::render::frontend::blend_state_factor_type(9); | |
} | |
impl blend_state_factor_type { | |
pub const k_constant_color: root::rx::render::frontend::blend_state_factor_type = | |
root::rx::render::frontend::blend_state_factor_type(10); | |
} | |
impl blend_state_factor_type { | |
pub const k_one_minus_constant_color: root::rx::render::frontend::blend_state_factor_type = | |
root::rx::render::frontend::blend_state_factor_type(11); | |
} | |
impl blend_state_factor_type { | |
pub const k_constant_alpha: root::rx::render::frontend::blend_state_factor_type = | |
root::rx::render::frontend::blend_state_factor_type(12); | |
} | |
impl blend_state_factor_type { | |
pub const k_one_minus_constant_alpha: root::rx::render::frontend::blend_state_factor_type = | |
root::rx::render::frontend::blend_state_factor_type(13); | |
} | |
impl blend_state_factor_type { | |
pub const k_src_alpha_saturate: root::rx::render::frontend::blend_state_factor_type = | |
root::rx::render::frontend::blend_state_factor_type(14); | |
} | |
impl ::core::ops::BitOr<root::rx::render::frontend::blend_state_factor_type> | |
for root::rx::render::frontend::blend_state_factor_type | |
{ | |
type Output = Self; | |
#[inline] | |
fn bitor(self, other: Self) -> Self { | |
blend_state_factor_type(self.0 | other.0) | |
} | |
} | |
impl ::core::ops::BitOrAssign for root::rx::render::frontend::blend_state_factor_type { | |
#[inline] | |
fn bitor_assign(&mut self, rhs: root::rx::render::frontend::blend_state_factor_type) { | |
self.0 |= rhs.0; | |
} | |
} | |
impl ::core::ops::BitAnd<root::rx::render::frontend::blend_state_factor_type> | |
for root::rx::render::frontend::blend_state_factor_type | |
{ | |
type Output = Self; | |
#[inline] | |
fn bitand(self, other: Self) -> Self { | |
blend_state_factor_type(self.0 & other.0) | |
} | |
} | |
impl ::core::ops::BitAndAssign for root::rx::render::frontend::blend_state_factor_type { | |
#[inline] | |
fn bitand_assign(&mut self, rhs: root::rx::render::frontend::blend_state_factor_type) { | |
self.0 &= rhs.0; | |
} | |
} | |
#[repr(transparent)] | |
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] | |
pub struct blend_state_factor_type(pub u8); | |
pub const blend_state_k_mask_all: root::rx_u8 = 15; | |
extern "C" { | |
#[link_name = "\u{1}?k_dirty_bit@blend_state@frontend@render@rx@@0_KB"] | |
pub static blend_state_k_dirty_bit: root::rx_size; | |
} | |
#[test] | |
fn bindgen_test_layout_blend_state() { | |
assert_eq!( | |
::core::mem::size_of::<blend_state>(), | |
16usize, | |
concat!("Size of: ", stringify!(blend_state)) | |
); | |
assert_eq!( | |
::core::mem::align_of::<blend_state>(), | |
8usize, | |
concat!("Alignment of ", stringify!(blend_state)) | |
); | |
assert_eq!( | |
unsafe { &(*(::core::ptr::null::<blend_state>())).m_hash as *const _ as usize }, | |
0usize, | |
concat!("Offset of field: ", stringify!(blend_state), "::", stringify!(m_hash)) | |
); | |
assert_eq!( | |
unsafe { &(*(::core::ptr::null::<blend_state>())).m_color_src_factor as *const _ as usize }, | |
8usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(blend_state), | |
"::", | |
stringify!(m_color_src_factor) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::core::ptr::null::<blend_state>())).m_color_dst_factor as *const _ as usize }, | |
9usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(blend_state), | |
"::", | |
stringify!(m_color_dst_factor) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::core::ptr::null::<blend_state>())).m_alpha_src_factor as *const _ as usize }, | |
10usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(blend_state), | |
"::", | |
stringify!(m_alpha_src_factor) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::core::ptr::null::<blend_state>())).m_alpha_dst_factor as *const _ as usize }, | |
11usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(blend_state), | |
"::", | |
stringify!(m_alpha_dst_factor) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::core::ptr::null::<blend_state>())).m_write_mask as *const _ as usize }, | |
12usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(blend_state), | |
"::", | |
stringify!(m_write_mask) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::core::ptr::null::<blend_state>())).m_enabled as *const _ as usize }, | |
13usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(blend_state), | |
"::", | |
stringify!(m_enabled) | |
) | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}?record_enable@blend_state@frontend@render@rx@@QEAAX_N@Z"] | |
pub fn blend_state_record_enable(this: *mut root::rx::render::frontend::blend_state, _enable: bool); | |
} | |
extern "C" { | |
#[link_name = "\u{1}?record_blend_factors@blend_state@frontend@render@rx@@QEAAXW4factor_type@1234@0@Z"] | |
pub fn blend_state_record_blend_factors( | |
this: *mut root::rx::render::frontend::blend_state, | |
_src: root::rx::render::frontend::blend_state_factor_type, | |
_dst: root::rx::render::frontend::blend_state_factor_type, | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}?record_color_blend_factors@blend_state@frontend@render@rx@@QEAAXW4factor_type@1234@0@Z"] | |
pub fn blend_state_record_color_blend_factors( | |
this: *mut root::rx::render::frontend::blend_state, | |
_src: root::rx::render::frontend::blend_state_factor_type, | |
_dst: root::rx::render::frontend::blend_state_factor_type, | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}?record_alpha_blend_factors@blend_state@frontend@render@rx@@QEAAXW4factor_type@1234@0@Z"] | |
pub fn blend_state_record_alpha_blend_factors( | |
this: *mut root::rx::render::frontend::blend_state, | |
_src: root::rx::render::frontend::blend_state_factor_type, | |
_dst: root::rx::render::frontend::blend_state_factor_type, | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}?record_write_mask@blend_state@frontend@render@rx@@QEAAXE@Z"] | |
pub fn blend_state_record_write_mask( | |
this: *mut root::rx::render::frontend::blend_state, | |
_write_mask: root::rx_u8, | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}?enabled@blend_state@frontend@render@rx@@QEBA_NXZ"] | |
pub fn blend_state_enabled(this: *const root::rx::render::frontend::blend_state) -> bool; | |
} | |
extern "C" { | |
#[link_name = "\u{1}?color_src_factor@blend_state@frontend@render@rx@@QEBA?AW4factor_type@1234@XZ"] | |
pub fn blend_state_color_src_factor( | |
this: *const root::rx::render::frontend::blend_state, | |
) -> root::rx::render::frontend::blend_state_factor_type; | |
} | |
extern "C" { | |
#[link_name = "\u{1}?color_dst_factor@blend_state@frontend@render@rx@@QEBA?AW4factor_type@1234@XZ"] | |
pub fn blend_state_color_dst_factor( | |
this: *const root::rx::render::frontend::blend_state, | |
) -> root::rx::render::frontend::blend_state_factor_type; | |
} | |
extern "C" { | |
#[link_name = "\u{1}?alpha_src_factor@blend_state@frontend@render@rx@@QEBA?AW4factor_type@1234@XZ"] | |
pub fn blend_state_alpha_src_factor( | |
this: *const root::rx::render::frontend::blend_state, | |
) -> root::rx::render::frontend::blend_state_factor_type; | |
} | |
extern "C" { | |
#[link_name = "\u{1}?alpha_dst_factor@blend_state@frontend@render@rx@@QEBA?AW4factor_type@1234@XZ"] | |
pub fn blend_state_alpha_dst_factor( | |
this: *const root::rx::render::frontend::blend_state, | |
) -> root::rx::render::frontend::blend_state_factor_type; | |
} | |
extern "C" { | |
#[link_name = "\u{1}?write_mask@blend_state@frontend@render@rx@@QEBAEXZ"] | |
pub fn blend_state_write_mask(this: *const root::rx::render::frontend::blend_state) -> root::rx_u8; | |
} | |
extern "C" { | |
#[link_name = "\u{1}?flush@blend_state@frontend@render@rx@@QEAA_KXZ"] | |
pub fn blend_state_flush(this: *mut root::rx::render::frontend::blend_state) -> root::rx_size; | |
} | |
extern "C" { | |
#[link_name = "\u{1}??0blend_state@frontend@render@rx@@QEAA@XZ"] | |
pub fn blend_state_blend_state(this: *mut root::rx::render::frontend::blend_state); | |
} | |
impl blend_state { | |
#[inline] | |
pub unsafe fn record_enable(&mut self, _enable: bool) { | |
blend_state_record_enable(self, _enable) | |
} | |
#[inline] | |
pub unsafe fn record_blend_factors( | |
&mut self, | |
_src: root::rx::render::frontend::blend_state_factor_type, | |
_dst: root::rx::render::frontend::blend_state_factor_type, | |
) { | |
blend_state_record_blend_factors(self, _src, _dst) | |
} | |
#[inline] | |
pub unsafe fn record_color_blend_factors( | |
&mut self, | |
_src: root::rx::render::frontend::blend_state_factor_type, | |
_dst: root::rx::render::frontend::blend_state_factor_type, | |
) { | |
blend_state_record_color_blend_factors(self, _src, _dst) | |
} | |
#[inline] | |
pub unsafe fn record_alpha_blend_factors( | |
&mut self, | |
_src: root::rx::render::frontend::blend_state_factor_type, | |
_dst: root::rx::render::frontend::blend_state_factor_type, | |
) { | |
blend_state_record_alpha_blend_factors(self, _src, _dst) | |
} | |
#[inline] | |
pub unsafe fn record_write_mask(&mut self, _write_mask: root::rx_u8) { | |
blend_state_record_write_mask(self, _write_mask) | |
} | |
#[inline] | |
pub unsafe fn enabled(&self) -> bool { | |
blend_state_enabled(self) | |
} | |
#[inline] | |
pub unsafe fn color_src_factor(&self) -> root::rx::render::frontend::blend_state_factor_type { | |
blend_state_color_src_factor(self) | |
} | |
#[inline] | |
pub unsafe fn color_dst_factor(&self) -> root::rx::render::frontend::blend_state_factor_type { | |
blend_state_color_dst_factor(self) | |
} | |
#[inline] | |
pub unsafe fn alpha_src_factor(&self) -> root::rx::render::frontend::blend_state_factor_type { | |
blend_state_alpha_src_factor(self) | |
} | |
#[inline] | |
pub unsafe fn alpha_dst_factor(&self) -> root::rx::render::frontend::blend_state_factor_type { | |
blend_state_alpha_dst_factor(self) | |
} | |
#[inline] | |
pub unsafe fn write_mask(&self) -> root::rx_u8 { | |
blend_state_write_mask(self) | |
} | |
#[inline] | |
pub unsafe fn flush(&mut self) -> root::rx_size { | |
blend_state_flush(self) | |
} | |
#[inline] | |
pub unsafe fn new() -> Self { | |
let mut __bindgen_tmp = ::core::mem::MaybeUninit::uninit(); | |
blend_state_blend_state(__bindgen_tmp.as_mut_ptr()); | |
__bindgen_tmp.assume_init() | |
} | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct depth_state { | |
pub m_hash: root::rx_size, | |
pub m_flags: root::rx_u8, | |
} | |
pub const depth_state_k_test: root::rx::render::frontend::depth_state__bindgen_ty_1 = | |
root::rx::render::frontend::depth_state__bindgen_ty_1(1); | |
pub const depth_state_k_write: root::rx::render::frontend::depth_state__bindgen_ty_1 = | |
root::rx::render::frontend::depth_state__bindgen_ty_1(2); | |
impl ::core::ops::BitOr<root::rx::render::frontend::depth_state__bindgen_ty_1> | |
for root::rx::render::frontend::depth_state__bindgen_ty_1 | |
{ | |
type Output = Self; | |
#[inline] | |
fn bitor(self, other: Self) -> Self { | |
depth_state__bindgen_ty_1(self.0 | other.0) | |
} | |
} | |
impl ::core::ops::BitOrAssign for root::rx::render::frontend::depth_state__bindgen_ty_1 { | |
#[inline] | |
fn bitor_assign(&mut self, rhs: root::rx::render::frontend::depth_state__bindgen_ty_1) { | |
self.0 |= rhs.0; | |
} | |
} | |
impl ::core::ops::BitAnd<root::rx::render::frontend::depth_state__bindgen_ty_1> | |
for root::rx::render::frontend::depth_state__bindgen_ty_1 | |
{ | |
type Output = Self; | |
#[inline] | |
fn bitand(self, other: Self) -> Self { | |
depth_state__bindgen_ty_1(self.0 & other.0) | |
} | |
} | |
impl ::core::ops::BitAndAssign for root::rx::render::frontend::depth_state__bindgen_ty_1 { | |
#[inline] | |
fn bitand_assign(&mut self, rhs: root::rx::render::frontend::depth_state__bindgen_ty_1) { | |
self.0 &= rhs.0; | |
} | |
} | |
#[repr(transparent)] | |
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] | |
pub struct depth_state__bindgen_ty_1(pub i32); | |
extern "C" { | |
#[link_name = "\u{1}?k_dirty_bit@depth_state@frontend@render@rx@@0_KB"] | |
pub static depth_state_k_dirty_bit: root::rx_size; | |
} | |
#[test] | |
fn bindgen_test_layout_depth_state() { | |
assert_eq!( | |
::core::mem::size_of::<depth_state>(), | |
16usize, | |
concat!("Size of: ", stringify!(depth_state)) | |
); | |
assert_eq!( | |
::core::mem::align_of::<depth_state>(), | |
8usize, | |
concat!("Alignment of ", stringify!(depth_state)) | |
); | |
assert_eq!( | |
unsafe { &(*(::core::ptr::null::<depth_state>())).m_hash as *const _ as usize }, | |
0usize, | |
concat!("Offset of field: ", stringify!(depth_state), "::", stringify!(m_hash)) | |
); | |
assert_eq!( | |
unsafe { &(*(::core::ptr::null::<depth_state>())).m_flags as *const _ as usize }, | |
8usize, | |
concat!("Offset of field: ", stringify!(depth_state), "::", stringify!(m_flags)) | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}?record_test@depth_state@frontend@render@rx@@QEAAX_N@Z"] | |
pub fn depth_state_record_test(this: *mut root::rx::render::frontend::depth_state, _test: bool); | |
} | |
extern "C" { | |
#[link_name = "\u{1}?record_write@depth_state@frontend@render@rx@@QEAAX_N@Z"] | |
pub fn depth_state_record_write(this: *mut root::rx::render::frontend::depth_state, _write: bool); | |
} | |
extern "C" { | |
#[link_name = "\u{1}?test@depth_state@frontend@render@rx@@QEBA_NXZ"] | |
pub fn depth_state_test(this: *const root::rx::render::frontend::depth_state) -> bool; | |
} | |
extern "C" { | |
#[link_name = "\u{1}?write@depth_state@frontend@render@rx@@QEBA_NXZ"] | |
pub fn depth_state_write(this: *const root::rx::render::frontend::depth_state) -> bool; | |
} | |
extern "C" { | |
#[link_name = "\u{1}?flush@depth_state@frontend@render@rx@@QEAA_KXZ"] | |
pub fn depth_state_flush(this: *mut root::rx::render::frontend::depth_state) -> root::rx_size; | |
} | |
extern "C" { | |
#[link_name = "\u{1}??0depth_state@frontend@render@rx@@QEAA@XZ"] | |
pub fn depth_state_depth_state(this: *mut root::rx::render::frontend::depth_state); | |
} | |
impl depth_state { | |
#[inline] | |
pub unsafe fn record_test(&mut self, _test: bool) { | |
depth_state_record_test(self, _test) | |
} | |
#[inline] | |
pub unsafe fn record_write(&mut self, _write: bool) { | |
depth_state_record_write(self, _write) | |
} | |
#[inline] | |
pub unsafe fn test(&self) -> bool { | |
depth_state_test(self) | |
} | |
#[inline] | |
pub unsafe fn write(&self) -> bool { | |
depth_state_write(self) | |
} | |
#[inline] | |
pub unsafe fn flush(&mut self) -> root::rx_size { | |
depth_state_flush(self) | |
} | |
#[inline] | |
pub unsafe fn new() -> Self { | |
let mut __bindgen_tmp = ::core::mem::MaybeUninit::uninit(); | |
depth_state_depth_state(__bindgen_tmp.as_mut_ptr()); | |
__bindgen_tmp.assume_init() | |
} | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct cull_state { | |
pub m_hash: root::rx_size, | |
pub m_front_face: root::rx::render::frontend::cull_state_front_face_type, | |
pub m_cull_face: root::rx::render::frontend::cull_state_cull_face_type, | |
pub m_enabled: bool, | |
} | |
impl cull_state_front_face_type { | |
pub const k_clock_wise: root::rx::render::frontend::cull_state_front_face_type = | |
root::rx::render::frontend::cull_state_front_face_type(0); | |
} | |
impl cull_state_front_face_type { | |
pub const k_counter_clock_wise: root::rx::render::frontend::cull_state_front_face_type = | |
root::rx::render::frontend::cull_state_front_face_type(1); | |
} | |
impl ::core::ops::BitOr<root::rx::render::frontend::cull_state_front_face_type> | |
for root::rx::render::frontend::cull_state_front_face_type | |
{ | |
type Output = Self; | |
#[inline] | |
fn bitor(self, other: Self) -> Self { | |
cull_state_front_face_type(self.0 | other.0) | |
} | |
} | |
impl ::core::ops::BitOrAssign for root::rx::render::frontend::cull_state_front_face_type { | |
#[inline] | |
fn bitor_assign(&mut self, rhs: root::rx::render::frontend::cull_state_front_face_type) { | |
self.0 |= rhs.0; | |
} | |
} | |
impl ::core::ops::BitAnd<root::rx::render::frontend::cull_state_front_face_type> | |
for root::rx::render::frontend::cull_state_front_face_type | |
{ | |
type Output = Self; | |
#[inline] | |
fn bitand(self, other: Self) -> Self { | |
cull_state_front_face_type(self.0 & other.0) | |
} | |
} | |
impl ::core::ops::BitAndAssign for root::rx::render::frontend::cull_state_front_face_type { | |
#[inline] | |
fn bitand_assign(&mut self, rhs: root::rx::render::frontend::cull_state_front_face_type) { | |
self.0 &= rhs.0; | |
} | |
} | |
#[repr(transparent)] | |
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] | |
pub struct cull_state_front_face_type(pub u8); | |
impl cull_state_cull_face_type { | |
pub const k_front: root::rx::render::frontend::cull_state_cull_face_type = | |
root::rx::render::frontend::cull_state_cull_face_type(0); | |
} | |
impl cull_state_cull_face_type { | |
pub const k_back: root::rx::render::frontend::cull_state_cull_face_type = | |
root::rx::render::frontend::cull_state_cull_face_type(1); | |
} | |
impl ::core::ops::BitOr<root::rx::render::frontend::cull_state_cull_face_type> | |
for root::rx::render::frontend::cull_state_cull_face_type | |
{ | |
type Output = Self; | |
#[inline] | |
fn bitor(self, other: Self) -> Self { | |
cull_state_cull_face_type(self.0 | other.0) | |
} | |
} | |
impl ::core::ops::BitOrAssign for root::rx::render::frontend::cull_state_cull_face_type { | |
#[inline] | |
fn bitor_assign(&mut self, rhs: root::rx::render::frontend::cull_state_cull_face_type) { | |
self.0 |= rhs.0; | |
} | |
} | |
impl ::core::ops::BitAnd<root::rx::render::frontend::cull_state_cull_face_type> | |
for root::rx::render::frontend::cull_state_cull_face_type | |
{ | |
type Output = Self; | |
#[inline] | |
fn bitand(self, other: Self) -> Self { | |
cull_state_cull_face_type(self.0 & other.0) | |
} | |
} | |
impl ::core::ops::BitAndAssign for root::rx::render::frontend::cull_state_cull_face_type { | |
#[inline] | |
fn bitand_assign(&mut self, rhs: root::rx::render::frontend::cull_state_cull_face_type) { | |
self.0 &= rhs.0; | |
} | |
} | |
#[repr(transparent)] | |
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] | |
pub struct cull_state_cull_face_type(pub u8); | |
extern "C" { | |
#[link_name = "\u{1}?k_dirty_bit@cull_state@frontend@render@rx@@0_KB"] | |
pub static cull_state_k_dirty_bit: root::rx_size; | |
} | |
#[test] | |
fn bindgen_test_layout_cull_state() { | |
assert_eq!( | |
::core::mem::size_of::<cull_state>(), | |
16usize, | |
concat!("Size of: ", stringify!(cull_state)) | |
); | |
assert_eq!( | |
::core::mem::align_of::<cull_state>(), | |
8usize, | |
concat!("Alignment of ", stringify!(cull_state)) | |
); | |
assert_eq!( | |
unsafe { &(*(::core::ptr::null::<cull_state>())).m_hash as *const _ as usize }, | |
0usize, | |
concat!("Offset of field: ", stringify!(cull_state), "::", stringify!(m_hash)) | |
); | |
assert_eq!( | |
unsafe { &(*(::core::ptr::null::<cull_state>())).m_front_face as *const _ as usize }, | |
8usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(cull_state), | |
"::", | |
stringify!(m_front_face) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::core::ptr::null::<cull_state>())).m_cull_face as *const _ as usize }, | |
9usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(cull_state), | |
"::", | |
stringify!(m_cull_face) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::core::ptr::null::<cull_state>())).m_enabled as *const _ as usize }, | |
10usize, | |
concat!("Offset of field: ", stringify!(cull_state), "::", stringify!(m_enabled)) | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}?record_enable@cull_state@frontend@render@rx@@QEAAX_N@Z"] | |
pub fn cull_state_record_enable(this: *mut root::rx::render::frontend::cull_state, _enable: bool); | |
} | |
extern "C" { | |
#[link_name = "\u{1}?record_front_face@cull_state@frontend@render@rx@@QEAAXW4front_face_type@1234@@Z"] | |
pub fn cull_state_record_front_face( | |
this: *mut root::rx::render::frontend::cull_state, | |
_front_face: root::rx::render::frontend::cull_state_front_face_type, | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}?record_cull_face@cull_state@frontend@render@rx@@QEAAXW4cull_face_type@1234@@Z"] | |
pub fn cull_state_record_cull_face( | |
this: *mut root::rx::render::frontend::cull_state, | |
_cull_face: root::rx::render::frontend::cull_state_cull_face_type, | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}?enabled@cull_state@frontend@render@rx@@QEBA_NXZ"] | |
pub fn cull_state_enabled(this: *const root::rx::render::frontend::cull_state) -> bool; | |
} | |
extern "C" { | |
#[link_name = "\u{1}?front_face@cull_state@frontend@render@rx@@QEBA?AW4front_face_type@1234@XZ"] | |
pub fn cull_state_front_face( | |
this: *const root::rx::render::frontend::cull_state, | |
) -> root::rx::render::frontend::cull_state_front_face_type; | |
} | |
extern "C" { | |
#[link_name = "\u{1}?cull_face@cull_state@frontend@render@rx@@QEBA?AW4cull_face_type@1234@XZ"] | |
pub fn cull_state_cull_face( | |
this: *const root::rx::render::frontend::cull_state, | |
) -> root::rx::render::frontend::cull_state_cull_face_type; | |
} | |
extern "C" { | |
#[link_name = "\u{1}?flush@cull_state@frontend@render@rx@@QEAA_KXZ"] | |
pub fn cull_state_flush(this: *mut root::rx::render::frontend::cull_state) -> root::rx_size; | |
} | |
extern "C" { | |
#[link_name = "\u{1}??0cull_state@frontend@render@rx@@QEAA@XZ"] | |
pub fn cull_state_cull_state(this: *mut root::rx::render::frontend::cull_state); | |
} | |
impl cull_state { | |
#[inline] | |
pub unsafe fn record_enable(&mut self, _enable: bool) { | |
cull_state_record_enable(self, _enable) | |
} | |
#[inline] | |
pub unsafe fn record_front_face( | |
&mut self, | |
_front_face: root::rx::render::frontend::cull_state_front_face_type, | |
) { | |
cull_state_record_front_face(self, _front_face) | |
} | |
#[inline] | |
pub unsafe fn record_cull_face( | |
&mut self, | |
_cull_face: root::rx::render::frontend::cull_state_cull_face_type, | |
) { | |
cull_state_record_cull_face(self, _cull_face) | |
} | |
#[inline] | |
pub unsafe fn enabled(&self) -> bool { | |
cull_state_enabled(self) | |
} | |
#[inline] | |
pub unsafe fn front_face(&self) -> root::rx::render::frontend::cull_state_front_face_type { | |
cull_state_front_face(self) | |
} | |
#[inline] | |
pub unsafe fn cull_face(&self) -> root::rx::render::frontend::cull_state_cull_face_type { | |
cull_state_cull_face(self) | |
} | |
#[inline] | |
pub unsafe fn flush(&mut self) -> root::rx_size { | |
cull_state_flush(self) | |
} | |
#[inline] | |
pub unsafe fn new() -> Self { | |
let mut __bindgen_tmp = ::core::mem::MaybeUninit::uninit(); | |
cull_state_cull_state(__bindgen_tmp.as_mut_ptr()); | |
__bindgen_tmp.assume_init() | |
} | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct stencil_state { | |
pub m_hash: root::rx_size, | |
pub m_write_mask: root::rx_u8, | |
pub m_function: root::rx::render::frontend::stencil_state_function_type, | |
pub m_reference: root::rx_u8, | |
pub m_mask: root::rx_u8, | |
pub m_front_fail_action: root::rx::render::frontend::stencil_state_operation_type, | |
pub m_front_depth_fail_action: root::rx::render::frontend::stencil_state_operation_type, | |
pub m_front_depth_pass_action: root::rx::render::frontend::stencil_state_operation_type, | |
pub m_back_fail_action: root::rx::render::frontend::stencil_state_operation_type, | |
pub m_back_depth_fail_action: root::rx::render::frontend::stencil_state_operation_type, | |
pub m_back_depth_pass_action: root::rx::render::frontend::stencil_state_operation_type, | |
pub m_enabled: bool, | |
} | |
impl stencil_state_function_type { | |
pub const k_never: root::rx::render::frontend::stencil_state_function_type = | |
root::rx::render::frontend::stencil_state_function_type(0); | |
} | |
impl stencil_state_function_type { | |
pub const k_less: root::rx::render::frontend::stencil_state_function_type = | |
root::rx::render::frontend::stencil_state_function_type(1); | |
} | |
impl stencil_state_function_type { | |
pub const k_less_equal: root::rx::render::frontend::stencil_state_function_type = | |
root::rx::render::frontend::stencil_state_function_type(2); | |
} | |
impl stencil_state_function_type { | |
pub const k_greater: root::rx::render::frontend::stencil_state_function_type = | |
root::rx::render::frontend::stencil_state_function_type(3); | |
} | |
impl stencil_state_function_type { | |
pub const k_greater_equal: root::rx::render::frontend::stencil_state_function_type = | |
root::rx::render::frontend::stencil_state_function_type(4); | |
} | |
impl stencil_state_function_type { | |
pub const k_equal: root::rx::render::frontend::stencil_state_function_type = | |
root::rx::render::frontend::stencil_state_function_type(5); | |
} | |
impl stencil_state_function_type { | |
pub const k_not_equal: root::rx::render::frontend::stencil_state_function_type = | |
root::rx::render::frontend::stencil_state_function_type(6); | |
} | |
impl stencil_state_function_type { | |
pub const k_always: root::rx::render::frontend::stencil_state_function_type = | |
root::rx::render::frontend::stencil_state_function_type(7); | |
} | |
impl ::core::ops::BitOr<root::rx::render::frontend::stencil_state_function_type> | |
for root::rx::render::frontend::stencil_state_function_type | |
{ | |
type Output = Self; | |
#[inline] | |
fn bitor(self, other: Self) -> Self { | |
stencil_state_function_type(self.0 | other.0) | |
} | |
} | |
impl ::core::ops::BitOrAssign for root::rx::render::frontend::stencil_state_function_type { | |
#[inline] | |
fn bitor_assign(&mut self, rhs: root::rx::render::frontend::stencil_state_function_type) { | |
self.0 |= rhs.0; | |
} | |
} | |
impl ::core::ops::BitAnd<root::rx::render::frontend::stencil_state_function_type> | |
for root::rx::render::frontend::stencil_state_function_type | |
{ | |
type Output = Self; | |
#[inline] | |
fn bitand(self, other: Self) -> Self { | |
stencil_state_function_type(self.0 & other.0) | |
} | |
} | |
impl ::core::ops::BitAndAssign for root::rx::render::frontend::stencil_state_function_type { | |
#[inline] | |
fn bitand_assign(&mut self, rhs: root::rx::render::frontend::stencil_state_function_type) { | |
self.0 &= rhs.0; | |
} | |
} | |
#[repr(transparent)] | |
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] | |
pub struct stencil_state_function_type(pub u8); | |
impl stencil_state_operation_type { | |
pub const k_keep: root::rx::render::frontend::stencil_state_operation_type = | |
root::rx::render::frontend::stencil_state_operation_type(0); | |
} | |
impl stencil_state_operation_type { | |
pub const k_zero: root::rx::render::frontend::stencil_state_operation_type = | |
root::rx::render::frontend::stencil_state_operation_type(1); | |
} | |
impl stencil_state_operation_type { | |
pub const k_replace: root::rx::render::frontend::stencil_state_operation_type = | |
root::rx::render::frontend::stencil_state_operation_type(2); | |
} | |
impl stencil_state_operation_type { | |
pub const k_increment: root::rx::render::frontend::stencil_state_operation_type = | |
root::rx::render::frontend::stencil_state_operation_type(3); | |
} | |
impl stencil_state_operation_type { | |
pub const k_increment_wrap: root::rx::render::frontend::stencil_state_operation_type = | |
root::rx::render::frontend::stencil_state_operation_type(4); | |
} | |
impl stencil_state_operation_type { | |
pub const k_decrement: root::rx::render::frontend::stencil_state_operation_type = | |
root::rx::render::frontend::stencil_state_operation_type(5); | |
} | |
impl stencil_state_operation_type { | |
pub const k_decrement_wrap: root::rx::render::frontend::stencil_state_operation_type = | |
root::rx::render::frontend::stencil_state_operation_type(6); | |
} | |
impl stencil_state_operation_type { | |
pub const k_invert: root::rx::render::frontend::stencil_state_operation_type = | |
root::rx::render::frontend::stencil_state_operation_type(7); | |
} | |
impl ::core::ops::BitOr<root::rx::render::frontend::stencil_state_operation_type> | |
for root::rx::render::frontend::stencil_state_operation_type | |
{ | |
type Output = Self; | |
#[inline] | |
fn bitor(self, other: Self) -> Self { | |
stencil_state_operation_type(self.0 | other.0) | |
} | |
} | |
impl ::core::ops::BitOrAssign for root::rx::render::frontend::stencil_state_operation_type { | |
#[inline] | |
fn bitor_assign(&mut self, rhs: root::rx::render::frontend::stencil_state_operation_type) { | |
self.0 |= rhs.0; | |
} | |
} | |
impl ::core::ops::BitAnd<root::rx::render::frontend::stencil_state_operation_type> | |
for root::rx::render::frontend::stencil_state_operation_type | |
{ | |
type Output = Self; | |
#[inline] | |
fn bitand(self, other: Self) -> Self { | |
stencil_state_operation_type(self.0 & other.0) | |
} | |
} | |
impl ::core::ops::BitAndAssign for root::rx::render::frontend::stencil_state_operation_type { | |
#[inline] | |
fn bitand_assign(&mut self, rhs: root::rx::render::frontend::stencil_state_operation_type) { | |
self.0 &= rhs.0; | |
} | |
} | |
#[repr(transparent)] | |
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] | |
pub struct stencil_state_operation_type(pub u8); | |
extern "C" { | |
#[link_name = "\u{1}?k_dirty_bit@stencil_state@frontend@render@rx@@0_KB"] | |
pub static stencil_state_k_dirty_bit: root::rx_size; | |
} | |
#[test] | |
fn bindgen_test_layout_stencil_state() { | |
assert_eq!( | |
::core::mem::size_of::<stencil_state>(), | |
24usize, | |
concat!("Size of: ", stringify!(stencil_state)) | |
); | |
assert_eq!( | |
::core::mem::align_of::<stencil_state>(), | |
8usize, | |
concat!("Alignment of ", stringify!(stencil_state)) | |
); | |
assert_eq!( | |
unsafe { &(*(::core::ptr::null::<stencil_state>())).m_hash as *const _ as usize }, | |
0usize, | |
concat!("Offset of field: ", stringify!(stencil_state), "::", stringify!(m_hash)) | |
); | |
assert_eq!( | |
unsafe { &(*(::core::ptr::null::<stencil_state>())).m_write_mask as *const _ as usize }, | |
8usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(stencil_state), | |
"::", | |
stringify!(m_write_mask) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::core::ptr::null::<stencil_state>())).m_function as *const _ as usize }, | |
9usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(stencil_state), | |
"::", | |
stringify!(m_function) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::core::ptr::null::<stencil_state>())).m_reference as *const _ as usize }, | |
10usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(stencil_state), | |
"::", | |
stringify!(m_reference) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::core::ptr::null::<stencil_state>())).m_mask as *const _ as usize }, | |
11usize, | |
concat!("Offset of field: ", stringify!(stencil_state), "::", stringify!(m_mask)) | |
); | |
assert_eq!( | |
unsafe { &(*(::core::ptr::null::<stencil_state>())).m_front_fail_action as *const _ as usize }, | |
12usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(stencil_state), | |
"::", | |
stringify!(m_front_fail_action) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::core::ptr::null::<stencil_state>())).m_front_depth_fail_action as *const _ as usize | |
}, | |
13usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(stencil_state), | |
"::", | |
stringify!(m_front_depth_fail_action) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::core::ptr::null::<stencil_state>())).m_front_depth_pass_action as *const _ as usize | |
}, | |
14usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(stencil_state), | |
"::", | |
stringify!(m_front_depth_pass_action) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::core::ptr::null::<stencil_state>())).m_back_fail_action as *const _ as usize }, | |
15usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(stencil_state), | |
"::", | |
stringify!(m_back_fail_action) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::core::ptr::null::<stencil_state>())).m_back_depth_fail_action as *const _ as usize | |
}, | |
16usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(stencil_state), | |
"::", | |
stringify!(m_back_depth_fail_action) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::core::ptr::null::<stencil_state>())).m_back_depth_pass_action as *const _ as usize | |
}, | |
17usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(stencil_state), | |
"::", | |
stringify!(m_back_depth_pass_action) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::core::ptr::null::<stencil_state>())).m_enabled as *const _ as usize }, | |
18usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(stencil_state), | |
"::", | |
stringify!(m_enabled) | |
) | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}?record_enable@stencil_state@frontend@render@rx@@QEAAX_N@Z"] | |
pub fn stencil_state_record_enable( | |
this: *mut root::rx::render::frontend::stencil_state, | |
_enable: bool, | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}?record_write_mask@stencil_state@frontend@render@rx@@QEAAXE@Z"] | |
pub fn stencil_state_record_write_mask( | |
this: *mut root::rx::render::frontend::stencil_state, | |
_write_mask: root::rx_u8, | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}?record_function@stencil_state@frontend@render@rx@@QEAAXW4function_type@1234@@Z"] | |
pub fn stencil_state_record_function( | |
this: *mut root::rx::render::frontend::stencil_state, | |
_function: root::rx::render::frontend::stencil_state_function_type, | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}?record_reference@stencil_state@frontend@render@rx@@QEAAXE@Z"] | |
pub fn stencil_state_record_reference( | |
this: *mut root::rx::render::frontend::stencil_state, | |
_reference: root::rx_u8, | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}?record_mask@stencil_state@frontend@render@rx@@QEAAXE@Z"] | |
pub fn stencil_state_record_mask( | |
this: *mut root::rx::render::frontend::stencil_state, | |
_mask: root::rx_u8, | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}?record_fail_action@stencil_state@frontend@render@rx@@QEAAXW4operation_type@1234@@Z"] | |
pub fn stencil_state_record_fail_action( | |
this: *mut root::rx::render::frontend::stencil_state, | |
_action: root::rx::render::frontend::stencil_state_operation_type, | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}?record_depth_fail_action@stencil_state@frontend@render@rx@@QEAAXW4operation_type@1234@@Z"] | |
pub fn stencil_state_record_depth_fail_action( | |
this: *mut root::rx::render::frontend::stencil_state, | |
_action: root::rx::render::frontend::stencil_state_operation_type, | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}?record_depth_pass_action@stencil_state@frontend@render@rx@@QEAAXW4operation_type@1234@@Z"] | |
pub fn stencil_state_record_depth_pass_action( | |
this: *mut root::rx::render::frontend::stencil_state, | |
_action: root::rx::render::frontend::stencil_state_operation_type, | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}?record_front_fail_action@stencil_state@frontend@render@rx@@QEAAXW4operation_type@1234@@Z"] | |
pub fn stencil_state_record_front_fail_action( | |
this: *mut root::rx::render::frontend::stencil_state, | |
_action: root::rx::render::frontend::stencil_state_operation_type, | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}?record_front_depth_fail_action@stencil_state@frontend@render@rx@@QEAAXW4operation_type@1234@@Z"] | |
pub fn stencil_state_record_front_depth_fail_action( | |
this: *mut root::rx::render::frontend::stencil_state, | |
_action: root::rx::render::frontend::stencil_state_operation_type, | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}?record_front_depth_pass_action@stencil_state@frontend@render@rx@@QEAAXW4operation_type@1234@@Z"] | |
pub fn stencil_state_record_front_depth_pass_action( | |
this: *mut root::rx::render::frontend::stencil_state, | |
_action: root::rx::render::frontend::stencil_state_operation_type, | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}?record_back_fail_action@stencil_state@frontend@render@rx@@QEAAXW4operation_type@1234@@Z"] | |
pub fn stencil_state_record_back_fail_action( | |
this: *mut root::rx::render::frontend::stencil_state, | |
_action: root::rx::render::frontend::stencil_state_operation_type, | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}?record_back_depth_fail_action@stencil_state@frontend@render@rx@@QEAAXW4operation_type@1234@@Z"] | |
pub fn stencil_state_record_back_depth_fail_action( | |
this: *mut root::rx::render::frontend::stencil_state, | |
_action: root::rx::render::frontend::stencil_state_operation_type, | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}?record_back_depth_pass_action@stencil_state@frontend@render@rx@@QEAAXW4operation_type@1234@@Z"] | |
pub fn stencil_state_record_back_depth_pass_action( | |
this: *mut root::rx::render::frontend::stencil_state, | |
_action: root::rx::render::frontend::stencil_state_operation_type, | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}?enabled@stencil_state@frontend@render@rx@@QEBA_NXZ"] | |
pub fn stencil_state_enabled(this: *const root::rx::render::frontend::stencil_state) -> bool; | |
} | |
extern "C" { | |
#[link_name = "\u{1}?write_mask@stencil_state@frontend@render@rx@@QEBAEXZ"] | |
pub fn stencil_state_write_mask( | |
this: *const root::rx::render::frontend::stencil_state, | |
) -> root::rx_u8; | |
} | |
extern "C" { | |
#[link_name = "\u{1}?function@stencil_state@frontend@render@rx@@QEBA?AW4function_type@1234@XZ"] | |
pub fn stencil_state_function( | |
this: *const root::rx::render::frontend::stencil_state, | |
) -> root::rx::render::frontend::stencil_state_function_type; | |
} | |
extern "C" { | |
#[link_name = "\u{1}?reference@stencil_state@frontend@render@rx@@QEBAEXZ"] | |
pub fn stencil_state_reference( | |
this: *const root::rx::render::frontend::stencil_state, | |
) -> root::rx_u8; | |
} | |
extern "C" { | |
#[link_name = "\u{1}?mask@stencil_state@frontend@render@rx@@QEBAEXZ"] | |
pub fn stencil_state_mask(this: *const root::rx::render::frontend::stencil_state) -> root::rx_u8; | |
} | |
extern "C" { | |
#[link_name = "\u{1}?front_fail_action@stencil_state@frontend@render@rx@@QEBA?AW4operation_type@1234@XZ"] | |
pub fn stencil_state_front_fail_action( | |
this: *const root::rx::render::frontend::stencil_state, | |
) -> root::rx::render::frontend::stencil_state_operation_type; | |
} | |
extern "C" { | |
#[link_name = "\u{1}?front_depth_fail_action@stencil_state@frontend@render@rx@@QEBA?AW4operation_type@1234@XZ"] | |
pub fn stencil_state_front_depth_fail_action( | |
this: *const root::rx::render::frontend::stencil_state, | |
) -> root::rx::render::frontend::stencil_state_operation_type; | |
} | |
extern "C" { | |
#[link_name = "\u{1}?front_depth_pass_action@stencil_state@frontend@render@rx@@QEBA?AW4operation_type@1234@XZ"] | |
pub fn stencil_state_front_depth_pass_action( | |
this: *const root::rx::render::frontend::stencil_state, | |
) -> root::rx::render::frontend::stencil_state_operation_type; | |
} | |
extern "C" { | |
#[link_name = "\u{1}?back_fail_action@stencil_state@frontend@render@rx@@QEBA?AW4operation_type@1234@XZ"] | |
pub fn stencil_state_back_fail_action( | |
this: *const root::rx::render::frontend::stencil_state, | |
) -> root::rx::render::frontend::stencil_state_operation_type; | |
} | |
extern "C" { | |
#[link_name = "\u{1}?back_depth_fail_action@stencil_state@frontend@render@rx@@QEBA?AW4operation_type@1234@XZ"] | |
pub fn stencil_state_back_depth_fail_action( | |
this: *const root::rx::render::frontend::stencil_state, | |
) -> root::rx::render::frontend::stencil_state_operation_type; | |
} | |
extern "C" { | |
#[link_name = "\u{1}?back_depth_pass_action@stencil_state@frontend@render@rx@@QEBA?AW4operation_type@1234@XZ"] | |
pub fn stencil_state_back_depth_pass_action( | |
this: *const root::rx::render::frontend::stencil_state, | |
) -> root::rx::render::frontend::stencil_state_operation_type; | |
} | |
extern "C" { | |
#[link_name = "\u{1}?flush@stencil_state@frontend@render@rx@@QEAA_KXZ"] | |
pub fn stencil_state_flush(this: *mut root::rx::render::frontend::stencil_state) -> root::rx_size; | |
} | |
extern "C" { | |
#[link_name = "\u{1}??0stencil_state@frontend@render@rx@@QEAA@XZ"] | |
pub fn stencil_state_stencil_state(this: *mut root::rx::render::frontend::stencil_state); | |
} | |
impl stencil_state { | |
#[inline] | |
pub unsafe fn record_enable(&mut self, _enable: bool) { | |
stencil_state_record_enable(self, _enable) | |
} | |
#[inline] | |
pub unsafe fn record_write_mask(&mut self, _write_mask: root::rx_u8) { | |
stencil_state_record_write_mask(self, _write_mask) | |
} | |
#[inline] | |
pub unsafe fn record_function( | |
&mut self, | |
_function: root::rx::render::frontend::stencil_state_function_type, | |
) { | |
stencil_state_record_function(self, _function) | |
} | |
#[inline] | |
pub unsafe fn record_reference(&mut self, _reference: root::rx_u8) { | |
stencil_state_record_reference(self, _reference) | |
} | |
#[inline] | |
pub unsafe fn record_mask(&mut self, _mask: root::rx_u8) { | |
stencil_state_record_mask(self, _mask) | |
} | |
#[inline] | |
pub unsafe fn record_fail_action( | |
&mut self, | |
_action: root::rx::render::frontend::stencil_state_operation_type, | |
) { | |
stencil_state_record_fail_action(self, _action) | |
} | |
#[inline] | |
pub unsafe fn record_depth_fail_action( | |
&mut self, | |
_action: root::rx::render::frontend::stencil_state_operation_type, | |
) { | |
stencil_state_record_depth_fail_action(self, _action) | |
} | |
#[inline] | |
pub unsafe fn record_depth_pass_action( | |
&mut self, | |
_action: root::rx::render::frontend::stencil_state_operation_type, | |
) { | |
stencil_state_record_depth_pass_action(self, _action) | |
} | |
#[inline] | |
pub unsafe fn record_front_fail_action( | |
&mut self, | |
_action: root::rx::render::frontend::stencil_state_operation_type, | |
) { | |
stencil_state_record_front_fail_action(self, _action) | |
} | |
#[inline] | |
pub unsafe fn record_front_depth_fail_action( | |
&mut self, | |
_action: root::rx::render::frontend::stencil_state_operation_type, | |
) { | |
stencil_state_record_front_depth_fail_action(self, _action) | |
} | |
#[inline] | |
pub unsafe fn record_front_depth_pass_action( | |
&mut self, | |
_action: root::rx::render::frontend::stencil_state_operation_type, | |
) { | |
stencil_state_record_front_depth_pass_action(self, _action) | |
} | |
#[inline] | |
pub unsafe fn record_back_fail_action( | |
&mut self, | |
_action: root::rx::render::frontend::stencil_state_operation_type, | |
) { | |
stencil_state_record_back_fail_action(self, _action) | |
} | |
#[inline] | |
pub unsafe fn record_back_depth_fail_action( | |
&mut self, | |
_action: root::rx::render::frontend::stencil_state_operation_type, | |
) { | |
stencil_state_record_back_depth_fail_action(self, _action) | |
} | |
#[inline] | |
pub unsafe fn record_back_depth_pass_action( | |
&mut self, | |
_action: root::rx::render::frontend::stencil_state_operation_type, | |
) { | |
stencil_state_record_back_depth_pass_action(self, _action) | |
} | |
#[inline] | |
pub unsafe fn enabled(&self) -> bool { | |
stencil_state_enabled(self) | |
} | |
#[inline] | |
pub unsafe fn write_mask(&self) -> root::rx_u8 { | |
stencil_state_write_mask(self) | |
} | |
#[inline] | |
pub unsafe fn function(&self) -> root::rx::render::frontend::stencil_state_function_type { | |
stencil_state_function(self) | |
} | |
#[inline] | |
pub unsafe fn reference(&self) -> root::rx_u8 { | |
stencil_state_reference(self) | |
} | |
#[inline] | |
pub unsafe fn mask(&self) -> root::rx_u8 { | |
stencil_state_mask(self) | |
} | |
#[inline] | |
pub unsafe fn front_fail_action(&self) -> root::rx::render::frontend::stencil_state_operation_type { | |
stencil_state_front_fail_action(self) | |
} | |
#[inline] | |
pub unsafe fn front_depth_fail_action( | |
&self, | |
) -> root::rx::render::frontend::stencil_state_operation_type { | |
stencil_state_front_depth_fail_action(self) | |
} | |
#[inline] | |
pub unsafe fn front_depth_pass_action( | |
&self, | |
) -> root::rx::render::frontend::stencil_state_operation_type { | |
stencil_state_front_depth_pass_action(self) | |
} | |
#[inline] | |
pub unsafe fn back_fail_action(&self) -> root::rx::render::frontend::stencil_state_operation_type { | |
stencil_state_back_fail_action(self) | |
} | |
#[inline] | |
pub unsafe fn back_depth_fail_action( | |
&self, | |
) -> root::rx::render::frontend::stencil_state_operation_type { | |
stencil_state_back_depth_fail_action(self) | |
} | |
#[inline] | |
pub unsafe fn back_depth_pass_action( | |
&self, | |
) -> root::rx::render::frontend::stencil_state_operation_type { | |
stencil_state_back_depth_pass_action(self) | |
} | |
#[inline] | |
pub unsafe fn flush(&mut self) -> root::rx_size { | |
stencil_state_flush(self) | |
} | |
#[inline] | |
pub unsafe fn new() -> Self { | |
let mut __bindgen_tmp = ::core::mem::MaybeUninit::uninit(); | |
stencil_state_stencil_state(__bindgen_tmp.as_mut_ptr()); | |
__bindgen_tmp.assume_init() | |
} | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct polygon_state { | |
pub m_hash: root::rx_size, | |
pub m_mode: root::rx::render::frontend::polygon_state_mode_type, | |
} | |
impl polygon_state_mode_type { | |
pub const k_point: root::rx::render::frontend::polygon_state_mode_type = | |
root::rx::render::frontend::polygon_state_mode_type(0); | |
} | |
impl polygon_state_mode_type { | |
pub const k_line: root::rx::render::frontend::polygon_state_mode_type = | |
root::rx::render::frontend::polygon_state_mode_type(1); | |
} | |
impl polygon_state_mode_type { | |
pub const k_fill: root::rx::render::frontend::polygon_state_mode_type = | |
root::rx::render::frontend::polygon_state_mode_type(2); | |
} | |
impl ::core::ops::BitOr<root::rx::render::frontend::polygon_state_mode_type> | |
for root::rx::render::frontend::polygon_state_mode_type | |
{ | |
type Output = Self; | |
#[inline] | |
fn bitor(self, other: Self) -> Self { | |
polygon_state_mode_type(self.0 | other.0) | |
} | |
} | |
impl ::core::ops::BitOrAssign for root::rx::render::frontend::polygon_state_mode_type { | |
#[inline] | |
fn bitor_assign(&mut self, rhs: root::rx::render::frontend::polygon_state_mode_type) { | |
self.0 |= rhs.0; | |
} | |
} | |
impl ::core::ops::BitAnd<root::rx::render::frontend::polygon_state_mode_type> | |
for root::rx::render::frontend::polygon_state_mode_type | |
{ | |
type Output = Self; | |
#[inline] | |
fn bitand(self, other: Self) -> Self { | |
polygon_state_mode_type(self.0 & other.0) | |
} | |
} | |
impl ::core::ops::BitAndAssign for root::rx::render::frontend::polygon_state_mode_type { | |
#[inline] | |
fn bitand_assign(&mut self, rhs: root::rx::render::frontend::polygon_state_mode_type) { | |
self.0 &= rhs.0; | |
} | |
} | |
#[repr(transparent)] | |
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] | |
pub struct polygon_state_mode_type(pub u8); | |
extern "C" { | |
#[link_name = "\u{1}?k_dirty_bit@polygon_state@frontend@render@rx@@0_KB"] | |
pub static polygon_state_k_dirty_bit: root::rx_size; | |
} | |
#[test] | |
fn bindgen_test_layout_polygon_state() { | |
assert_eq!( | |
::core::mem::size_of::<polygon_state>(), | |
16usize, | |
concat!("Size of: ", stringify!(polygon_state)) | |
); | |
assert_eq!( | |
::core::mem::align_of::<polygon_state>(), | |
8usize, | |
concat!("Alignment of ", stringify!(polygon_state)) | |
); | |
assert_eq!( | |
unsafe { &(*(::core::ptr::null::<polygon_state>())).m_hash as *const _ as usize }, | |
0usize, | |
concat!("Offset of field: ", stringify!(polygon_state), "::", stringify!(m_hash)) | |
); | |
assert_eq!( | |
unsafe { &(*(::core::ptr::null::<polygon_state>())).m_mode as *const _ as usize }, | |
8usize, | |
concat!("Offset of field: ", stringify!(polygon_state), "::", stringify!(m_mode)) | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}?record_mode@polygon_state@frontend@render@rx@@QEAAXW4mode_type@1234@@Z"] | |
pub fn polygon_state_record_mode( | |
this: *mut root::rx::render::frontend::polygon_state, | |
_mode: root::rx::render::frontend::polygon_state_mode_type, | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}?mode@polygon_state@frontend@render@rx@@QEBA?AW4mode_type@1234@XZ"] | |
pub fn polygon_state_mode( | |
this: *const root::rx::render::frontend::polygon_state, | |
) -> root::rx::render::frontend::polygon_state_mode_type; | |
} | |
extern "C" { | |
#[link_name = "\u{1}?flush@polygon_state@frontend@render@rx@@QEAA_KXZ"] | |
pub fn polygon_state_flush(this: *mut root::rx::render::frontend::polygon_state) -> root::rx_size; | |
} | |
extern "C" { | |
#[link_name = "\u{1}??0polygon_state@frontend@render@rx@@QEAA@XZ"] | |
pub fn polygon_state_polygon_state(this: *mut root::rx::render::frontend::polygon_state); | |
} | |
impl polygon_state { | |
#[inline] | |
pub unsafe fn record_mode(&mut self, _mode: root::rx::render::frontend::polygon_state_mode_type) { | |
polygon_state_record_mode(self, _mode) | |
} | |
#[inline] | |
pub unsafe fn mode(&self) -> root::rx::render::frontend::polygon_state_mode_type { | |
polygon_state_mode(self) | |
} | |
#[inline] | |
pub unsafe fn flush(&mut self) -> root::rx_size { | |
polygon_state_flush(self) | |
} | |
#[inline] | |
pub unsafe fn new() -> Self { | |
let mut __bindgen_tmp = ::core::mem::MaybeUninit::uninit(); | |
polygon_state_polygon_state(__bindgen_tmp.as_mut_ptr()); | |
__bindgen_tmp.assume_init() | |
} | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct viewport_state { | |
pub m_hash: root::rx_size, | |
pub m_offset: root::rx::math::vec2i, | |
pub m_dimensions: root::rx::math::vec2z, | |
} | |
extern "C" { | |
#[link_name = "\u{1}?k_dirty_bit@viewport_state@frontend@render@rx@@0_KB"] | |
pub static viewport_state_k_dirty_bit: root::rx_size; | |
} | |
#[test] | |
fn bindgen_test_layout_viewport_state() { | |
assert_eq!( | |
::core::mem::size_of::<viewport_state>(), | |
32usize, | |
concat!("Size of: ", stringify!(viewport_state)) | |
); | |
assert_eq!( | |
::core::mem::align_of::<viewport_state>(), | |
8usize, | |
concat!("Alignment of ", stringify!(viewport_state)) | |
); | |
assert_eq!( | |
unsafe { &(*(::core::ptr::null::<viewport_state>())).m_hash as *const _ as usize }, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(viewport_state), | |
"::", | |
stringify!(m_hash) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::core::ptr::null::<viewport_state>())).m_offset as *const _ as usize }, | |
8usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(viewport_state), | |
"::", | |
stringify!(m_offset) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::core::ptr::null::<viewport_state>())).m_dimensions as *const _ as usize }, | |
16usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(viewport_state), | |
"::", | |
stringify!(m_dimensions) | |
) | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}?record_offset@viewport_state@frontend@render@rx@@QEAAXAEBU?$vec2@H@math@4@@Z"] | |
pub fn viewport_state_record_offset( | |
this: *mut root::rx::render::frontend::viewport_state, | |
_offset: *const root::rx::math::vec2i, | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}?record_dimensions@viewport_state@frontend@render@rx@@QEAAXAEBU?$vec2@_K@math@4@@Z"] | |
pub fn viewport_state_record_dimensions( | |
this: *mut root::rx::render::frontend::viewport_state, | |
_dimensions: *const root::rx::math::vec2z, | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}?offset@viewport_state@frontend@render@rx@@QEGBAAEBU?$vec2@H@math@4@XZ"] | |
pub fn viewport_state_offset( | |
this: *const root::rx::render::frontend::viewport_state, | |
) -> *const root::rx::math::vec2i; | |
} | |
extern "C" { | |
#[link_name = "\u{1}?dimensions@viewport_state@frontend@render@rx@@QEGBAAEBU?$vec2@_K@math@4@XZ"] | |
pub fn viewport_state_dimensions( | |
this: *const root::rx::render::frontend::viewport_state, | |
) -> *const root::rx::math::vec2z; | |
} | |
extern "C" { | |
#[link_name = "\u{1}?flush@viewport_state@frontend@render@rx@@QEAA_KXZ"] | |
pub fn viewport_state_flush(this: *mut root::rx::render::frontend::viewport_state) | |
-> root::rx_size; | |
} | |
extern "C" { | |
#[link_name = "\u{1}??0viewport_state@frontend@render@rx@@QEAA@XZ"] | |
pub fn viewport_state_viewport_state(this: *mut root::rx::render::frontend::viewport_state); | |
} | |
impl viewport_state { | |
#[inline] | |
pub unsafe fn record_offset(&mut self, _offset: *const root::rx::math::vec2i) { | |
viewport_state_record_offset(self, _offset) | |
} | |
#[inline] | |
pub unsafe fn record_dimensions(&mut self, _dimensions: *const root::rx::math::vec2z) { | |
viewport_state_record_dimensions(self, _dimensions) | |
} | |
#[inline] | |
pub unsafe fn offset(&self) -> *const root::rx::math::vec2i { | |
viewport_state_offset(self) | |
} | |
#[inline] | |
pub unsafe fn dimensions(&self) -> *const root::rx::math::vec2z { | |
viewport_state_dimensions(self) | |
} | |
#[inline] | |
pub unsafe fn flush(&mut self) -> root::rx_size { | |
viewport_state_flush(self) | |
} | |
#[inline] | |
pub unsafe fn new() -> Self { | |
let mut __bindgen_tmp = ::core::mem::MaybeUninit::uninit(); | |
viewport_state_viewport_state(__bindgen_tmp.as_mut_ptr()); | |
__bindgen_tmp.assume_init() | |
} | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct state { | |
pub scissor: root::rx::render::frontend::scissor_state, | |
pub blend: root::rx::render::frontend::blend_state, | |
pub depth: root::rx::render::frontend::depth_state, | |
pub cull: root::rx::render::frontend::cull_state, | |
pub stencil: root::rx::render::frontend::stencil_state, | |
pub polygon: root::rx::render::frontend::polygon_state, | |
pub viewport: root::rx::render::frontend::viewport_state, | |
pub m_hash: root::rx_size, | |
} | |
#[test] | |
fn bindgen_test_layout_state() { | |
assert_eq!( | |
::core::mem::size_of::<state>(), | |
160usize, | |
concat!("Size of: ", stringify!(state)) | |
); | |
assert_eq!( | |
::core::mem::align_of::<state>(), | |
8usize, | |
concat!("Alignment of ", stringify!(state)) | |
); | |
assert_eq!( | |
unsafe { &(*(::core::ptr::null::<state>())).scissor as *const _ as usize }, | |
0usize, | |
concat!("Offset of field: ", stringify!(state), "::", stringify!(scissor)) | |
); | |
assert_eq!( | |
unsafe { &(*(::core::ptr::null::<state>())).blend as *const _ as usize }, | |
32usize, | |
concat!("Offset of field: ", stringify!(state), "::", stringify!(blend)) | |
); | |
assert_eq!( | |
unsafe { &(*(::core::ptr::null::<state>())).depth as *const _ as usize }, | |
48usize, | |
concat!("Offset of field: ", stringify!(state), "::", stringify!(depth)) | |
); | |
assert_eq!( | |
unsafe { &(*(::core::ptr::null::<state>())).cull as *const _ as usize }, | |
64usize, | |
concat!("Offset of field: ", stringify!(state), "::", stringify!(cull)) | |
); | |
assert_eq!( | |
unsafe { &(*(::core::ptr::null::<state>())).stencil as *const _ as usize }, | |
80usize, | |
concat!("Offset of field: ", stringify!(state), "::", stringify!(stencil)) | |
); | |
assert_eq!( | |
unsafe { &(*(::core::ptr::null::<state>())).polygon as *const _ as usize }, | |
104usize, | |
concat!("Offset of field: ", stringify!(state), "::", stringify!(polygon)) | |
); | |
assert_eq!( | |
unsafe { &(*(::core::ptr::null::<state>())).viewport as *const _ as usize }, | |
120usize, | |
concat!("Offset of field: ", stringify!(state), "::", stringify!(viewport)) | |
); | |
assert_eq!( | |
unsafe { &(*(::core::ptr::null::<state>())).m_hash as *const _ as usize }, | |
152usize, | |
concat!("Offset of field: ", stringify!(state), "::", stringify!(m_hash)) | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}?flush@state@frontend@render@rx@@QEAAXXZ"] | |
pub fn state_flush(this: *mut root::rx::render::frontend::state); | |
} | |
impl state { | |
#[inline] | |
pub unsafe fn flush(&mut self) { | |
state_flush(self) | |
} | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct target { | |
_unused: [u8; 0], | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct buffer { | |
_unused: [u8; 0], | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct program { | |
_unused: [u8; 0], | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct texture1D { | |
_unused: [u8; 0], | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct texture2D { | |
_unused: [u8; 0], | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct texture3D { | |
_unused: [u8; 0], | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct textureCM { | |
_unused: [u8; 0], | |
} | |
impl primitive_type { | |
pub const k_triangles: root::rx::render::frontend::primitive_type = | |
root::rx::render::frontend::primitive_type(0); | |
} | |
impl primitive_type { | |
pub const k_triangle_strip: root::rx::render::frontend::primitive_type = | |
root::rx::render::frontend::primitive_type(1); | |
} | |
impl primitive_type { | |
pub const k_points: root::rx::render::frontend::primitive_type = | |
root::rx::render::frontend::primitive_type(2); | |
} | |
impl primitive_type { | |
pub const k_lines: root::rx::render::frontend::primitive_type = | |
root::rx::render::frontend::primitive_type(3); | |
} | |
impl ::core::ops::BitOr<root::rx::render::frontend::primitive_type> for root::rx::render::frontend::primitive_type { | |
type Output = Self; | |
#[inline] | |
fn bitor(self, other: Self) -> Self { | |
primitive_type(self.0 | other.0) | |
} | |
} | |
impl ::core::ops::BitOrAssign for root::rx::render::frontend::primitive_type { | |
#[inline] | |
fn bitor_assign(&mut self, rhs: root::rx::render::frontend::primitive_type) { | |
self.0 |= rhs.0; | |
} | |
} | |
impl ::core::ops::BitAnd<root::rx::render::frontend::primitive_type> for root::rx::render::frontend::primitive_type { | |
type Output = Self; | |
#[inline] | |
fn bitand(self, other: Self) -> Self { | |
primitive_type(self.0 & other.0) | |
} | |
} | |
impl ::core::ops::BitAndAssign for root::rx::render::frontend::primitive_type { | |
#[inline] | |
fn bitand_assign(&mut self, rhs: root::rx::render::frontend::primitive_type) { | |
self.0 &= rhs.0; | |
} | |
} | |
#[repr(transparent)] | |
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] | |
pub struct primitive_type(pub u8); | |
impl command_type { | |
pub const k_resource_allocate: root::rx::render::frontend::command_type = | |
root::rx::render::frontend::command_type(0); | |
} | |
impl command_type { | |
pub const k_resource_construct: root::rx::render::frontend::command_type = | |
root::rx::render::frontend::command_type(1); | |
} | |
impl command_type { | |
pub const k_resource_update: root::rx::render::frontend::command_type = | |
root::rx::render::frontend::command_type(2); | |
} | |
impl command_type { | |
pub const k_resource_destroy: root::rx::render::frontend::command_type = | |
root::rx::render::frontend::command_type(3); | |
} | |
impl command_type { | |
pub const k_clear: root::rx::render::frontend::command_type = | |
root::rx::render::frontend::command_type(4); | |
} | |
impl command_type { | |
pub const k_draw: root::rx::render::frontend::command_type = | |
root::rx::render::frontend::command_type(5); | |
} | |
impl command_type { | |
pub const k_blit: root::rx::render::frontend::command_type = | |
root::rx::render::frontend::command_type(6); | |
} | |
impl command_type { | |
pub const k_profile: root::rx::render::frontend::command_type = | |
root::rx::render::frontend::command_type(7); | |
} | |
impl ::core::ops::BitOr<root::rx::render::frontend::command_type> for root::rx::render::frontend::command_type { | |
type Output = Self; | |
#[inline] | |
fn bitor(self, other: Self) -> Self { | |
command_type(self.0 | other.0) | |
} | |
} | |
impl ::core::ops::BitOrAssign for root::rx::render::frontend::command_type { | |
#[inline] | |
fn bitor_assign(&mut self, rhs: root::rx::render::frontend::command_type) { | |
self.0 |= rhs.0; | |
} | |
} | |
impl ::core::ops::BitAnd<root::rx::render::frontend::command_type> for root::rx::render::frontend::command_type { | |
type Output = Self; | |
#[inline] | |
fn bitand(self, other: Self) -> Self { | |
command_type(self.0 & other.0) | |
} | |
} | |
impl ::core::ops::BitAndAssign for root::rx::render::frontend::command_type { | |
#[inline] | |
fn bitand_assign(&mut self, rhs: root::rx::render::frontend::command_type) { | |
self.0 &= rhs.0; | |
} | |
} | |
#[repr(transparent)] | |
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] | |
pub struct command_type(pub u8); | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct command_header_info { | |
pub file: *const ::std::os::raw::c_char, | |
pub description: *const ::std::os::raw::c_char, | |
pub line: ::std::os::raw::c_int, | |
} | |
#[test] | |
fn bindgen_test_layout_command_header_info() { | |
assert_eq!( | |
::core::mem::size_of::<command_header_info>(), | |
24usize, | |
concat!("Size of: ", stringify!(command_header_info)) | |
); | |
assert_eq!( | |
::core::mem::align_of::<command_header_info>(), | |
8usize, | |
concat!("Alignment of ", stringify!(command_header_info)) | |
); | |
assert_eq!( | |
unsafe { &(*(::core::ptr::null::<command_header_info>())).file as *const _ as usize }, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(command_header_info), | |
"::", | |
stringify!(file) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::core::ptr::null::<command_header_info>())).description as *const _ as usize }, | |
8usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(command_header_info), | |
"::", | |
stringify!(description) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::core::ptr::null::<command_header_info>())).line as *const _ as usize }, | |
16usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(command_header_info), | |
"::", | |
stringify!(line) | |
) | |
); | |
} | |
#[repr(C)] | |
#[derive(Debug)] | |
pub struct command_buffer { | |
pub m_base_allocator: *mut root::rx::memory::allocator, | |
pub m_base_memory: *mut root::rx_byte, | |
pub m_allocator: root::rx::memory::bump_point_allocator, | |
} | |
#[test] | |
fn bindgen_test_layout_command_buffer() { | |
assert_eq!( | |
::core::mem::size_of::<command_buffer>(), | |
72usize, | |
concat!("Size of: ", stringify!(command_buffer)) | |
); | |
assert_eq!( | |
::core::mem::align_of::<command_buffer>(), | |
8usize, | |
concat!("Alignment of ", stringify!(command_buffer)) | |
); | |
assert_eq!( | |
unsafe { &(*(::core::ptr::null::<command_buffer>())).m_base_allocator as *const _ as usize }, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(command_buffer), | |
"::", | |
stringify!(m_base_allocator) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::core::ptr::null::<command_buffer>())).m_base_memory as *const _ as usize }, | |
8usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(command_buffer), | |
"::", | |
stringify!(m_base_memory) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::core::ptr::null::<command_buffer>())).m_allocator as *const _ as usize }, | |
16usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(command_buffer), | |
"::", | |
stringify!(m_allocator) | |
) | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}?allocate@command_buffer@frontend@render@rx@@QEAAPEAE_KW4command_type@234@AEBUinfo@command_header@234@@Z"] | |
pub fn command_buffer_allocate( | |
this: *mut root::rx::render::frontend::command_buffer, | |
_size: root::rx_size, | |
_command: root::rx::render::frontend::command_type, | |
_info: *const root::rx::render::frontend::command_header_info, | |
) -> *mut root::rx_byte; | |
} | |
extern "C" { | |
#[link_name = "\u{1}?reset@command_buffer@frontend@render@rx@@QEAAXXZ"] | |
pub fn command_buffer_reset(this: *mut root::rx::render::frontend::command_buffer); | |
} | |
extern "C" { | |
#[link_name = "\u{1}?used@command_buffer@frontend@render@rx@@QEBA_KXZ"] | |
pub fn command_buffer_used( | |
this: *const root::rx::render::frontend::command_buffer, | |
) -> root::rx_size; | |
} | |
extern "C" { | |
#[link_name = "\u{1}?size@command_buffer@frontend@render@rx@@QEBA_KXZ"] | |
pub fn command_buffer_size( | |
this: *const root::rx::render::frontend::command_buffer, | |
) -> root::rx_size; | |
} | |
extern "C" { | |
#[link_name = "\u{1}??0command_buffer@frontend@render@rx@@QEAA@PEAUallocator@memory@3@_K@Z"] | |
pub fn command_buffer_command_buffer( | |
this: *mut root::rx::render::frontend::command_buffer, | |
_allocator: *mut root::rx::memory::allocator, | |
_size: root::rx_size, | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}??_Dcommand_buffer@frontend@render@rx@@QEAAXXZ"] | |
pub fn command_buffer_command_buffer_destructor( | |
this: *mut root::rx::render::frontend::command_buffer, | |
); | |
} | |
impl command_buffer { | |
#[inline] | |
pub unsafe fn allocate( | |
&mut self, | |
_size: root::rx_size, | |
_command: root::rx::render::frontend::command_type, | |
_info: *const root::rx::render::frontend::command_header_info, | |
) -> *mut root::rx_byte { | |
command_buffer_allocate(self, _size, _command, _info) | |
} | |
#[inline] | |
pub unsafe fn reset(&mut self) { | |
command_buffer_reset(self) | |
} | |
#[inline] | |
pub unsafe fn used(&self) -> root::rx_size { | |
command_buffer_used(self) | |
} | |
#[inline] | |
pub unsafe fn size(&self) -> root::rx_size { | |
command_buffer_size(self) | |
} | |
#[inline] | |
pub unsafe fn new(_allocator: *mut root::rx::memory::allocator, _size: root::rx_size) -> Self { | |
let mut __bindgen_tmp = ::core::mem::MaybeUninit::uninit(); | |
command_buffer_command_buffer(__bindgen_tmp.as_mut_ptr(), _allocator, _size); | |
__bindgen_tmp.assume_init() | |
} | |
#[inline] | |
pub unsafe fn destruct(&mut self) { | |
command_buffer_command_buffer_destructor(self) | |
} | |
} | |
#[repr(C)] | |
#[derive(Copy, Clone)] | |
pub struct buffers { | |
pub __bindgen_anon_1: root::rx::render::frontend::buffers__bindgen_ty_1, | |
pub m_index: root::rx_size, | |
} | |
#[repr(C)] | |
#[derive(Copy, Clone)] | |
pub union buffers__bindgen_ty_1 { | |
pub m_nat: root::rx::utility::nat, | |
pub m_elements: [::std::os::raw::c_int; 8usize], | |
_bindgen_union_align: [u32; 8usize], | |
} | |
#[test] | |
fn bindgen_test_layout_buffers__bindgen_ty_1() { | |
assert_eq!( | |
::core::mem::size_of::<buffers__bindgen_ty_1>(), | |
32usize, | |
concat!("Size of: ", stringify!(buffers__bindgen_ty_1)) | |
); | |
assert_eq!( | |
::core::mem::align_of::<buffers__bindgen_ty_1>(), | |
4usize, | |
concat!("Alignment of ", stringify!(buffers__bindgen_ty_1)) | |
); | |
assert_eq!( | |
unsafe { &(*(::core::ptr::null::<buffers__bindgen_ty_1>())).m_nat as *const _ as usize }, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(buffers__bindgen_ty_1), | |
"::", | |
stringify!(m_nat) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::core::ptr::null::<buffers__bindgen_ty_1>())).m_elements as *const _ as usize }, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(buffers__bindgen_ty_1), | |
"::", | |
stringify!(m_elements) | |
) | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}?k_max_buffers@buffers@frontend@render@rx@@2_KB"] | |
pub static buffers_k_max_buffers: root::rx_size; | |
} | |
#[test] | |
fn bindgen_test_layout_buffers() { | |
assert_eq!( | |
::core::mem::size_of::<buffers>(), | |
40usize, | |
concat!("Size of: ", stringify!(buffers)) | |
); | |
assert_eq!( | |
::core::mem::align_of::<buffers>(), | |
8usize, | |
concat!("Alignment of ", stringify!(buffers)) | |
); | |
assert_eq!( | |
unsafe { &(*(::core::ptr::null::<buffers>())).m_index as *const _ as usize }, | |
32usize, | |
concat!("Offset of field: ", stringify!(buffers), "::", stringify!(m_index)) | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}?add@buffers@frontend@render@rx@@QEAAXH@Z"] | |
pub fn buffers_add(this: *mut root::rx::render::frontend::buffers, _buffer: ::std::os::raw::c_int); | |
} | |
extern "C" { | |
#[link_name = "\u{1}?size@buffers@frontend@render@rx@@QEBA_KXZ"] | |
pub fn buffers_size(this: *const root::rx::render::frontend::buffers) -> root::rx_size; | |
} | |
extern "C" { | |
#[link_name = "\u{1}?is_empty@buffers@frontend@render@rx@@QEBA_NXZ"] | |
pub fn buffers_is_empty(this: *const root::rx::render::frontend::buffers) -> bool; | |
} | |
extern "C" { | |
#[link_name = "\u{1}?last@buffers@frontend@render@rx@@QEBAHXZ"] | |
pub fn buffers_last(this: *const root::rx::render::frontend::buffers) -> ::std::os::raw::c_int; | |
} | |
impl buffers { | |
#[inline] | |
pub unsafe fn add(&mut self, _buffer: ::std::os::raw::c_int) { | |
buffers_add(self, _buffer) | |
} | |
#[inline] | |
pub unsafe fn size(&self) -> root::rx_size { | |
buffers_size(self) | |
} | |
#[inline] | |
pub unsafe fn is_empty(&self) -> bool { | |
buffers_is_empty(self) | |
} | |
#[inline] | |
pub unsafe fn last(&self) -> ::std::os::raw::c_int { | |
buffers_last(self) | |
} | |
} | |
#[repr(C)] | |
#[derive(Copy, Clone)] | |
pub struct textures { | |
pub __bindgen_anon_1: root::rx::render::frontend::textures__bindgen_ty_1, | |
pub m_index: root::rx_size, | |
} | |
#[repr(C)] | |
#[derive(Copy, Clone)] | |
pub union textures__bindgen_ty_1 { | |
pub m_nat: root::rx::utility::nat, | |
pub m_handles: [*mut ::core::ffi::c_void; 8usize], | |
_bindgen_union_align: [u64; 8usize], | |
} | |
#[test] | |
fn bindgen_test_layout_textures__bindgen_ty_1() { | |
assert_eq!( | |
::core::mem::size_of::<textures__bindgen_ty_1>(), | |
64usize, | |
concat!("Size of: ", stringify!(textures__bindgen_ty_1)) | |
); | |
assert_eq!( | |
::core::mem::align_of::<textures__bindgen_ty_1>(), | |
8usize, | |
concat!("Alignment of ", stringify!(textures__bindgen_ty_1)) | |
); | |
assert_eq!( | |
unsafe { &(*(::core::ptr::null::<textures__bindgen_ty_1>())).m_nat as *const _ as usize }, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(textures__bindgen_ty_1), | |
"::", | |
stringify!(m_nat) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::core::ptr::null::<textures__bindgen_ty_1>())).m_handles as *const _ as usize }, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(textures__bindgen_ty_1), | |
"::", | |
stringify!(m_handles) | |
) | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}?k_max_textures@textures@frontend@render@rx@@2_KB"] | |
pub static textures_k_max_textures: root::rx_size; | |
} | |
#[test] | |
fn bindgen_test_layout_textures() { | |
assert_eq!( | |
::core::mem::size_of::<textures>(), | |
72usize, | |
concat!("Size of: ", stringify!(textures)) | |
); | |
assert_eq!( | |
::core::mem::align_of::<textures>(), | |
8usize, | |
concat!("Alignment of ", stringify!(textures)) | |
); | |
assert_eq!( | |
unsafe { &(*(::core::ptr::null::<textures>())).m_index as *const _ as usize }, | |
64usize, | |
concat!("Offset of field: ", stringify!(textures), "::", stringify!(m_index)) | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}?is_empty@textures@frontend@render@rx@@QEBA_NXZ"] | |
pub fn textures_is_empty(this: *const root::rx::render::frontend::textures) -> bool; | |
} | |
extern "C" { | |
#[link_name = "\u{1}?size@textures@frontend@render@rx@@QEBA_KXZ"] | |
pub fn textures_size(this: *const root::rx::render::frontend::textures) -> root::rx_size; | |
} | |
extern "C" { | |
#[link_name = "\u{1}?clear@textures@frontend@render@rx@@QEAAXXZ"] | |
pub fn textures_clear(this: *mut root::rx::render::frontend::textures); | |
} | |
impl textures { | |
#[inline] | |
pub unsafe fn is_empty(&self) -> bool { | |
textures_is_empty(self) | |
} | |
#[inline] | |
pub unsafe fn size(&self) -> root::rx_size { | |
textures_size(self) | |
} | |
#[inline] | |
pub unsafe fn clear(&mut self) { | |
textures_clear(self) | |
} | |
} | |
impl resource_type { | |
pub const k_buffer: root::rx::render::frontend::resource_type = | |
root::rx::render::frontend::resource_type(0); | |
} | |
impl resource_type { | |
pub const k_target: root::rx::render::frontend::resource_type = | |
root::rx::render::frontend::resource_type(1); | |
} | |
impl resource_type { | |
pub const k_program: root::rx::render::frontend::resource_type = | |
root::rx::render::frontend::resource_type(2); | |
} | |
impl resource_type { | |
pub const k_texture1D: root::rx::render::frontend::resource_type = | |
root::rx::render::frontend::resource_type(3); | |
} | |
impl resource_type { | |
pub const k_texture2D: root::rx::render::frontend::resource_type = | |
root::rx::render::frontend::resource_type(4); | |
} | |
impl resource_type { | |
pub const k_texture3D: root::rx::render::frontend::resource_type = | |
root::rx::render::frontend::resource_type(5); | |
} | |
impl resource_type { | |
pub const k_textureCM: root::rx::render::frontend::resource_type = | |
root::rx::render::frontend::resource_type(6); | |
} | |
impl ::core::ops::BitOr<root::rx::render::frontend::resource_type> for root::rx::render::frontend::resource_type { | |
type Output = Self; | |
#[inline] | |
fn bitor(self, other: Self) -> Self { | |
resource_type(self.0 | other.0) | |
} | |
} | |
impl ::core::ops::BitOrAssign for root::rx::render::frontend::resource_type { | |
#[inline] | |
fn bitor_assign(&mut self, rhs: root::rx::render::frontend::resource_type) { | |
self.0 |= rhs.0; | |
} | |
} | |
impl ::core::ops::BitAnd<root::rx::render::frontend::resource_type> for root::rx::render::frontend::resource_type { | |
type Output = Self; | |
#[inline] | |
fn bitand(self, other: Self) -> Self { | |
resource_type(self.0 & other.0) | |
} | |
} | |
impl ::core::ops::BitAndAssign for root::rx::render::frontend::resource_type { | |
#[inline] | |
fn bitand_assign(&mut self, rhs: root::rx::render::frontend::resource_type) { | |
self.0 &= rhs.0; | |
} | |
} | |
#[repr(transparent)] | |
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] | |
pub struct resource_type(pub i32); | |
#[repr(C)] | |
#[derive(Debug)] | |
pub struct frame_timer { | |
pub m_frequency: root::rx_u64, | |
pub m_resolution: root::rx_f64, | |
pub m_max_frame_ticks: root::rx_f32, | |
pub m_last_second_ticks: root::rx_u64, | |
pub m_frame_count: root::rx_u64, | |
pub m_min_ticks: root::rx_u64, | |
pub m_max_ticks: root::rx_u64, | |
pub m_average_ticks: root::rx_f64, | |
pub m_delta_time: root::rx_f64, | |
pub m_last_frame_ticks: root::rx_u64, | |
pub m_current_ticks: root::rx_u64, | |
pub m_target_ticks: root::rx_u64, | |
pub m_frame_min: root::rx_u64, | |
pub m_frame_max: root::rx_u64, | |
pub m_frame_average: root::rx_f32, | |
pub m_frames_per_second: root::rx_u32, | |
pub m_frame_times: root::rx::vector<root::rx::render::frontend::frame_timer_frame_time>, | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct frame_timer_frame_time { | |
pub life: root::rx_f64, | |
pub frame: root::rx_f64, | |
} | |
#[test] | |
fn bindgen_test_layout_frame_timer_frame_time() { | |
assert_eq!( | |
::core::mem::size_of::<frame_timer_frame_time>(), | |
16usize, | |
concat!("Size of: ", stringify!(frame_timer_frame_time)) | |
); | |
assert_eq!( | |
::core::mem::align_of::<frame_timer_frame_time>(), | |
8usize, | |
concat!("Alignment of ", stringify!(frame_timer_frame_time)) | |
); | |
assert_eq!( | |
unsafe { &(*(::core::ptr::null::<frame_timer_frame_time>())).life as *const _ as usize }, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(frame_timer_frame_time), | |
"::", | |
stringify!(life) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::core::ptr::null::<frame_timer_frame_time>())).frame as *const _ as usize }, | |
8usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(frame_timer_frame_time), | |
"::", | |
stringify!(frame) | |
) | |
); | |
} | |
pub const frame_timer_k_frame_history_seconds: root::rx_f64 = 2.0; | |
#[test] | |
fn bindgen_test_layout_frame_timer() { | |
assert_eq!( | |
::core::mem::size_of::<frame_timer>(), | |
152usize, | |
concat!("Size of: ", stringify!(frame_timer)) | |
); | |
assert_eq!( | |
::core::mem::align_of::<frame_timer>(), | |
8usize, | |
concat!("Alignment of ", stringify!(frame_timer)) | |
); | |
assert_eq!( | |
unsafe { &(*(::core::ptr::null::<frame_timer>())).m_frequency as *const _ as usize }, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(frame_timer), | |
"::", | |
stringify!(m_frequency) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::core::ptr::null::<frame_timer>())).m_resolution as *const _ as usize }, | |
8usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(frame_timer), | |
"::", | |
stringify!(m_resolution) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::core::ptr::null::<frame_timer>())).m_max_frame_ticks as *const _ as usize }, | |
16usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(frame_timer), | |
"::", | |
stringify!(m_max_frame_ticks) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::core::ptr::null::<frame_timer>())).m_last_second_ticks as *const _ as usize }, | |
24usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(frame_timer), | |
"::", | |
stringify!(m_last_second_ticks) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::core::ptr::null::<frame_timer>())).m_frame_count as *const _ as usize }, | |
32usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(frame_timer), | |
"::", | |
stringify!(m_frame_count) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::core::ptr::null::<frame_timer>())).m_min_ticks as *const _ as usize }, | |
40usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(frame_timer), | |
"::", | |
stringify!(m_min_ticks) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::core::ptr::null::<frame_timer>())).m_max_ticks as *const _ as usize }, | |
48usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(frame_timer), | |
"::", | |
stringify!(m_max_ticks) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::core::ptr::null::<frame_timer>())).m_average_ticks as *const _ as usize }, | |
56usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(frame_timer), | |
"::", | |
stringify!(m_average_ticks) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::core::ptr::null::<frame_timer>())).m_delta_time as *const _ as usize }, | |
64usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(frame_timer), | |
"::", | |
stringify!(m_delta_time) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::core::ptr::null::<frame_timer>())).m_last_frame_ticks as *const _ as usize }, | |
72usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(frame_timer), | |
"::", | |
stringify!(m_last_frame_ticks) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::core::ptr::null::<frame_timer>())).m_current_ticks as *const _ as usize }, | |
80usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(frame_timer), | |
"::", | |
stringify!(m_current_ticks) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::core::ptr::null::<frame_timer>())).m_target_ticks as *const _ as usize }, | |
88usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(frame_timer), | |
"::", | |
stringify!(m_target_ticks) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::core::ptr::null::<frame_timer>())).m_frame_min as *const _ as usize }, | |
96usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(frame_timer), | |
"::", | |
stringify!(m_frame_min) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::core::ptr::null::<frame_timer>())).m_frame_max as *const _ as usize }, | |
104usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(frame_timer), | |
"::", | |
stringify!(m_frame_max) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::core::ptr::null::<frame_timer>())).m_frame_average as *const _ as usize }, | |
112usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(frame_timer), | |
"::", | |
stringify!(m_frame_average) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::core::ptr::null::<frame_timer>())).m_frames_per_second as *const _ as usize }, | |
116usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(frame_timer), | |
"::", | |
stringify!(m_frames_per_second) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::core::ptr::null::<frame_timer>())).m_frame_times as *const _ as usize }, | |
120usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(frame_timer), | |
"::", | |
stringify!(m_frame_times) | |
) | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}?mspf@frame_timer@frontend@render@rx@@QEBAMXZ"] | |
pub fn frame_timer_mspf(this: *const root::rx::render::frontend::frame_timer) -> root::rx_f32; | |
} | |
extern "C" { | |
#[link_name = "\u{1}?fps@frame_timer@frontend@render@rx@@QEBAIXZ"] | |
pub fn frame_timer_fps(this: *const root::rx::render::frontend::frame_timer) -> root::rx_u32; | |
} | |
extern "C" { | |
#[link_name = "\u{1}?delta_time@frame_timer@frontend@render@rx@@QEBAMXZ"] | |
pub fn frame_timer_delta_time(this: *const root::rx::render::frontend::frame_timer) | |
-> root::rx_f32; | |
} | |
extern "C" { | |
#[link_name = "\u{1}?resolution@frame_timer@frontend@render@rx@@QEBANXZ"] | |
pub fn frame_timer_resolution(this: *const root::rx::render::frontend::frame_timer) | |
-> root::rx_f64; | |
} | |
extern "C" { | |
#[link_name = "\u{1}?ticks@frame_timer@frontend@render@rx@@QEBA_KXZ"] | |
pub fn frame_timer_ticks(this: *const root::rx::render::frontend::frame_timer) -> root::rx_u64; | |
} | |
extern "C" { | |
#[link_name = "\u{1}?cap_fps@frame_timer@frontend@render@rx@@QEAAXM@Z"] | |
pub fn frame_timer_cap_fps( | |
this: *mut root::rx::render::frontend::frame_timer, | |
_max_fps: root::rx_f32, | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}?reset@frame_timer@frontend@render@rx@@QEAAXXZ"] | |
pub fn frame_timer_reset(this: *mut root::rx::render::frontend::frame_timer); | |
} | |
extern "C" { | |
#[link_name = "\u{1}?update@frame_timer@frontend@render@rx@@QEAA_NXZ"] | |
pub fn frame_timer_update(this: *mut root::rx::render::frontend::frame_timer) -> bool; | |
} | |
extern "C" { | |
#[link_name = "\u{1}?frame_times@frame_timer@frontend@render@rx@@QEGBAAEBU?$vector@Uframe_time@frame_timer@frontend@render@rx@@@4@XZ"] | |
pub fn frame_timer_frame_times( | |
this: *const root::rx::render::frontend::frame_timer, | |
) -> *const root::rx::vector<root::rx::render::frontend::frame_timer_frame_time>; | |
} | |
extern "C" { | |
#[link_name = "\u{1}??0frame_timer@frontend@render@rx@@QEAA@XZ"] | |
pub fn frame_timer_frame_timer(this: *mut root::rx::render::frontend::frame_timer); | |
} | |
impl frame_timer { | |
#[inline] | |
pub unsafe fn mspf(&self) -> root::rx_f32 { | |
frame_timer_mspf(self) | |
} | |
#[inline] | |
pub unsafe fn fps(&self) -> root::rx_u32 { | |
frame_timer_fps(self) | |
} | |
#[inline] | |
pub unsafe fn delta_time(&self) -> root::rx_f32 { | |
frame_timer_delta_time(self) | |
} | |
#[inline] | |
pub unsafe fn resolution(&self) -> root::rx_f64 { | |
frame_timer_resolution(self) | |
} | |
#[inline] | |
pub unsafe fn ticks(&self) -> root::rx_u64 { | |
frame_timer_ticks(self) | |
} | |
#[inline] | |
pub unsafe fn cap_fps(&mut self, _max_fps: root::rx_f32) { | |
frame_timer_cap_fps(self, _max_fps) | |
} | |
#[inline] | |
pub unsafe fn reset(&mut self) { | |
frame_timer_reset(self) | |
} | |
#[inline] | |
pub unsafe fn update(&mut self) -> bool { | |
frame_timer_update(self) | |
} | |
#[inline] | |
pub unsafe fn frame_times( | |
&self, | |
) -> *const root::rx::vector<root::rx::render::frontend::frame_timer_frame_time> | |
{ | |
frame_timer_frame_times(self) | |
} | |
#[inline] | |
pub unsafe fn new() -> Self { | |
let mut __bindgen_tmp = ::core::mem::MaybeUninit::uninit(); | |
frame_timer_frame_timer(__bindgen_tmp.as_mut_ptr()); | |
__bindgen_tmp.assume_init() | |
} | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct technique { | |
_unused: [u8; 0], | |
} | |
/// <div rustbindgen opaque></div> | |
#[repr(C)] | |
#[repr(align(8))] | |
pub struct interface { | |
pub _bindgen_opaque_blob: [u64; 235usize], | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct interface_statistics { | |
pub total: root::rx_size, | |
pub used: root::rx_size, | |
pub cached: root::rx_size, | |
pub memory: root::rx_size, | |
} | |
#[test] | |
fn bindgen_test_layout_interface_statistics() { | |
assert_eq!( | |
::core::mem::size_of::<interface_statistics>(), | |
32usize, | |
concat!("Size of: ", stringify!(interface_statistics)) | |
); | |
assert_eq!( | |
::core::mem::align_of::<interface_statistics>(), | |
8usize, | |
concat!("Alignment of ", stringify!(interface_statistics)) | |
); | |
assert_eq!( | |
unsafe { &(*(::core::ptr::null::<interface_statistics>())).total as *const _ as usize }, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(interface_statistics), | |
"::", | |
stringify!(total) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::core::ptr::null::<interface_statistics>())).used as *const _ as usize }, | |
8usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(interface_statistics), | |
"::", | |
stringify!(used) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::core::ptr::null::<interface_statistics>())).cached as *const _ as usize }, | |
16usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(interface_statistics), | |
"::", | |
stringify!(cached) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::core::ptr::null::<interface_statistics>())).memory as *const _ as usize }, | |
24usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(interface_statistics), | |
"::", | |
stringify!(memory) | |
) | |
); | |
} | |
#[repr(C)] | |
#[derive(Debug)] | |
pub struct interface_device_info { | |
pub vendor: root::rx::string, | |
pub renderer: root::rx::string, | |
pub version: root::rx::string, | |
} | |
#[test] | |
fn bindgen_test_layout_interface_device_info() { | |
assert_eq!( | |
::core::mem::size_of::<interface_device_info>(), | |
144usize, | |
concat!("Size of: ", stringify!(interface_device_info)) | |
); | |
assert_eq!( | |
::core::mem::align_of::<interface_device_info>(), | |
8usize, | |
concat!("Alignment of ", stringify!(interface_device_info)) | |
); | |
assert_eq!( | |
unsafe { &(*(::core::ptr::null::<interface_device_info>())).vendor as *const _ as usize }, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(interface_device_info), | |
"::", | |
stringify!(vendor) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::core::ptr::null::<interface_device_info>())).renderer as *const _ as usize }, | |
48usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(interface_device_info), | |
"::", | |
stringify!(renderer) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::core::ptr::null::<interface_device_info>())).version as *const _ as usize }, | |
96usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(interface_device_info), | |
"::", | |
stringify!(version) | |
) | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}??0device_info@interface@frontend@render@rx@@QEAA@PEAUallocator@memory@4@@Z"] | |
pub fn interface_device_info_device_info( | |
this: *mut root::rx::render::frontend::interface_device_info, | |
_allocator: *mut root::rx::memory::allocator, | |
); | |
} | |
impl interface_device_info { | |
#[inline] | |
pub unsafe fn new(_allocator: *mut root::rx::memory::allocator) -> Self { | |
let mut __bindgen_tmp = ::core::mem::MaybeUninit::uninit(); | |
interface_device_info_device_info(__bindgen_tmp.as_mut_ptr(), _allocator); | |
__bindgen_tmp.assume_init() | |
} | |
} | |
#[test] | |
fn bindgen_test_layout_interface() { | |
assert_eq!( | |
::core::mem::size_of::<interface>(), | |
1880usize, | |
concat!("Size of: ", stringify!(interface)) | |
); | |
assert_eq!( | |
::core::mem::align_of::<interface>(), | |
8usize, | |
concat!("Alignment of ", stringify!(interface)) | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}?create_buffer@interface@frontend@render@rx@@QEAAPEAUbuffer@234@AEBUinfo@command_header@234@@Z"] | |
pub fn interface_create_buffer( | |
this: *mut root::rx::render::frontend::interface, | |
_info: *const root::rx::render::frontend::command_header_info, | |
) -> *mut root::rx::render::frontend::buffer; | |
} | |
extern "C" { | |
#[link_name = "\u{1}?create_target@interface@frontend@render@rx@@QEAAPEAUtarget@234@AEBUinfo@command_header@234@@Z"] | |
pub fn interface_create_target( | |
this: *mut root::rx::render::frontend::interface, | |
_info: *const root::rx::render::frontend::command_header_info, | |
) -> *mut root::rx::render::frontend::target; | |
} | |
extern "C" { | |
#[link_name = "\u{1}?create_program@interface@frontend@render@rx@@QEAAPEAUprogram@234@AEBUinfo@command_header@234@@Z"] | |
pub fn interface_create_program( | |
this: *mut root::rx::render::frontend::interface, | |
_info: *const root::rx::render::frontend::command_header_info, | |
) -> *mut root::rx::render::frontend::program; | |
} | |
extern "C" { | |
#[link_name = "\u{1}?create_texture1D@interface@frontend@render@rx@@QEAAPEAUtexture1D@234@AEBUinfo@command_header@234@@Z"] | |
pub fn interface_create_texture1D( | |
this: *mut root::rx::render::frontend::interface, | |
_info: *const root::rx::render::frontend::command_header_info, | |
) -> *mut root::rx::render::frontend::texture1D; | |
} | |
extern "C" { | |
#[link_name = "\u{1}?create_texture2D@interface@frontend@render@rx@@QEAAPEAUtexture2D@234@AEBUinfo@command_header@234@@Z"] | |
pub fn interface_create_texture2D( | |
this: *mut root::rx::render::frontend::interface, | |
_info: *const root::rx::render::frontend::command_header_info, | |
) -> *mut root::rx::render::frontend::texture2D; | |
} | |
extern "C" { | |
#[link_name = "\u{1}?create_texture3D@interface@frontend@render@rx@@QEAAPEAUtexture3D@234@AEBUinfo@command_header@234@@Z"] | |
pub fn interface_create_texture3D( | |
this: *mut root::rx::render::frontend::interface, | |
_info: *const root::rx::render::frontend::command_header_info, | |
) -> *mut root::rx::render::frontend::texture3D; | |
} | |
extern "C" { | |
#[link_name = "\u{1}?create_textureCM@interface@frontend@render@rx@@QEAAPEAUtextureCM@234@AEBUinfo@command_header@234@@Z"] | |
pub fn interface_create_textureCM( | |
this: *mut root::rx::render::frontend::interface, | |
_info: *const root::rx::render::frontend::command_header_info, | |
) -> *mut root::rx::render::frontend::textureCM; | |
} | |
extern "C" { | |
#[link_name = "\u{1}?initialize_buffer@interface@frontend@render@rx@@QEAAXAEBUinfo@command_header@234@PEAUbuffer@234@@Z"] | |
pub fn interface_initialize_buffer( | |
this: *mut root::rx::render::frontend::interface, | |
_info: *const root::rx::render::frontend::command_header_info, | |
_buffer: *mut root::rx::render::frontend::buffer, | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}?initialize_target@interface@frontend@render@rx@@QEAAXAEBUinfo@command_header@234@PEAUtarget@234@@Z"] | |
pub fn interface_initialize_target( | |
this: *mut root::rx::render::frontend::interface, | |
_info: *const root::rx::render::frontend::command_header_info, | |
_target: *mut root::rx::render::frontend::target, | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}?initialize_program@interface@frontend@render@rx@@QEAAXAEBUinfo@command_header@234@PEAUprogram@234@@Z"] | |
pub fn interface_initialize_program( | |
this: *mut root::rx::render::frontend::interface, | |
_info: *const root::rx::render::frontend::command_header_info, | |
_program: *mut root::rx::render::frontend::program, | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}?initialize_texture@interface@frontend@render@rx@@QEAAXAEBUinfo@command_header@234@PEAUtexture1D@234@@Z"] | |
pub fn interface_initialize_texture( | |
this: *mut root::rx::render::frontend::interface, | |
_info: *const root::rx::render::frontend::command_header_info, | |
_texture: *mut root::rx::render::frontend::texture1D, | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}?initialize_texture@interface@frontend@render@rx@@QEAAXAEBUinfo@command_header@234@PEAUtexture2D@234@@Z"] | |
pub fn interface_initialize_texture1( | |
this: *mut root::rx::render::frontend::interface, | |
_info: *const root::rx::render::frontend::command_header_info, | |
_texture: *mut root::rx::render::frontend::texture2D, | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}?initialize_texture@interface@frontend@render@rx@@QEAAXAEBUinfo@command_header@234@PEAUtexture3D@234@@Z"] | |
pub fn interface_initialize_texture2( | |
this: *mut root::rx::render::frontend::interface, | |
_info: *const root::rx::render::frontend::command_header_info, | |
_texture: *mut root::rx::render::frontend::texture3D, | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}?initialize_texture@interface@frontend@render@rx@@QEAAXAEBUinfo@command_header@234@PEAUtextureCM@234@@Z"] | |
pub fn interface_initialize_texture3( | |
this: *mut root::rx::render::frontend::interface, | |
_info: *const root::rx::render::frontend::command_header_info, | |
_texture: *mut root::rx::render::frontend::textureCM, | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}?update_buffer@interface@frontend@render@rx@@QEAAXAEBUinfo@command_header@234@PEAUbuffer@234@@Z"] | |
pub fn interface_update_buffer( | |
this: *mut root::rx::render::frontend::interface, | |
_info: *const root::rx::render::frontend::command_header_info, | |
_buffer: *mut root::rx::render::frontend::buffer, | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}?update_texture@interface@frontend@render@rx@@QEAAXAEBUinfo@command_header@234@PEAUtexture1D@234@@Z"] | |
pub fn interface_update_texture( | |
this: *mut root::rx::render::frontend::interface, | |
_info: *const root::rx::render::frontend::command_header_info, | |
_texture: *mut root::rx::render::frontend::texture1D, | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}?update_texture@interface@frontend@render@rx@@QEAAXAEBUinfo@command_header@234@PEAUtexture2D@234@@Z"] | |
pub fn interface_update_texture1( | |
this: *mut root::rx::render::frontend::interface, | |
_info: *const root::rx::render::frontend::command_header_info, | |
_texture: *mut root::rx::render::frontend::texture2D, | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}?update_texture@interface@frontend@render@rx@@QEAAXAEBUinfo@command_header@234@PEAUtexture3D@234@@Z"] | |
pub fn interface_update_texture2( | |
this: *mut root::rx::render::frontend::interface, | |
_info: *const root::rx::render::frontend::command_header_info, | |
_texture: *mut root::rx::render::frontend::texture3D, | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}?destroy_buffer@interface@frontend@render@rx@@QEAAXAEBUinfo@command_header@234@PEAUbuffer@234@@Z"] | |
pub fn interface_destroy_buffer( | |
this: *mut root::rx::render::frontend::interface, | |
_info: *const root::rx::render::frontend::command_header_info, | |
_buffer: *mut root::rx::render::frontend::buffer, | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}?destroy_target@interface@frontend@render@rx@@QEAAXAEBUinfo@command_header@234@PEAUtarget@234@@Z"] | |
pub fn interface_destroy_target( | |
this: *mut root::rx::render::frontend::interface, | |
_info: *const root::rx::render::frontend::command_header_info, | |
_target: *mut root::rx::render::frontend::target, | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}?destroy_program@interface@frontend@render@rx@@QEAAXAEBUinfo@command_header@234@PEAUprogram@234@@Z"] | |
pub fn interface_destroy_program( | |
this: *mut root::rx::render::frontend::interface, | |
_info: *const root::rx::render::frontend::command_header_info, | |
_program: *mut root::rx::render::frontend::program, | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}?destroy_texture@interface@frontend@render@rx@@QEAAXAEBUinfo@command_header@234@PEAUtexture1D@234@@Z"] | |
pub fn interface_destroy_texture( | |
this: *mut root::rx::render::frontend::interface, | |
_info: *const root::rx::render::frontend::command_header_info, | |
_texture: *mut root::rx::render::frontend::texture1D, | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}?destroy_texture@interface@frontend@render@rx@@QEAAXAEBUinfo@command_header@234@PEAUtexture2D@234@@Z"] | |
pub fn interface_destroy_texture1( | |
this: *mut root::rx::render::frontend::interface, | |
_info: *const root::rx::render::frontend::command_header_info, | |
_texture: *mut root::rx::render::frontend::texture2D, | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}?destroy_texture@interface@frontend@render@rx@@QEAAXAEBUinfo@command_header@234@PEAUtexture3D@234@@Z"] | |
pub fn interface_destroy_texture2( | |
this: *mut root::rx::render::frontend::interface, | |
_info: *const root::rx::render::frontend::command_header_info, | |
_texture: *mut root::rx::render::frontend::texture3D, | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}?destroy_texture@interface@frontend@render@rx@@QEAAXAEBUinfo@command_header@234@PEAUtextureCM@234@@Z"] | |
pub fn interface_destroy_texture3( | |
this: *mut root::rx::render::frontend::interface, | |
_info: *const root::rx::render::frontend::command_header_info, | |
_texture: *mut root::rx::render::frontend::textureCM, | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}?draw@interface@frontend@render@rx@@QEAAXAEBUinfo@command_header@234@AEBUstate@234@PEAUtarget@234@AEBUbuffers@234@PEAUbuffer@234@PEAUprogram@234@_K6W4primitive_type@234@AEBUtextures@234@@Z"] | |
pub fn interface_draw( | |
this: *mut root::rx::render::frontend::interface, | |
_info: *const root::rx::render::frontend::command_header_info, | |
_state: *const root::rx::render::frontend::state, | |
_target: *mut root::rx::render::frontend::target, | |
_draw_buffers: *const root::rx::render::frontend::buffers, | |
_buffer: *mut root::rx::render::frontend::buffer, | |
_program: *mut root::rx::render::frontend::program, | |
_count: root::rx_size, | |
_offset: root::rx_size, | |
_primitive_type: root::rx::render::frontend::primitive_type, | |
_draw_textures: *const root::rx::render::frontend::textures, | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}?clear@interface@frontend@render@rx@@QEAAXAEBUinfo@command_header@234@AEBUstate@234@PEAUtarget@234@AEBUbuffers@234@IZZ"] | |
pub fn interface_clear( | |
this: *mut root::rx::render::frontend::interface, | |
_info: *const root::rx::render::frontend::command_header_info, | |
_state: *const root::rx::render::frontend::state, | |
_target: *mut root::rx::render::frontend::target, | |
_draw_buffers: *const root::rx::render::frontend::buffers, | |
_clear_mask: root::rx_u32, | |
... | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}?blit@interface@frontend@render@rx@@QEAAXAEBUinfo@command_header@234@AEBUstate@234@PEAUtarget@234@_K23@Z"] | |
pub fn interface_blit( | |
this: *mut root::rx::render::frontend::interface, | |
_info: *const root::rx::render::frontend::command_header_info, | |
_state: *const root::rx::render::frontend::state, | |
_src: *mut root::rx::render::frontend::target, | |
_src_attachment: root::rx_size, | |
_dst: *mut root::rx::render::frontend::target, | |
_dst_attachment: root::rx_size, | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}?profile@interface@frontend@render@rx@@QEAAXPEBD@Z"] | |
pub fn interface_profile( | |
this: *mut root::rx::render::frontend::interface, | |
_tag: *const ::std::os::raw::c_char, | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}?resize@interface@frontend@render@rx@@QEAAXAEBU?$vec2@_K@math@4@@Z"] | |
pub fn interface_resize( | |
this: *mut root::rx::render::frontend::interface, | |
_resolution: *const root::rx::math::vec2z, | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}?process@interface@frontend@render@rx@@QEAA_NXZ"] | |
pub fn interface_process(this: *mut root::rx::render::frontend::interface) -> bool; | |
} | |
extern "C" { | |
#[link_name = "\u{1}?swap@interface@frontend@render@rx@@QEAA_NXZ"] | |
pub fn interface_swap(this: *mut root::rx::render::frontend::interface) -> bool; | |
} | |
extern "C" { | |
#[link_name = "\u{1}?cached_buffer@interface@frontend@render@rx@@QEAAPEAUbuffer@234@AEBUstring@4@@Z"] | |
pub fn interface_cached_buffer( | |
this: *mut root::rx::render::frontend::interface, | |
_key: *const root::rx::string, | |
) -> *mut root::rx::render::frontend::buffer; | |
} | |
extern "C" { | |
#[link_name = "\u{1}?cached_target@interface@frontend@render@rx@@QEAAPEAUtarget@234@AEBUstring@4@@Z"] | |
pub fn interface_cached_target( | |
this: *mut root::rx::render::frontend::interface, | |
_key: *const root::rx::string, | |
) -> *mut root::rx::render::frontend::target; | |
} | |
extern "C" { | |
#[link_name = "\u{1}?cached_texture1D@interface@frontend@render@rx@@QEAAPEAUtexture1D@234@AEBUstring@4@@Z"] | |
pub fn interface_cached_texture1D( | |
this: *mut root::rx::render::frontend::interface, | |
_key: *const root::rx::string, | |
) -> *mut root::rx::render::frontend::texture1D; | |
} | |
extern "C" { | |
#[link_name = "\u{1}?cached_texture2D@interface@frontend@render@rx@@QEAAPEAUtexture2D@234@AEBUstring@4@@Z"] | |
pub fn interface_cached_texture2D( | |
this: *mut root::rx::render::frontend::interface, | |
_key: *const root::rx::string, | |
) -> *mut root::rx::render::frontend::texture2D; | |
} | |
extern "C" { | |
#[link_name = "\u{1}?cached_texture3D@interface@frontend@render@rx@@QEAAPEAUtexture3D@234@AEBUstring@4@@Z"] | |
pub fn interface_cached_texture3D( | |
this: *mut root::rx::render::frontend::interface, | |
_key: *const root::rx::string, | |
) -> *mut root::rx::render::frontend::texture3D; | |
} | |
extern "C" { | |
#[link_name = "\u{1}?cached_textureCM@interface@frontend@render@rx@@QEAAPEAUtextureCM@234@AEBUstring@4@@Z"] | |
pub fn interface_cached_textureCM( | |
this: *mut root::rx::render::frontend::interface, | |
_key: *const root::rx::string, | |
) -> *mut root::rx::render::frontend::textureCM; | |
} | |
extern "C" { | |
#[link_name = "\u{1}?cache_buffer@interface@frontend@render@rx@@QEAAXPEAUbuffer@234@AEBUstring@4@@Z"] | |
pub fn interface_cache_buffer( | |
this: *mut root::rx::render::frontend::interface, | |
_buffer: *mut root::rx::render::frontend::buffer, | |
_key: *const root::rx::string, | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}?cache_target@interface@frontend@render@rx@@QEAAXPEAUtarget@234@AEBUstring@4@@Z"] | |
pub fn interface_cache_target( | |
this: *mut root::rx::render::frontend::interface, | |
_target: *mut root::rx::render::frontend::target, | |
_key: *const root::rx::string, | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}?cache_texture@interface@frontend@render@rx@@QEAAXPEAUtexture1D@234@AEBUstring@4@@Z"] | |
pub fn interface_cache_texture( | |
this: *mut root::rx::render::frontend::interface, | |
_texture: *mut root::rx::render::frontend::texture1D, | |
_key: *const root::rx::string, | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}?cache_texture@interface@frontend@render@rx@@QEAAXPEAUtexture2D@234@AEBUstring@4@@Z"] | |
pub fn interface_cache_texture1( | |
this: *mut root::rx::render::frontend::interface, | |
_texture: *mut root::rx::render::frontend::texture2D, | |
_key: *const root::rx::string, | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}?cache_texture@interface@frontend@render@rx@@QEAAXPEAUtexture3D@234@AEBUstring@4@@Z"] | |
pub fn interface_cache_texture2( | |
this: *mut root::rx::render::frontend::interface, | |
_texture: *mut root::rx::render::frontend::texture3D, | |
_key: *const root::rx::string, | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}?cache_texture@interface@frontend@render@rx@@QEAAXPEAUtextureCM@234@AEBUstring@4@@Z"] | |
pub fn interface_cache_texture3( | |
this: *mut root::rx::render::frontend::interface, | |
_texture: *mut root::rx::render::frontend::textureCM, | |
_key: *const root::rx::string, | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}?allocator@interface@frontend@render@rx@@QEBAPEAU0memory@4@XZ"] | |
pub fn interface_allocator( | |
this: *const root::rx::render::frontend::interface, | |
) -> *mut root::rx::memory::allocator; | |
} | |
extern "C" { | |
#[link_name = "\u{1}?stats@interface@frontend@render@rx@@QEBA?AUstatistics@1234@W4type@resource@234@@Z"] | |
pub fn interface_stats( | |
this: *const root::rx::render::frontend::interface, | |
_type: root::rx::render::frontend::resource_type, | |
) -> root::rx::render::frontend::interface_statistics; | |
} | |
extern "C" { | |
#[link_name = "\u{1}?draw_calls@interface@frontend@render@rx@@QEBA_KXZ"] | |
pub fn interface_draw_calls(this: *const root::rx::render::frontend::interface) -> root::rx_size; | |
} | |
extern "C" { | |
#[link_name = "\u{1}?clear_calls@interface@frontend@render@rx@@QEBA_KXZ"] | |
pub fn interface_clear_calls(this: *const root::rx::render::frontend::interface) -> root::rx_size; | |
} | |
extern "C" { | |
#[link_name = "\u{1}?blit_calls@interface@frontend@render@rx@@QEBA_KXZ"] | |
pub fn interface_blit_calls(this: *const root::rx::render::frontend::interface) -> root::rx_size; | |
} | |
extern "C" { | |
#[link_name = "\u{1}?vertices@interface@frontend@render@rx@@QEBA_KXZ"] | |
pub fn interface_vertices(this: *const root::rx::render::frontend::interface) -> root::rx_size; | |
} | |
extern "C" { | |
#[link_name = "\u{1}?triangles@interface@frontend@render@rx@@QEBA_KXZ"] | |
pub fn interface_triangles(this: *const root::rx::render::frontend::interface) -> root::rx_size; | |
} | |
extern "C" { | |
#[link_name = "\u{1}?lines@interface@frontend@render@rx@@QEBA_KXZ"] | |
pub fn interface_lines(this: *const root::rx::render::frontend::interface) -> root::rx_size; | |
} | |
extern "C" { | |
#[link_name = "\u{1}?points@interface@frontend@render@rx@@QEBA_KXZ"] | |
pub fn interface_points(this: *const root::rx::render::frontend::interface) -> root::rx_size; | |
} | |
extern "C" { | |
#[link_name = "\u{1}?swapchain@interface@frontend@render@rx@@QEBAPEAUtarget@234@XZ"] | |
pub fn interface_swapchain( | |
this: *const root::rx::render::frontend::interface, | |
) -> *mut root::rx::render::frontend::target; | |
} | |
extern "C" { | |
#[link_name = "\u{1}?find_technique_by_name@interface@frontend@render@rx@@QEAAPEAUtechnique@234@PEBD@Z"] | |
pub fn interface_find_technique_by_name( | |
this: *mut root::rx::render::frontend::interface, | |
_name: *const ::std::os::raw::c_char, | |
) -> *mut root::rx::render::frontend::technique; | |
} | |
extern "C" { | |
#[link_name = "\u{1}?timer@interface@frontend@render@rx@@QEGBAAEBUframe_timer@234@XZ"] | |
pub fn interface_timer( | |
this: *const root::rx::render::frontend::interface, | |
) -> *const root::rx::render::frontend::frame_timer; | |
} | |
extern "C" { | |
#[link_name = "\u{1}?get_command_buffer@interface@frontend@render@rx@@QEGBAAEBUcommand_buffer@234@XZ"] | |
pub fn interface_get_command_buffer( | |
this: *const root::rx::render::frontend::interface, | |
) -> *const root::rx::render::frontend::command_buffer; | |
} | |
extern "C" { | |
#[link_name = "\u{1}?get_device_info@interface@frontend@render@rx@@QEGBAAEBUdevice_info@1234@XZ"] | |
pub fn interface_get_device_info( | |
this: *const root::rx::render::frontend::interface, | |
) -> *const root::rx::render::frontend::interface_device_info; | |
} | |
extern "C" { | |
#[link_name = "\u{1}??0interface@frontend@render@rx@@QEAA@PEAUallocator@memory@3@PEAU0backend@23@@Z"] | |
pub fn interface_interface( | |
this: *mut root::rx::render::frontend::interface, | |
_allocator: *mut root::rx::memory::allocator, | |
_backend: *mut root::rx::render::backend::interface, | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}??_Dinterface@frontend@render@rx@@QEAAXXZ"] | |
pub fn interface_interface_destructor(this: *mut root::rx::render::frontend::interface); | |
} | |
impl interface { | |
#[inline] | |
pub unsafe fn create_buffer( | |
&mut self, | |
_info: *const root::rx::render::frontend::command_header_info, | |
) -> *mut root::rx::render::frontend::buffer { | |
interface_create_buffer(self, _info) | |
} | |
#[inline] | |
pub unsafe fn create_target( | |
&mut self, | |
_info: *const root::rx::render::frontend::command_header_info, | |
) -> *mut root::rx::render::frontend::target { | |
interface_create_target(self, _info) | |
} | |
#[inline] | |
pub unsafe fn create_program( | |
&mut self, | |
_info: *const root::rx::render::frontend::command_header_info, | |
) -> *mut root::rx::render::frontend::program { | |
interface_create_program(self, _info) | |
} | |
#[inline] | |
pub unsafe fn create_texture1D( | |
&mut self, | |
_info: *const root::rx::render::frontend::command_header_info, | |
) -> *mut root::rx::render::frontend::texture1D { | |
interface_create_texture1D(self, _info) | |
} | |
#[inline] | |
pub unsafe fn create_texture2D( | |
&mut self, | |
_info: *const root::rx::render::frontend::command_header_info, | |
) -> *mut root::rx::render::frontend::texture2D { | |
interface_create_texture2D(self, _info) | |
} | |
#[inline] | |
pub unsafe fn create_texture3D( | |
&mut self, | |
_info: *const root::rx::render::frontend::command_header_info, | |
) -> *mut root::rx::render::frontend::texture3D { | |
interface_create_texture3D(self, _info) | |
} | |
#[inline] | |
pub unsafe fn create_textureCM( | |
&mut self, | |
_info: *const root::rx::render::frontend::command_header_info, | |
) -> *mut root::rx::render::frontend::textureCM { | |
interface_create_textureCM(self, _info) | |
} | |
#[inline] | |
pub unsafe fn initialize_buffer( | |
&mut self, | |
_info: *const root::rx::render::frontend::command_header_info, | |
_buffer: *mut root::rx::render::frontend::buffer, | |
) { | |
interface_initialize_buffer(self, _info, _buffer) | |
} | |
#[inline] | |
pub unsafe fn initialize_target( | |
&mut self, | |
_info: *const root::rx::render::frontend::command_header_info, | |
_target: *mut root::rx::render::frontend::target, | |
) { | |
interface_initialize_target(self, _info, _target) | |
} | |
#[inline] | |
pub unsafe fn initialize_program( | |
&mut self, | |
_info: *const root::rx::render::frontend::command_header_info, | |
_program: *mut root::rx::render::frontend::program, | |
) { | |
interface_initialize_program(self, _info, _program) | |
} | |
#[inline] | |
pub unsafe fn initialize_texture( | |
&mut self, | |
_info: *const root::rx::render::frontend::command_header_info, | |
_texture: *mut root::rx::render::frontend::texture1D, | |
) { | |
interface_initialize_texture(self, _info, _texture) | |
} | |
#[inline] | |
pub unsafe fn initialize_texture1( | |
&mut self, | |
_info: *const root::rx::render::frontend::command_header_info, | |
_texture: *mut root::rx::render::frontend::texture2D, | |
) { | |
interface_initialize_texture1(self, _info, _texture) | |
} | |
#[inline] | |
pub unsafe fn initialize_texture2( | |
&mut self, | |
_info: *const root::rx::render::frontend::command_header_info, | |
_texture: *mut root::rx::render::frontend::texture3D, | |
) { | |
interface_initialize_texture2(self, _info, _texture) | |
} | |
#[inline] | |
pub unsafe fn initialize_texture3( | |
&mut self, | |
_info: *const root::rx::render::frontend::command_header_info, | |
_texture: *mut root::rx::render::frontend::textureCM, | |
) { | |
interface_initialize_texture3(self, _info, _texture) | |
} | |
#[inline] | |
pub unsafe fn update_buffer( | |
&mut self, | |
_info: *const root::rx::render::frontend::command_header_info, | |
_buffer: *mut root::rx::render::frontend::buffer, | |
) { | |
interface_update_buffer(self, _info, _buffer) | |
} | |
#[inline] | |
pub unsafe fn update_texture( | |
&mut self, | |
_info: *const root::rx::render::frontend::command_header_info, | |
_texture: *mut root::rx::render::frontend::texture1D, | |
) { | |
interface_update_texture(self, _info, _texture) | |
} | |
#[inline] | |
pub unsafe fn update_texture1( | |
&mut self, | |
_info: *const root::rx::render::frontend::command_header_info, | |
_texture: *mut root::rx::render::frontend::texture2D, | |
) { | |
interface_update_texture1(self, _info, _texture) | |
} | |
#[inline] | |
pub unsafe fn update_texture2( | |
&mut self, | |
_info: *const root::rx::render::frontend::command_header_info, | |
_texture: *mut root::rx::render::frontend::texture3D, | |
) { | |
interface_update_texture2(self, _info, _texture) | |
} | |
#[inline] | |
pub unsafe fn destroy_buffer( | |
&mut self, | |
_info: *const root::rx::render::frontend::command_header_info, | |
_buffer: *mut root::rx::render::frontend::buffer, | |
) { | |
interface_destroy_buffer(self, _info, _buffer) | |
} | |
#[inline] | |
pub unsafe fn destroy_target( | |
&mut self, | |
_info: *const root::rx::render::frontend::command_header_info, | |
_target: *mut root::rx::render::frontend::target, | |
) { | |
interface_destroy_target(self, _info, _target) | |
} | |
#[inline] | |
pub unsafe fn destroy_program( | |
&mut self, | |
_info: *const root::rx::render::frontend::command_header_info, | |
_program: *mut root::rx::render::frontend::program, | |
) { | |
interface_destroy_program(self, _info, _program) | |
} | |
#[inline] | |
pub unsafe fn destroy_texture( | |
&mut self, | |
_info: *const root::rx::render::frontend::command_header_info, | |
_texture: *mut root::rx::render::frontend::texture1D, | |
) { | |
interface_destroy_texture(self, _info, _texture) | |
} | |
#[inline] | |
pub unsafe fn destroy_texture1( | |
&mut self, | |
_info: *const root::rx::render::frontend::command_header_info, | |
_texture: *mut root::rx::render::frontend::texture2D, | |
) { | |
interface_destroy_texture1(self, _info, _texture) | |
} | |
#[inline] | |
pub unsafe fn destroy_texture2( | |
&mut self, | |
_info: *const root::rx::render::frontend::command_header_info, | |
_texture: *mut root::rx::render::frontend::texture3D, | |
) { | |
interface_destroy_texture2(self, _info, _texture) | |
} | |
#[inline] | |
pub unsafe fn destroy_texture3( | |
&mut self, | |
_info: *const root::rx::render::frontend::command_header_info, | |
_texture: *mut root::rx::render::frontend::textureCM, | |
) { | |
interface_destroy_texture3(self, _info, _texture) | |
} | |
#[inline] | |
pub unsafe fn draw( | |
&mut self, | |
_info: *const root::rx::render::frontend::command_header_info, | |
_state: *const root::rx::render::frontend::state, | |
_target: *mut root::rx::render::frontend::target, | |
_draw_buffers: *const root::rx::render::frontend::buffers, | |
_buffer: *mut root::rx::render::frontend::buffer, | |
_program: *mut root::rx::render::frontend::program, | |
_count: root::rx_size, | |
_offset: root::rx_size, | |
_primitive_type: root::rx::render::frontend::primitive_type, | |
_draw_textures: *const root::rx::render::frontend::textures, | |
) { | |
interface_draw( | |
self, | |
_info, | |
_state, | |
_target, | |
_draw_buffers, | |
_buffer, | |
_program, | |
_count, | |
_offset, | |
_primitive_type, | |
_draw_textures, | |
) | |
} | |
#[inline] | |
pub unsafe fn blit( | |
&mut self, | |
_info: *const root::rx::render::frontend::command_header_info, | |
_state: *const root::rx::render::frontend::state, | |
_src: *mut root::rx::render::frontend::target, | |
_src_attachment: root::rx_size, | |
_dst: *mut root::rx::render::frontend::target, | |
_dst_attachment: root::rx_size, | |
) { | |
interface_blit(self, _info, _state, _src, _src_attachment, _dst, _dst_attachment) | |
} | |
#[inline] | |
pub unsafe fn profile(&mut self, _tag: *const ::std::os::raw::c_char) { | |
interface_profile(self, _tag) | |
} | |
#[inline] | |
pub unsafe fn resize(&mut self, _resolution: *const root::rx::math::vec2z) { | |
interface_resize(self, _resolution) | |
} | |
#[inline] | |
pub unsafe fn process(&mut self) -> bool { | |
interface_process(self) | |
} | |
#[inline] | |
pub unsafe fn swap(&mut self) -> bool { | |
interface_swap(self) | |
} | |
#[inline] | |
pub unsafe fn cached_buffer( | |
&mut self, | |
_key: *const root::rx::string, | |
) -> *mut root::rx::render::frontend::buffer { | |
interface_cached_buffer(self, _key) | |
} | |
#[inline] | |
pub unsafe fn cached_target( | |
&mut self, | |
_key: *const root::rx::string, | |
) -> *mut root::rx::render::frontend::target { | |
interface_cached_target(self, _key) | |
} | |
#[inline] | |
pub unsafe fn cached_texture1D( | |
&mut self, | |
_key: *const root::rx::string, | |
) -> *mut root::rx::render::frontend::texture1D { | |
interface_cached_texture1D(self, _key) | |
} | |
#[inline] | |
pub unsafe fn cached_texture2D( | |
&mut self, | |
_key: *const root::rx::string, | |
) -> *mut root::rx::render::frontend::texture2D { | |
interface_cached_texture2D(self, _key) | |
} | |
#[inline] | |
pub unsafe fn cached_texture3D( | |
&mut self, | |
_key: *const root::rx::string, | |
) -> *mut root::rx::render::frontend::texture3D { | |
interface_cached_texture3D(self, _key) | |
} | |
#[inline] | |
pub unsafe fn cached_textureCM( | |
&mut self, | |
_key: *const root::rx::string, | |
) -> *mut root::rx::render::frontend::textureCM { | |
interface_cached_textureCM(self, _key) | |
} | |
#[inline] | |
pub unsafe fn cache_buffer( | |
&mut self, | |
_buffer: *mut root::rx::render::frontend::buffer, | |
_key: *const root::rx::string, | |
) { | |
interface_cache_buffer(self, _buffer, _key) | |
} | |
#[inline] | |
pub unsafe fn cache_target( | |
&mut self, | |
_target: *mut root::rx::render::frontend::target, | |
_key: *const root::rx::string, | |
) { | |
interface_cache_target(self, _target, _key) | |
} | |
#[inline] | |
pub unsafe fn cache_texture( | |
&mut self, | |
_texture: *mut root::rx::render::frontend::texture1D, | |
_key: *const root::rx::string, | |
) { | |
interface_cache_texture(self, _texture, _key) | |
} | |
#[inline] | |
pub unsafe fn cache_texture1( | |
&mut self, | |
_texture: *mut root::rx::render::frontend::texture2D, | |
_key: *const root::rx::string, | |
) { | |
interface_cache_texture1(self, _texture, _key) | |
} | |
#[inline] | |
pub unsafe fn cache_texture2( | |
&mut self, | |
_texture: *mut root::rx::render::frontend::texture3D, | |
_key: *const root::rx::string, | |
) { | |
interface_cache_texture2(self, _texture, _key) | |
} | |
#[inline] | |
pub unsafe fn cache_texture3( | |
&mut self, | |
_texture: *mut root::rx::render::frontend::textureCM, | |
_key: *const root::rx::string, | |
) { | |
interface_cache_texture3(self, _texture, _key) | |
} | |
#[inline] | |
pub unsafe fn allocator(&self) -> *mut root::rx::memory::allocator { | |
interface_allocator(self) | |
} | |
#[inline] | |
pub unsafe fn stats( | |
&self, | |
_type: root::rx::render::frontend::resource_type, | |
) -> root::rx::render::frontend::interface_statistics { | |
interface_stats(self, _type) | |
} | |
#[inline] | |
pub unsafe fn draw_calls(&self) -> root::rx_size { | |
interface_draw_calls(self) | |
} | |
#[inline] | |
pub unsafe fn clear_calls(&self) -> root::rx_size { | |
interface_clear_calls(self) | |
} | |
#[inline] | |
pub unsafe fn blit_calls(&self) -> root::rx_size { | |
interface_blit_calls(self) | |
} | |
#[inline] | |
pub unsafe fn vertices(&self) -> root::rx_size { | |
interface_vertices(self) | |
} | |
#[inline] | |
pub unsafe fn triangles(&self) -> root::rx_size { | |
interface_triangles(self) | |
} | |
#[inline] | |
pub unsafe fn lines(&self) -> root::rx_size { | |
interface_lines(self) | |
} | |
#[inline] | |
pub unsafe fn points(&self) -> root::rx_size { | |
interface_points(self) | |
} | |
#[inline] | |
pub unsafe fn swapchain(&self) -> *mut root::rx::render::frontend::target { | |
interface_swapchain(self) | |
} | |
#[inline] | |
pub unsafe fn find_technique_by_name( | |
&mut self, | |
_name: *const ::std::os::raw::c_char, | |
) -> *mut root::rx::render::frontend::technique { | |
interface_find_technique_by_name(self, _name) | |
} | |
#[inline] | |
pub unsafe fn timer(&self) -> *const root::rx::render::frontend::frame_timer { | |
interface_timer(self) | |
} | |
#[inline] | |
pub unsafe fn get_command_buffer(&self) -> *const root::rx::render::frontend::command_buffer { | |
interface_get_command_buffer(self) | |
} | |
#[inline] | |
pub unsafe fn get_device_info(&self) -> *const root::rx::render::frontend::interface_device_info { | |
interface_get_device_info(self) | |
} | |
#[inline] | |
pub unsafe fn new( | |
_allocator: *mut root::rx::memory::allocator, | |
_backend: *mut root::rx::render::backend::interface, | |
) -> Self { | |
let mut __bindgen_tmp = ::core::mem::MaybeUninit::uninit(); | |
interface_interface(__bindgen_tmp.as_mut_ptr(), _allocator, _backend); | |
__bindgen_tmp.assume_init() | |
} | |
#[inline] | |
pub unsafe fn destruct(&mut self) { | |
interface_interface_destructor(self) | |
} | |
} | |
} | |
pub mod backend { | |
#[allow(unused_imports)] | |
use self::super::super::super::super::root; | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct allocation_info { | |
pub buffer_size: root::rx_size, | |
pub target_size: root::rx_size, | |
pub program_size: root::rx_size, | |
pub texture1D_size: root::rx_size, | |
pub texture2D_size: root::rx_size, | |
pub texture3D_size: root::rx_size, | |
pub textureCM_size: root::rx_size, | |
} | |
#[test] | |
fn bindgen_test_layout_allocation_info() { | |
assert_eq!( | |
::core::mem::size_of::<allocation_info>(), | |
56usize, | |
concat!("Size of: ", stringify!(allocation_info)) | |
); | |
assert_eq!( | |
::core::mem::align_of::<allocation_info>(), | |
8usize, | |
concat!("Alignment of ", stringify!(allocation_info)) | |
); | |
assert_eq!( | |
unsafe { &(*(::core::ptr::null::<allocation_info>())).buffer_size as *const _ as usize }, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(allocation_info), | |
"::", | |
stringify!(buffer_size) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::core::ptr::null::<allocation_info>())).target_size as *const _ as usize }, | |
8usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(allocation_info), | |
"::", | |
stringify!(target_size) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::core::ptr::null::<allocation_info>())).program_size as *const _ as usize }, | |
16usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(allocation_info), | |
"::", | |
stringify!(program_size) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::core::ptr::null::<allocation_info>())).texture1D_size as *const _ as usize }, | |
24usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(allocation_info), | |
"::", | |
stringify!(texture1D_size) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::core::ptr::null::<allocation_info>())).texture2D_size as *const _ as usize }, | |
32usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(allocation_info), | |
"::", | |
stringify!(texture2D_size) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::core::ptr::null::<allocation_info>())).texture3D_size as *const _ as usize }, | |
40usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(allocation_info), | |
"::", | |
stringify!(texture3D_size) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::core::ptr::null::<allocation_info>())).textureCM_size as *const _ as usize }, | |
48usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(allocation_info), | |
"::", | |
stringify!(textureCM_size) | |
) | |
); | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct device_info { | |
pub vendor: *const ::std::os::raw::c_char, | |
pub renderer: *const ::std::os::raw::c_char, | |
pub version: *const ::std::os::raw::c_char, | |
} | |
#[test] | |
fn bindgen_test_layout_device_info() { | |
assert_eq!( | |
::core::mem::size_of::<device_info>(), | |
24usize, | |
concat!("Size of: ", stringify!(device_info)) | |
); | |
assert_eq!( | |
::core::mem::align_of::<device_info>(), | |
8usize, | |
concat!("Alignment of ", stringify!(device_info)) | |
); | |
assert_eq!( | |
unsafe { &(*(::core::ptr::null::<device_info>())).vendor as *const _ as usize }, | |
0usize, | |
concat!("Offset of field: ", stringify!(device_info), "::", stringify!(vendor)) | |
); | |
assert_eq!( | |
unsafe { &(*(::core::ptr::null::<device_info>())).renderer as *const _ as usize }, | |
8usize, | |
concat!("Offset of field: ", stringify!(device_info), "::", stringify!(renderer)) | |
); | |
assert_eq!( | |
unsafe { &(*(::core::ptr::null::<device_info>())).version as *const _ as usize }, | |
16usize, | |
concat!("Offset of field: ", stringify!(device_info), "::", stringify!(version)) | |
); | |
} | |
#[repr(C)] | |
#[derive(Debug)] | |
pub struct interface { | |
pub _base: root::rx::concepts::interface, | |
} | |
#[test] | |
fn bindgen_test_layout_interface() { | |
assert_eq!( | |
::core::mem::size_of::<interface>(), | |
16usize, | |
concat!("Size of: ", stringify!(interface)) | |
); | |
assert_eq!( | |
::core::mem::align_of::<interface>(), | |
8usize, | |
concat!("Alignment of ", stringify!(interface)) | |
); | |
} | |
} | |
} | |
pub mod input { | |
#[allow(unused_imports)] | |
use self::super::super::super::root; | |
/// <div rustbindgen opaque></div> | |
#[repr(C)] | |
#[repr(align(4))] | |
pub struct mouse_device { | |
pub _bindgen_opaque_blob: [u32; 39usize], | |
} | |
pub const mouse_device_k_pressed: root::rx::input::mouse_device__bindgen_ty_1 = | |
root::rx::input::mouse_device__bindgen_ty_1(1); | |
pub const mouse_device_k_released: root::rx::input::mouse_device__bindgen_ty_1 = | |
root::rx::input::mouse_device__bindgen_ty_1(2); | |
pub const mouse_device_k_held: root::rx::input::mouse_device__bindgen_ty_1 = | |
root::rx::input::mouse_device__bindgen_ty_1(4); | |
impl ::core::ops::BitOr<root::rx::input::mouse_device__bindgen_ty_1> for root::rx::input::mouse_device__bindgen_ty_1 { | |
type Output = Self; | |
#[inline] | |
fn bitor(self, other: Self) -> Self { | |
mouse_device__bindgen_ty_1(self.0 | other.0) | |
} | |
} | |
impl ::core::ops::BitOrAssign for root::rx::input::mouse_device__bindgen_ty_1 { | |
#[inline] | |
fn bitor_assign(&mut self, rhs: root::rx::input::mouse_device__bindgen_ty_1) { | |
self.0 |= rhs.0; | |
} | |
} | |
impl ::core::ops::BitAnd<root::rx::input::mouse_device__bindgen_ty_1> for root::rx::input::mouse_device__bindgen_ty_1 { | |
type Output = Self; | |
#[inline] | |
fn bitand(self, other: Self) -> Self { | |
mouse_device__bindgen_ty_1(self.0 & other.0) | |
} | |
} | |
impl ::core::ops::BitAndAssign for root::rx::input::mouse_device__bindgen_ty_1 { | |
#[inline] | |
fn bitand_assign(&mut self, rhs: root::rx::input::mouse_device__bindgen_ty_1) { | |
self.0 &= rhs.0; | |
} | |
} | |
#[repr(transparent)] | |
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] | |
pub struct mouse_device__bindgen_ty_1(pub i32); | |
#[test] | |
fn bindgen_test_layout_mouse_device() { | |
assert_eq!( | |
::core::mem::size_of::<mouse_device>(), | |
156usize, | |
concat!("Size of: ", stringify!(mouse_device)) | |
); | |
assert_eq!( | |
::core::mem::align_of::<mouse_device>(), | |
4usize, | |
concat!("Alignment of ", stringify!(mouse_device)) | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}?update@mouse_device@input@rx@@QEAAXM@Z"] | |
pub fn mouse_device_update(this: *mut root::rx::input::mouse_device, _delta_time: root::rx_f32); | |
} | |
extern "C" { | |
#[link_name = "\u{1}?update_button@mouse_device@input@rx@@QEAAX_NH@Z"] | |
pub fn mouse_device_update_button( | |
this: *mut root::rx::input::mouse_device, | |
_down: bool, | |
_button: ::std::os::raw::c_int, | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}?update_motion@mouse_device@input@rx@@QEAAXAEBU?$vec4@H@math@3@@Z"] | |
pub fn mouse_device_update_motion( | |
this: *mut root::rx::input::mouse_device, | |
_movement: *const root::rx::math::vec4i, | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}?update_scroll@mouse_device@input@rx@@QEAAXAEBU?$vec2@H@math@3@@Z"] | |
pub fn mouse_device_update_scroll( | |
this: *mut root::rx::input::mouse_device, | |
_scroll: *const root::rx::math::vec2i, | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}?movement@mouse_device@input@rx@@QEBAAEBU?$vec2@H@math@3@XZ"] | |
pub fn mouse_device_movement( | |
this: *const root::rx::input::mouse_device, | |
) -> *const root::rx::math::vec2i; | |
} | |
extern "C" { | |
#[link_name = "\u{1}?position@mouse_device@input@rx@@QEBAAEBU?$vec2@H@math@3@XZ"] | |
pub fn mouse_device_position( | |
this: *const root::rx::input::mouse_device, | |
) -> *const root::rx::math::vec2i; | |
} | |
extern "C" { | |
#[link_name = "\u{1}?scroll@mouse_device@input@rx@@QEBAAEBU?$vec2@H@math@3@XZ"] | |
pub fn mouse_device_scroll(this: *const root::rx::input::mouse_device) -> *const root::rx::math::vec2i; | |
} | |
extern "C" { | |
#[link_name = "\u{1}??0mouse_device@input@rx@@QEAA@XZ"] | |
pub fn mouse_device_mouse_device(this: *mut root::rx::input::mouse_device); | |
} | |
impl mouse_device { | |
#[inline] | |
pub unsafe fn update(&mut self, _delta_time: root::rx_f32) { | |
mouse_device_update(self, _delta_time) | |
} | |
#[inline] | |
pub unsafe fn update_button(&mut self, _down: bool, _button: ::std::os::raw::c_int) { | |
mouse_device_update_button(self, _down, _button) | |
} | |
#[inline] | |
pub unsafe fn update_motion(&mut self, _movement: *const root::rx::math::vec4i) { | |
mouse_device_update_motion(self, _movement) | |
} | |
#[inline] | |
pub unsafe fn update_scroll(&mut self, _scroll: *const root::rx::math::vec2i) { | |
mouse_device_update_scroll(self, _scroll) | |
} | |
#[inline] | |
pub unsafe fn movement(&self) -> *const root::rx::math::vec2i { | |
mouse_device_movement(self) | |
} | |
#[inline] | |
pub unsafe fn position(&self) -> *const root::rx::math::vec2i { | |
mouse_device_position(self) | |
} | |
#[inline] | |
pub unsafe fn scroll(&self) -> *const root::rx::math::vec2i { | |
mouse_device_scroll(self) | |
} | |
#[inline] | |
pub unsafe fn new() -> Self { | |
let mut __bindgen_tmp = ::core::mem::MaybeUninit::uninit(); | |
mouse_device_mouse_device(__bindgen_tmp.as_mut_ptr()); | |
__bindgen_tmp.assume_init() | |
} | |
} | |
pub const mouse_device_k_buttons: ::std::os::raw::c_int = 32; | |
impl scan_code { | |
pub const k_unknown: root::rx::input::scan_code = root::rx::input::scan_code(0); | |
} | |
impl scan_code { | |
pub const k_a: root::rx::input::scan_code = root::rx::input::scan_code(4); | |
} | |
impl scan_code { | |
pub const k_b: root::rx::input::scan_code = root::rx::input::scan_code(5); | |
} | |
impl scan_code { | |
pub const k_c: root::rx::input::scan_code = root::rx::input::scan_code(6); | |
} | |
impl scan_code { | |
pub const k_d: root::rx::input::scan_code = root::rx::input::scan_code(7); | |
} | |
impl scan_code { | |
pub const k_e: root::rx::input::scan_code = root::rx::input::scan_code(8); | |
} | |
impl scan_code { | |
pub const k_f: root::rx::input::scan_code = root::rx::input::scan_code(9); | |
} | |
impl scan_code { | |
pub const k_g: root::rx::input::scan_code = root::rx::input::scan_code(10); | |
} | |
impl scan_code { | |
pub const k_h: root::rx::input::scan_code = root::rx::input::scan_code(11); | |
} | |
impl scan_code { | |
pub const k_i: root::rx::input::scan_code = root::rx::input::scan_code(12); | |
} | |
impl scan_code { | |
pub const k_j: root::rx::input::scan_code = root::rx::input::scan_code(13); | |
} | |
impl scan_code { | |
pub const k_k: root::rx::input::scan_code = root::rx::input::scan_code(14); | |
} | |
impl scan_code { | |
pub const k_l: root::rx::input::scan_code = root::rx::input::scan_code(15); | |
} | |
impl scan_code { | |
pub const k_m: root::rx::input::scan_code = root::rx::input::scan_code(16); | |
} | |
impl scan_code { | |
pub const k_n: root::rx::input::scan_code = root::rx::input::scan_code(17); | |
} | |
impl scan_code { | |
pub const k_o: root::rx::input::scan_code = root::rx::input::scan_code(18); | |
} | |
impl scan_code { | |
pub const k_p: root::rx::input::scan_code = root::rx::input::scan_code(19); | |
} | |
impl scan_code { | |
pub const k_q: root::rx::input::scan_code = root::rx::input::scan_code(20); | |
} | |
impl scan_code { | |
pub const k_r: root::rx::input::scan_code = root::rx::input::scan_code(21); | |
} | |
impl scan_code { | |
pub const k_s: root::rx::input::scan_code = root::rx::input::scan_code(22); | |
} | |
impl scan_code { | |
pub const k_t: root::rx::input::scan_code = root::rx::input::scan_code(23); | |
} | |
impl scan_code { | |
pub const k_u: root::rx::input::scan_code = root::rx::input::scan_code(24); | |
} | |
impl scan_code { | |
pub const k_v: root::rx::input::scan_code = root::rx::input::scan_code(25); | |
} | |
impl scan_code { | |
pub const k_w: root::rx::input::scan_code = root::rx::input::scan_code(26); | |
} | |
impl scan_code { | |
pub const k_x: root::rx::input::scan_code = root::rx::input::scan_code(27); | |
} | |
impl scan_code { | |
pub const k_y: root::rx::input::scan_code = root::rx::input::scan_code(28); | |
} | |
impl scan_code { | |
pub const k_z: root::rx::input::scan_code = root::rx::input::scan_code(29); | |
} | |
impl scan_code { | |
pub const k_1: root::rx::input::scan_code = root::rx::input::scan_code(30); | |
} | |
impl scan_code { | |
pub const k_2: root::rx::input::scan_code = root::rx::input::scan_code(31); | |
} | |
impl scan_code { | |
pub const k_3: root::rx::input::scan_code = root::rx::input::scan_code(32); | |
} | |
impl scan_code { | |
pub const k_4: root::rx::input::scan_code = root::rx::input::scan_code(33); | |
} | |
impl scan_code { | |
pub const k_5: root::rx::input::scan_code = root::rx::input::scan_code(34); | |
} | |
impl scan_code { | |
pub const k_6: root::rx::input::scan_code = root::rx::input::scan_code(35); | |
} | |
impl scan_code { | |
pub const k_7: root::rx::input::scan_code = root::rx::input::scan_code(36); | |
} | |
impl scan_code { | |
pub const k_8: root::rx::input::scan_code = root::rx::input::scan_code(37); | |
} | |
impl scan_code { | |
pub const k_9: root::rx::input::scan_code = root::rx::input::scan_code(38); | |
} | |
impl scan_code { | |
pub const k_0: root::rx::input::scan_code = root::rx::input::scan_code(39); | |
} | |
impl scan_code { | |
pub const k_return: root::rx::input::scan_code = root::rx::input::scan_code(40); | |
} | |
impl scan_code { | |
pub const k_escape: root::rx::input::scan_code = root::rx::input::scan_code(41); | |
} | |
impl scan_code { | |
pub const k_backspace: root::rx::input::scan_code = root::rx::input::scan_code(42); | |
} | |
impl scan_code { | |
pub const k_tab: root::rx::input::scan_code = root::rx::input::scan_code(43); | |
} | |
impl scan_code { | |
pub const k_space: root::rx::input::scan_code = root::rx::input::scan_code(44); | |
} | |
impl scan_code { | |
pub const k_minus: root::rx::input::scan_code = root::rx::input::scan_code(45); | |
} | |
impl scan_code { | |
pub const k_equals: root::rx::input::scan_code = root::rx::input::scan_code(46); | |
} | |
impl scan_code { | |
pub const k_left_bracket: root::rx::input::scan_code = root::rx::input::scan_code(47); | |
} | |
impl scan_code { | |
pub const k_right_bracket: root::rx::input::scan_code = root::rx::input::scan_code(48); | |
} | |
impl scan_code { | |
pub const k_backslash: root::rx::input::scan_code = root::rx::input::scan_code(49); | |
} | |
impl scan_code { | |
pub const k_semicolon: root::rx::input::scan_code = root::rx::input::scan_code(51); | |
} | |
impl scan_code { | |
pub const k_apostrophe: root::rx::input::scan_code = root::rx::input::scan_code(52); | |
} | |
impl scan_code { | |
pub const k_grave: root::rx::input::scan_code = root::rx::input::scan_code(53); | |
} | |
impl scan_code { | |
pub const k_comma: root::rx::input::scan_code = root::rx::input::scan_code(54); | |
} | |
impl scan_code { | |
pub const k_period: root::rx::input::scan_code = root::rx::input::scan_code(55); | |
} | |
impl scan_code { | |
pub const k_slash: root::rx::input::scan_code = root::rx::input::scan_code(56); | |
} | |
impl scan_code { | |
pub const k_capslock: root::rx::input::scan_code = root::rx::input::scan_code(57); | |
} | |
impl scan_code { | |
pub const k_f1: root::rx::input::scan_code = root::rx::input::scan_code(58); | |
} | |
impl scan_code { | |
pub const k_f2: root::rx::input::scan_code = root::rx::input::scan_code(59); | |
} | |
impl scan_code { | |
pub const k_f3: root::rx::input::scan_code = root::rx::input::scan_code(60); | |
} | |
impl scan_code { | |
pub const k_f4: root::rx::input::scan_code = root::rx::input::scan_code(61); | |
} | |
impl scan_code { | |
pub const k_f5: root::rx::input::scan_code = root::rx::input::scan_code(62); | |
} | |
impl scan_code { | |
pub const k_f6: root::rx::input::scan_code = root::rx::input::scan_code(63); | |
} | |
impl scan_code { | |
pub const k_f7: root::rx::input::scan_code = root::rx::input::scan_code(64); | |
} | |
impl scan_code { | |
pub const k_f8: root::rx::input::scan_code = root::rx::input::scan_code(65); | |
} | |
impl scan_code { | |
pub const k_f9: root::rx::input::scan_code = root::rx::input::scan_code(66); | |
} | |
impl scan_code { | |
pub const k_f10: root::rx::input::scan_code = root::rx::input::scan_code(67); | |
} | |
impl scan_code { | |
pub const k_f11: root::rx::input::scan_code = root::rx::input::scan_code(68); | |
} | |
impl scan_code { | |
pub const k_f12: root::rx::input::scan_code = root::rx::input::scan_code(69); | |
} | |
impl scan_code { | |
pub const k_print_screen: root::rx::input::scan_code = root::rx::input::scan_code(70); | |
} | |
impl scan_code { | |
pub const k_scroll_lock: root::rx::input::scan_code = root::rx::input::scan_code(71); | |
} | |
impl scan_code { | |
pub const k_pause: root::rx::input::scan_code = root::rx::input::scan_code(72); | |
} | |
impl scan_code { | |
pub const k_insert: root::rx::input::scan_code = root::rx::input::scan_code(73); | |
} | |
impl scan_code { | |
pub const k_home: root::rx::input::scan_code = root::rx::input::scan_code(74); | |
} | |
impl scan_code { | |
pub const k_page_up: root::rx::input::scan_code = root::rx::input::scan_code(75); | |
} | |
impl scan_code { | |
pub const k_delete: root::rx::input::scan_code = root::rx::input::scan_code(76); | |
} | |
impl scan_code { | |
pub const k_end: root::rx::input::scan_code = root::rx::input::scan_code(77); | |
} | |
impl scan_code { | |
pub const k_page_down: root::rx::input::scan_code = root::rx::input::scan_code(78); | |
} | |
impl scan_code { | |
pub const k_right: root::rx::input::scan_code = root::rx::input::scan_code(79); | |
} | |
impl scan_code { | |
pub const k_left: root::rx::input::scan_code = root::rx::input::scan_code(80); | |
} | |
impl scan_code { | |
pub const k_down: root::rx::input::scan_code = root::rx::input::scan_code(81); | |
} | |
impl scan_code { | |
pub const k_up: root::rx::input::scan_code = root::rx::input::scan_code(82); | |
} | |
impl scan_code { | |
pub const k_kp_divide: root::rx::input::scan_code = root::rx::input::scan_code(84); | |
} | |
impl scan_code { | |
pub const k_kp_multiply: root::rx::input::scan_code = root::rx::input::scan_code(85); | |
} | |
impl scan_code { | |
pub const k_kp_minus: root::rx::input::scan_code = root::rx::input::scan_code(86); | |
} | |
impl scan_code { | |
pub const k_kp_plus: root::rx::input::scan_code = root::rx::input::scan_code(87); | |
} | |
impl scan_code { | |
pub const k_kp_enter: root::rx::input::scan_code = root::rx::input::scan_code(88); | |
} | |
impl scan_code { | |
pub const k_kp_1: root::rx::input::scan_code = root::rx::input::scan_code(89); | |
} | |
impl scan_code { | |
pub const k_kp_2: root::rx::input::scan_code = root::rx::input::scan_code(90); | |
} | |
impl scan_code { | |
pub const k_kp_3: root::rx::input::scan_code = root::rx::input::scan_code(91); | |
} | |
impl scan_code { | |
pub const k_kp_4: root::rx::input::scan_code = root::rx::input::scan_code(92); | |
} | |
impl scan_code { | |
pub const k_kp_5: root::rx::input::scan_code = root::rx::input::scan_code(93); | |
} | |
impl scan_code { | |
pub const k_kp_6: root::rx::input::scan_code = root::rx::input::scan_code(94); | |
} | |
impl scan_code { | |
pub const k_kp_7: root::rx::input::scan_code = root::rx::input::scan_code(95); | |
} | |
impl scan_code { | |
pub const k_kp_8: root::rx::input::scan_code = root::rx::input::scan_code(96); | |
} | |
impl scan_code { | |
pub const k_kp_9: root::rx::input::scan_code = root::rx::input::scan_code(97); | |
} | |
impl scan_code { | |
pub const k_kp_0: root::rx::input::scan_code = root::rx::input::scan_code(98); | |
} | |
impl scan_code { | |
pub const k_kp_period: root::rx::input::scan_code = root::rx::input::scan_code(99); | |
} | |
impl scan_code { | |
pub const k_left_control: root::rx::input::scan_code = root::rx::input::scan_code(224); | |
} | |
impl scan_code { | |
pub const k_left_shift: root::rx::input::scan_code = root::rx::input::scan_code(225); | |
} | |
impl scan_code { | |
pub const k_left_alt: root::rx::input::scan_code = root::rx::input::scan_code(226); | |
} | |
impl scan_code { | |
pub const k_left_gui: root::rx::input::scan_code = root::rx::input::scan_code(227); | |
} | |
impl scan_code { | |
pub const k_right_control: root::rx::input::scan_code = root::rx::input::scan_code(228); | |
} | |
impl scan_code { | |
pub const k_right_shift: root::rx::input::scan_code = root::rx::input::scan_code(229); | |
} | |
impl scan_code { | |
pub const k_right_alt: root::rx::input::scan_code = root::rx::input::scan_code(230); | |
} | |
impl scan_code { | |
pub const k_right_gui: root::rx::input::scan_code = root::rx::input::scan_code(231); | |
} | |
impl ::core::ops::BitOr<root::rx::input::scan_code> for root::rx::input::scan_code { | |
type Output = Self; | |
#[inline] | |
fn bitor(self, other: Self) -> Self { | |
scan_code(self.0 | other.0) | |
} | |
} | |
impl ::core::ops::BitOrAssign for root::rx::input::scan_code { | |
#[inline] | |
fn bitor_assign(&mut self, rhs: root::rx::input::scan_code) { | |
self.0 |= rhs.0; | |
} | |
} | |
impl ::core::ops::BitAnd<root::rx::input::scan_code> for root::rx::input::scan_code { | |
type Output = Self; | |
#[inline] | |
fn bitand(self, other: Self) -> Self { | |
scan_code(self.0 & other.0) | |
} | |
} | |
impl ::core::ops::BitAndAssign for root::rx::input::scan_code { | |
#[inline] | |
fn bitand_assign(&mut self, rhs: root::rx::input::scan_code) { | |
self.0 &= rhs.0; | |
} | |
} | |
#[repr(transparent)] | |
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] | |
pub struct scan_code(pub i32); | |
/// <div rustbindgen opaque></div> | |
#[repr(C)] | |
#[repr(align(4))] | |
pub struct keyboard_device { | |
pub _bindgen_opaque_blob: [u32; 768usize], | |
} | |
pub const keyboard_device_k_pressed: root::rx::input::keyboard_device__bindgen_ty_1 = | |
root::rx::input::keyboard_device__bindgen_ty_1(1); | |
pub const keyboard_device_k_released: root::rx::input::keyboard_device__bindgen_ty_1 = | |
root::rx::input::keyboard_device__bindgen_ty_1(2); | |
pub const keyboard_device_k_held: root::rx::input::keyboard_device__bindgen_ty_1 = | |
root::rx::input::keyboard_device__bindgen_ty_1(4); | |
impl ::core::ops::BitOr<root::rx::input::keyboard_device__bindgen_ty_1> | |
for root::rx::input::keyboard_device__bindgen_ty_1 | |
{ | |
type Output = Self; | |
#[inline] | |
fn bitor(self, other: Self) -> Self { | |
keyboard_device__bindgen_ty_1(self.0 | other.0) | |
} | |
} | |
impl ::core::ops::BitOrAssign for root::rx::input::keyboard_device__bindgen_ty_1 { | |
#[inline] | |
fn bitor_assign(&mut self, rhs: root::rx::input::keyboard_device__bindgen_ty_1) { | |
self.0 |= rhs.0; | |
} | |
} | |
impl ::core::ops::BitAnd<root::rx::input::keyboard_device__bindgen_ty_1> | |
for root::rx::input::keyboard_device__bindgen_ty_1 | |
{ | |
type Output = Self; | |
#[inline] | |
fn bitand(self, other: Self) -> Self { | |
keyboard_device__bindgen_ty_1(self.0 & other.0) | |
} | |
} | |
impl ::core::ops::BitAndAssign for root::rx::input::keyboard_device__bindgen_ty_1 { | |
#[inline] | |
fn bitand_assign(&mut self, rhs: root::rx::input::keyboard_device__bindgen_ty_1) { | |
self.0 &= rhs.0; | |
} | |
} | |
#[repr(transparent)] | |
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] | |
pub struct keyboard_device__bindgen_ty_1(pub i32); | |
#[test] | |
fn bindgen_test_layout_keyboard_device() { | |
assert_eq!( | |
::core::mem::size_of::<keyboard_device>(), | |
3072usize, | |
concat!("Size of: ", stringify!(keyboard_device)) | |
); | |
assert_eq!( | |
::core::mem::align_of::<keyboard_device>(), | |
4usize, | |
concat!("Alignment of ", stringify!(keyboard_device)) | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}?update@keyboard_device@input@rx@@QEAAXM@Z"] | |
pub fn keyboard_device_update(this: *mut root::rx::input::keyboard_device, _delta_time: root::rx_f32); | |
} | |
extern "C" { | |
#[link_name = "\u{1}?update_key@keyboard_device@input@rx@@QEAAX_NHH@Z"] | |
pub fn keyboard_device_update_key( | |
this: *mut root::rx::input::keyboard_device, | |
_down: bool, | |
_scan_code: ::std::os::raw::c_int, | |
_symbol: ::std::os::raw::c_int, | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}?is_pressed@keyboard_device@input@rx@@QEBA_NW4scan_code@23@@Z"] | |
pub fn keyboard_device_is_pressed( | |
this: *const root::rx::input::keyboard_device, | |
_scan_code: root::rx::input::scan_code, | |
) -> bool; | |
} | |
extern "C" { | |
#[link_name = "\u{1}?is_released@keyboard_device@input@rx@@QEBA_NW4scan_code@23@@Z"] | |
pub fn keyboard_device_is_released( | |
this: *const root::rx::input::keyboard_device, | |
_scan_code: root::rx::input::scan_code, | |
) -> bool; | |
} | |
extern "C" { | |
#[link_name = "\u{1}?is_held@keyboard_device@input@rx@@QEBA_NW4scan_code@23@@Z"] | |
pub fn keyboard_device_is_held( | |
this: *const root::rx::input::keyboard_device, | |
_scan_code: root::rx::input::scan_code, | |
) -> bool; | |
} | |
extern "C" { | |
#[link_name = "\u{1}??0keyboard_device@input@rx@@QEAA@XZ"] | |
pub fn keyboard_device_keyboard_device(this: *mut root::rx::input::keyboard_device); | |
} | |
impl keyboard_device { | |
#[inline] | |
pub unsafe fn update(&mut self, _delta_time: root::rx_f32) { | |
keyboard_device_update(self, _delta_time) | |
} | |
#[inline] | |
pub unsafe fn update_key( | |
&mut self, | |
_down: bool, | |
_scan_code: ::std::os::raw::c_int, | |
_symbol: ::std::os::raw::c_int, | |
) { | |
keyboard_device_update_key(self, _down, _scan_code, _symbol) | |
} | |
#[inline] | |
pub unsafe fn is_pressed(&self, _scan_code: root::rx::input::scan_code) -> bool { | |
keyboard_device_is_pressed(self, _scan_code) | |
} | |
#[inline] | |
pub unsafe fn is_released(&self, _scan_code: root::rx::input::scan_code) -> bool { | |
keyboard_device_is_released(self, _scan_code) | |
} | |
#[inline] | |
pub unsafe fn is_held(&self, _scan_code: root::rx::input::scan_code) -> bool { | |
keyboard_device_is_held(self, _scan_code) | |
} | |
#[inline] | |
pub unsafe fn new() -> Self { | |
let mut __bindgen_tmp = ::core::mem::MaybeUninit::uninit(); | |
keyboard_device_keyboard_device(__bindgen_tmp.as_mut_ptr()); | |
__bindgen_tmp.assume_init() | |
} | |
} | |
pub const keyboard_device_k_keys: ::std::os::raw::c_int = 384; | |
/// <div rustbindgen opaque></div> | |
#[repr(C)] | |
#[repr(align(4))] | |
#[derive(Debug, Copy, Clone)] | |
pub struct controller_device { | |
pub _bindgen_opaque_blob: [u32; 21usize], | |
} | |
impl controller_device_button { | |
pub const k_a: root::rx::input::controller_device_button = root::rx::input::controller_device_button(0); | |
} | |
impl controller_device_button { | |
pub const k_b: root::rx::input::controller_device_button = root::rx::input::controller_device_button(1); | |
} | |
impl controller_device_button { | |
pub const k_x: root::rx::input::controller_device_button = root::rx::input::controller_device_button(2); | |
} | |
impl controller_device_button { | |
pub const k_y: root::rx::input::controller_device_button = root::rx::input::controller_device_button(3); | |
} | |
impl controller_device_button { | |
pub const k_back: root::rx::input::controller_device_button = | |
root::rx::input::controller_device_button(4); | |
} | |
impl controller_device_button { | |
pub const k_guide: root::rx::input::controller_device_button = | |
root::rx::input::controller_device_button(5); | |
} | |
impl controller_device_button { | |
pub const k_start: root::rx::input::controller_device_button = | |
root::rx::input::controller_device_button(6); | |
} | |
impl controller_device_button { | |
pub const k_left_stick: root::rx::input::controller_device_button = | |
root::rx::input::controller_device_button(7); | |
} | |
impl controller_device_button { | |
pub const k_right_stick: root::rx::input::controller_device_button = | |
root::rx::input::controller_device_button(8); | |
} | |
impl controller_device_button { | |
pub const k_left_shoulder: root::rx::input::controller_device_button = | |
root::rx::input::controller_device_button(9); | |
} | |
impl controller_device_button { | |
pub const k_right_shoulder: root::rx::input::controller_device_button = | |
root::rx::input::controller_device_button(10); | |
} | |
impl controller_device_button { | |
pub const k_dpad_up: root::rx::input::controller_device_button = | |
root::rx::input::controller_device_button(11); | |
} | |
impl controller_device_button { | |
pub const k_dpad_down: root::rx::input::controller_device_button = | |
root::rx::input::controller_device_button(12); | |
} | |
impl controller_device_button { | |
pub const k_dpad_left: root::rx::input::controller_device_button = | |
root::rx::input::controller_device_button(13); | |
} | |
impl controller_device_button { | |
pub const k_dpad_right: root::rx::input::controller_device_button = | |
root::rx::input::controller_device_button(14); | |
} | |
impl ::core::ops::BitOr<root::rx::input::controller_device_button> for root::rx::input::controller_device_button { | |
type Output = Self; | |
#[inline] | |
fn bitor(self, other: Self) -> Self { | |
controller_device_button(self.0 | other.0) | |
} | |
} | |
impl ::core::ops::BitOrAssign for root::rx::input::controller_device_button { | |
#[inline] | |
fn bitor_assign(&mut self, rhs: root::rx::input::controller_device_button) { | |
self.0 |= rhs.0; | |
} | |
} | |
impl ::core::ops::BitAnd<root::rx::input::controller_device_button> for root::rx::input::controller_device_button { | |
type Output = Self; | |
#[inline] | |
fn bitand(self, other: Self) -> Self { | |
controller_device_button(self.0 & other.0) | |
} | |
} | |
impl ::core::ops::BitAndAssign for root::rx::input::controller_device_button { | |
#[inline] | |
fn bitand_assign(&mut self, rhs: root::rx::input::controller_device_button) { | |
self.0 &= rhs.0; | |
} | |
} | |
#[repr(transparent)] | |
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] | |
pub struct controller_device_button(pub i32); | |
impl controller_device_axis { | |
pub const k_left_x: root::rx::input::controller_device_axis = | |
root::rx::input::controller_device_axis(0); | |
} | |
impl controller_device_axis { | |
pub const k_left_y: root::rx::input::controller_device_axis = | |
root::rx::input::controller_device_axis(1); | |
} | |
impl controller_device_axis { | |
pub const k_right_x: root::rx::input::controller_device_axis = | |
root::rx::input::controller_device_axis(2); | |
} | |
impl controller_device_axis { | |
pub const k_right_y: root::rx::input::controller_device_axis = | |
root::rx::input::controller_device_axis(3); | |
} | |
impl controller_device_axis { | |
pub const k_trigger_left: root::rx::input::controller_device_axis = | |
root::rx::input::controller_device_axis(4); | |
} | |
impl controller_device_axis { | |
pub const k_trigger_right: root::rx::input::controller_device_axis = | |
root::rx::input::controller_device_axis(5); | |
} | |
impl ::core::ops::BitOr<root::rx::input::controller_device_axis> for root::rx::input::controller_device_axis { | |
type Output = Self; | |
#[inline] | |
fn bitor(self, other: Self) -> Self { | |
controller_device_axis(self.0 | other.0) | |
} | |
} | |
impl ::core::ops::BitOrAssign for root::rx::input::controller_device_axis { | |
#[inline] | |
fn bitor_assign(&mut self, rhs: root::rx::input::controller_device_axis) { | |
self.0 |= rhs.0; | |
} | |
} | |
impl ::core::ops::BitAnd<root::rx::input::controller_device_axis> for root::rx::input::controller_device_axis { | |
type Output = Self; | |
#[inline] | |
fn bitand(self, other: Self) -> Self { | |
controller_device_axis(self.0 & other.0) | |
} | |
} | |
impl ::core::ops::BitAndAssign for root::rx::input::controller_device_axis { | |
#[inline] | |
fn bitand_assign(&mut self, rhs: root::rx::input::controller_device_axis) { | |
self.0 &= rhs.0; | |
} | |
} | |
#[repr(transparent)] | |
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] | |
pub struct controller_device_axis(pub i32); | |
pub const controller_device_k_pressed: root::rx::input::controller_device__bindgen_ty_1 = | |
root::rx::input::controller_device__bindgen_ty_1(1); | |
pub const controller_device_k_released: root::rx::input::controller_device__bindgen_ty_1 = | |
root::rx::input::controller_device__bindgen_ty_1(2); | |
pub const controller_device_k_held: root::rx::input::controller_device__bindgen_ty_1 = | |
root::rx::input::controller_device__bindgen_ty_1(4); | |
impl ::core::ops::BitOr<root::rx::input::controller_device__bindgen_ty_1> | |
for root::rx::input::controller_device__bindgen_ty_1 | |
{ | |
type Output = Self; | |
#[inline] | |
fn bitor(self, other: Self) -> Self { | |
controller_device__bindgen_ty_1(self.0 | other.0) | |
} | |
} | |
impl ::core::ops::BitOrAssign for root::rx::input::controller_device__bindgen_ty_1 { | |
#[inline] | |
fn bitor_assign(&mut self, rhs: root::rx::input::controller_device__bindgen_ty_1) { | |
self.0 |= rhs.0; | |
} | |
} | |
impl ::core::ops::BitAnd<root::rx::input::controller_device__bindgen_ty_1> | |
for root::rx::input::controller_device__bindgen_ty_1 | |
{ | |
type Output = Self; | |
#[inline] | |
fn bitand(self, other: Self) -> Self { | |
controller_device__bindgen_ty_1(self.0 & other.0) | |
} | |
} | |
impl ::core::ops::BitAndAssign for root::rx::input::controller_device__bindgen_ty_1 { | |
#[inline] | |
fn bitand_assign(&mut self, rhs: root::rx::input::controller_device__bindgen_ty_1) { | |
self.0 &= rhs.0; | |
} | |
} | |
#[repr(transparent)] | |
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] | |
pub struct controller_device__bindgen_ty_1(pub i32); | |
#[test] | |
fn bindgen_test_layout_controller_device() { | |
assert_eq!( | |
::core::mem::size_of::<controller_device>(), | |
84usize, | |
concat!("Size of: ", stringify!(controller_device)) | |
); | |
assert_eq!( | |
::core::mem::align_of::<controller_device>(), | |
4usize, | |
concat!("Alignment of ", stringify!(controller_device)) | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}?update_button@controller_device@input@rx@@QEAAX_NW4button@123@@Z"] | |
pub fn controller_device_update_button( | |
this: *mut root::rx::input::controller_device, | |
_down: bool, | |
_button: root::rx::input::controller_device_button, | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}?update_axis@controller_device@input@rx@@QEAAXW4axis@123@M@Z"] | |
pub fn controller_device_update_axis( | |
this: *mut root::rx::input::controller_device, | |
_axis: root::rx::input::controller_device_axis, | |
_value: root::rx_f32, | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}?update@controller_device@input@rx@@QEAAXM@Z"] | |
pub fn controller_device_update( | |
this: *mut root::rx::input::controller_device, | |
_delta_time: root::rx_f32, | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}?is_pressed@controller_device@input@rx@@QEBA_NW4button@123@@Z"] | |
pub fn controller_device_is_pressed( | |
this: *const root::rx::input::controller_device, | |
_button: root::rx::input::controller_device_button, | |
) -> bool; | |
} | |
extern "C" { | |
#[link_name = "\u{1}?is_released@controller_device@input@rx@@QEBA_NW4button@123@@Z"] | |
pub fn controller_device_is_released( | |
this: *const root::rx::input::controller_device, | |
_button: root::rx::input::controller_device_button, | |
) -> bool; | |
} | |
extern "C" { | |
#[link_name = "\u{1}?is_held@controller_device@input@rx@@QEBA_NW4button@123@@Z"] | |
pub fn controller_device_is_held( | |
this: *const root::rx::input::controller_device, | |
_button: root::rx::input::controller_device_button, | |
) -> bool; | |
} | |
extern "C" { | |
#[link_name = "\u{1}?axis_value@controller_device@input@rx@@QEBAMW4axis@123@@Z"] | |
pub fn controller_device_axis_value( | |
this: *const root::rx::input::controller_device, | |
_axis: root::rx::input::controller_device_axis, | |
) -> root::rx_f32; | |
} | |
extern "C" { | |
#[link_name = "\u{1}??0controller_device@input@rx@@QEAA@XZ"] | |
pub fn controller_device_controller_device(this: *mut root::rx::input::controller_device); | |
} | |
impl controller_device { | |
#[inline] | |
pub unsafe fn update_button( | |
&mut self, | |
_down: bool, | |
_button: root::rx::input::controller_device_button, | |
) { | |
controller_device_update_button(self, _down, _button) | |
} | |
#[inline] | |
pub unsafe fn update_axis( | |
&mut self, | |
_axis: root::rx::input::controller_device_axis, | |
_value: root::rx_f32, | |
) { | |
controller_device_update_axis(self, _axis, _value) | |
} | |
#[inline] | |
pub unsafe fn update(&mut self, _delta_time: root::rx_f32) { | |
controller_device_update(self, _delta_time) | |
} | |
#[inline] | |
pub unsafe fn is_pressed(&self, _button: root::rx::input::controller_device_button) -> bool { | |
controller_device_is_pressed(self, _button) | |
} | |
#[inline] | |
pub unsafe fn is_released(&self, _button: root::rx::input::controller_device_button) -> bool { | |
controller_device_is_released(self, _button) | |
} | |
#[inline] | |
pub unsafe fn is_held(&self, _button: root::rx::input::controller_device_button) -> bool { | |
controller_device_is_held(self, _button) | |
} | |
#[inline] | |
pub unsafe fn axis_value(&self, _axis: root::rx::input::controller_device_axis) -> root::rx_f32 { | |
controller_device_axis_value(self, _axis) | |
} | |
#[inline] | |
pub unsafe fn new() -> Self { | |
let mut __bindgen_tmp = ::core::mem::MaybeUninit::uninit(); | |
controller_device_controller_device(__bindgen_tmp.as_mut_ptr()); | |
__bindgen_tmp.assume_init() | |
} | |
} | |
extern "C" { | |
#[link_name = "\u{1}?k_buttons@controller_device@input@rx@@2_KB"] | |
pub static controller_device_k_buttons: root::rx_size; | |
} | |
extern "C" { | |
#[link_name = "\u{1}?k_axii@controller_device@input@rx@@2_KB"] | |
pub static controller_device_k_axii: root::rx_size; | |
} | |
impl event_type { | |
pub const k_none: root::rx::input::event_type = root::rx::input::event_type(0); | |
} | |
impl event_type { | |
pub const k_keyboard: root::rx::input::event_type = root::rx::input::event_type(1); | |
} | |
impl event_type { | |
pub const k_controller_notification: root::rx::input::event_type = root::rx::input::event_type(2); | |
} | |
impl event_type { | |
pub const k_controller_button: root::rx::input::event_type = root::rx::input::event_type(3); | |
} | |
impl event_type { | |
pub const k_controller_motion: root::rx::input::event_type = root::rx::input::event_type(4); | |
} | |
impl event_type { | |
pub const k_mouse_button: root::rx::input::event_type = root::rx::input::event_type(5); | |
} | |
impl event_type { | |
pub const k_mouse_scroll: root::rx::input::event_type = root::rx::input::event_type(6); | |
} | |
impl event_type { | |
pub const k_mouse_motion: root::rx::input::event_type = root::rx::input::event_type(7); | |
} | |
impl event_type { | |
pub const k_text_input: root::rx::input::event_type = root::rx::input::event_type(8); | |
} | |
impl event_type { | |
pub const k_clipboard: root::rx::input::event_type = root::rx::input::event_type(9); | |
} | |
impl ::core::ops::BitOr<root::rx::input::event_type> for root::rx::input::event_type { | |
type Output = Self; | |
#[inline] | |
fn bitor(self, other: Self) -> Self { | |
event_type(self.0 | other.0) | |
} | |
} | |
impl ::core::ops::BitOrAssign for root::rx::input::event_type { | |
#[inline] | |
fn bitor_assign(&mut self, rhs: root::rx::input::event_type) { | |
self.0 |= rhs.0; | |
} | |
} | |
impl ::core::ops::BitAnd<root::rx::input::event_type> for root::rx::input::event_type { | |
type Output = Self; | |
#[inline] | |
fn bitand(self, other: Self) -> Self { | |
event_type(self.0 & other.0) | |
} | |
} | |
impl ::core::ops::BitAndAssign for root::rx::input::event_type { | |
#[inline] | |
fn bitand_assign(&mut self, rhs: root::rx::input::event_type) { | |
self.0 &= rhs.0; | |
} | |
} | |
#[repr(transparent)] | |
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] | |
pub struct event_type(pub i32); | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct keyboard_event { | |
pub down: bool, | |
pub scan_code: ::std::os::raw::c_int, | |
pub symbol: ::std::os::raw::c_int, | |
} | |
#[test] | |
fn bindgen_test_layout_keyboard_event() { | |
assert_eq!( | |
::core::mem::size_of::<keyboard_event>(), | |
12usize, | |
concat!("Size of: ", stringify!(keyboard_event)) | |
); | |
assert_eq!( | |
::core::mem::align_of::<keyboard_event>(), | |
4usize, | |
concat!("Alignment of ", stringify!(keyboard_event)) | |
); | |
assert_eq!( | |
unsafe { &(*(::core::ptr::null::<keyboard_event>())).down as *const _ as usize }, | |
0usize, | |
concat!("Offset of field: ", stringify!(keyboard_event), "::", stringify!(down)) | |
); | |
assert_eq!( | |
unsafe { &(*(::core::ptr::null::<keyboard_event>())).scan_code as *const _ as usize }, | |
4usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(keyboard_event), | |
"::", | |
stringify!(scan_code) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::core::ptr::null::<keyboard_event>())).symbol as *const _ as usize }, | |
8usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(keyboard_event), | |
"::", | |
stringify!(symbol) | |
) | |
); | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct controller_notification_event { | |
pub index: root::rx_size, | |
pub kind: root::rx::input::controller_notification_event_type, | |
} | |
impl controller_notification_event_type { | |
pub const k_connected: root::rx::input::controller_notification_event_type = | |
root::rx::input::controller_notification_event_type(0); | |
} | |
impl controller_notification_event_type { | |
pub const k_disconnected: root::rx::input::controller_notification_event_type = | |
root::rx::input::controller_notification_event_type(1); | |
} | |
impl ::core::ops::BitOr<root::rx::input::controller_notification_event_type> | |
for root::rx::input::controller_notification_event_type | |
{ | |
type Output = Self; | |
#[inline] | |
fn bitor(self, other: Self) -> Self { | |
controller_notification_event_type(self.0 | other.0) | |
} | |
} | |
impl ::core::ops::BitOrAssign for root::rx::input::controller_notification_event_type { | |
#[inline] | |
fn bitor_assign(&mut self, rhs: root::rx::input::controller_notification_event_type) { | |
self.0 |= rhs.0; | |
} | |
} | |
impl ::core::ops::BitAnd<root::rx::input::controller_notification_event_type> | |
for root::rx::input::controller_notification_event_type | |
{ | |
type Output = Self; | |
#[inline] | |
fn bitand(self, other: Self) -> Self { | |
controller_notification_event_type(self.0 & other.0) | |
} | |
} | |
impl ::core::ops::BitAndAssign for root::rx::input::controller_notification_event_type { | |
#[inline] | |
fn bitand_assign(&mut self, rhs: root::rx::input::controller_notification_event_type) { | |
self.0 &= rhs.0; | |
} | |
} | |
#[repr(transparent)] | |
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] | |
pub struct controller_notification_event_type(pub i32); | |
#[test] | |
fn bindgen_test_layout_controller_notification_event() { | |
assert_eq!( | |
::core::mem::size_of::<controller_notification_event>(), | |
16usize, | |
concat!("Size of: ", stringify!(controller_notification_event)) | |
); | |
assert_eq!( | |
::core::mem::align_of::<controller_notification_event>(), | |
8usize, | |
concat!("Alignment of ", stringify!(controller_notification_event)) | |
); | |
assert_eq!( | |
unsafe { &(*(::core::ptr::null::<controller_notification_event>())).index as *const _ as usize }, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(controller_notification_event), | |
"::", | |
stringify!(index) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::core::ptr::null::<controller_notification_event>())).kind as *const _ as usize }, | |
8usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(controller_notification_event), | |
"::", | |
stringify!(kind) | |
) | |
); | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct controller_button_event { | |
pub index: root::rx_size, | |
pub down: bool, | |
pub button: root::rx::input::controller_device_button, | |
} | |
#[test] | |
fn bindgen_test_layout_controller_button_event() { | |
assert_eq!( | |
::core::mem::size_of::<controller_button_event>(), | |
16usize, | |
concat!("Size of: ", stringify!(controller_button_event)) | |
); | |
assert_eq!( | |
::core::mem::align_of::<controller_button_event>(), | |
8usize, | |
concat!("Alignment of ", stringify!(controller_button_event)) | |
); | |
assert_eq!( | |
unsafe { &(*(::core::ptr::null::<controller_button_event>())).index as *const _ as usize }, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(controller_button_event), | |
"::", | |
stringify!(index) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::core::ptr::null::<controller_button_event>())).down as *const _ as usize }, | |
8usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(controller_button_event), | |
"::", | |
stringify!(down) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::core::ptr::null::<controller_button_event>())).button as *const _ as usize }, | |
12usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(controller_button_event), | |
"::", | |
stringify!(button) | |
) | |
); | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct controller_motion_event { | |
pub index: root::rx_size, | |
pub axis: root::rx::input::controller_device_axis, | |
pub value: root::rx_f32, | |
} | |
#[test] | |
fn bindgen_test_layout_controller_motion_event() { | |
assert_eq!( | |
::core::mem::size_of::<controller_motion_event>(), | |
16usize, | |
concat!("Size of: ", stringify!(controller_motion_event)) | |
); | |
assert_eq!( | |
::core::mem::align_of::<controller_motion_event>(), | |
8usize, | |
concat!("Alignment of ", stringify!(controller_motion_event)) | |
); | |
assert_eq!( | |
unsafe { &(*(::core::ptr::null::<controller_motion_event>())).index as *const _ as usize }, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(controller_motion_event), | |
"::", | |
stringify!(index) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::core::ptr::null::<controller_motion_event>())).axis as *const _ as usize }, | |
8usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(controller_motion_event), | |
"::", | |
stringify!(axis) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::core::ptr::null::<controller_motion_event>())).value as *const _ as usize }, | |
12usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(controller_motion_event), | |
"::", | |
stringify!(value) | |
) | |
); | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct mouse_button_event { | |
pub down: bool, | |
pub button: ::std::os::raw::c_int, | |
} | |
#[test] | |
fn bindgen_test_layout_mouse_button_event() { | |
assert_eq!( | |
::core::mem::size_of::<mouse_button_event>(), | |
8usize, | |
concat!("Size of: ", stringify!(mouse_button_event)) | |
); | |
assert_eq!( | |
::core::mem::align_of::<mouse_button_event>(), | |
4usize, | |
concat!("Alignment of ", stringify!(mouse_button_event)) | |
); | |
assert_eq!( | |
unsafe { &(*(::core::ptr::null::<mouse_button_event>())).down as *const _ as usize }, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(mouse_button_event), | |
"::", | |
stringify!(down) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::core::ptr::null::<mouse_button_event>())).button as *const _ as usize }, | |
4usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(mouse_button_event), | |
"::", | |
stringify!(button) | |
) | |
); | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct mouse_scroll_event { | |
pub value: root::rx::math::vec2i, | |
} | |
#[test] | |
fn bindgen_test_layout_mouse_scroll_event() { | |
assert_eq!( | |
::core::mem::size_of::<mouse_scroll_event>(), | |
8usize, | |
concat!("Size of: ", stringify!(mouse_scroll_event)) | |
); | |
assert_eq!( | |
::core::mem::align_of::<mouse_scroll_event>(), | |
4usize, | |
concat!("Alignment of ", stringify!(mouse_scroll_event)) | |
); | |
assert_eq!( | |
unsafe { &(*(::core::ptr::null::<mouse_scroll_event>())).value as *const _ as usize }, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(mouse_scroll_event), | |
"::", | |
stringify!(value) | |
) | |
); | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct mouse_motion_event { | |
pub value: root::rx::math::vec4i, | |
} | |
#[test] | |
fn bindgen_test_layout_mouse_motion_event() { | |
assert_eq!( | |
::core::mem::size_of::<mouse_motion_event>(), | |
16usize, | |
concat!("Size of: ", stringify!(mouse_motion_event)) | |
); | |
assert_eq!( | |
::core::mem::align_of::<mouse_motion_event>(), | |
4usize, | |
concat!("Alignment of ", stringify!(mouse_motion_event)) | |
); | |
assert_eq!( | |
unsafe { &(*(::core::ptr::null::<mouse_motion_event>())).value as *const _ as usize }, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(mouse_motion_event), | |
"::", | |
stringify!(value) | |
) | |
); | |
} | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct text_input_event { | |
pub contents: [::std::os::raw::c_char; 32usize], | |
} | |
#[test] | |
fn bindgen_test_layout_text_input_event() { | |
assert_eq!( | |
::core::mem::size_of::<text_input_event>(), | |
32usize, | |
concat!("Size of: ", stringify!(text_input_event)) | |
); | |
assert_eq!( | |
::core::mem::align_of::<text_input_event>(), | |
1usize, | |
concat!("Alignment of ", stringify!(text_input_event)) | |
); | |
assert_eq!( | |
unsafe { &(*(::core::ptr::null::<text_input_event>())).contents as *const _ as usize }, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(text_input_event), | |
"::", | |
stringify!(contents) | |
) | |
); | |
} | |
#[repr(C)] | |
#[derive(Debug)] | |
pub struct clipboard_event { | |
pub contents: root::rx::string, | |
} | |
#[test] | |
fn bindgen_test_layout_clipboard_event() { | |
assert_eq!( | |
::core::mem::size_of::<clipboard_event>(), | |
48usize, | |
concat!("Size of: ", stringify!(clipboard_event)) | |
); | |
assert_eq!( | |
::core::mem::align_of::<clipboard_event>(), | |
8usize, | |
concat!("Alignment of ", stringify!(clipboard_event)) | |
); | |
assert_eq!( | |
unsafe { &(*(::core::ptr::null::<clipboard_event>())).contents as *const _ as usize }, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(clipboard_event), | |
"::", | |
stringify!(contents) | |
) | |
); | |
} | |
#[repr(C)] | |
pub struct event { | |
pub type_: root::rx::input::event_type, | |
pub __bindgen_anon_1: root::rx::input::event__bindgen_ty_1, | |
} | |
#[repr(C)] | |
pub struct event__bindgen_ty_1 { | |
pub as_nat: root::__BindgenUnionField<root::rx::utility::nat>, | |
pub as_keyboard: root::__BindgenUnionField<root::rx::input::keyboard_event>, | |
pub as_controller_notification: | |
root::__BindgenUnionField<root::rx::input::controller_notification_event>, | |
pub as_controller_button: root::__BindgenUnionField<root::rx::input::controller_button_event>, | |
pub as_controller_motion: root::__BindgenUnionField<root::rx::input::controller_motion_event>, | |
pub as_mouse_button: root::__BindgenUnionField<root::rx::input::mouse_button_event>, | |
pub as_mouse_scroll: root::__BindgenUnionField<root::rx::input::mouse_scroll_event>, | |
pub as_mouse_motion: root::__BindgenUnionField<root::rx::input::mouse_motion_event>, | |
pub as_text_input: root::__BindgenUnionField<root::rx::input::text_input_event>, | |
pub as_clipboard: root::__BindgenUnionField<root::rx::input::clipboard_event>, | |
pub bindgen_union_field: [u64; 6usize], | |
} | |
#[test] | |
fn bindgen_test_layout_event__bindgen_ty_1() { | |
assert_eq!( | |
::core::mem::size_of::<event__bindgen_ty_1>(), | |
48usize, | |
concat!("Size of: ", stringify!(event__bindgen_ty_1)) | |
); | |
assert_eq!( | |
::core::mem::align_of::<event__bindgen_ty_1>(), | |
8usize, | |
concat!("Alignment of ", stringify!(event__bindgen_ty_1)) | |
); | |
assert_eq!( | |
unsafe { &(*(::core::ptr::null::<event__bindgen_ty_1>())).as_nat as *const _ as usize }, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(event__bindgen_ty_1), | |
"::", | |
stringify!(as_nat) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::core::ptr::null::<event__bindgen_ty_1>())).as_keyboard as *const _ as usize }, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(event__bindgen_ty_1), | |
"::", | |
stringify!(as_keyboard) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::core::ptr::null::<event__bindgen_ty_1>())).as_controller_notification as *const _ as usize | |
}, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(event__bindgen_ty_1), | |
"::", | |
stringify!(as_controller_notification) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::core::ptr::null::<event__bindgen_ty_1>())).as_controller_button as *const _ as usize | |
}, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(event__bindgen_ty_1), | |
"::", | |
stringify!(as_controller_button) | |
) | |
); | |
assert_eq!( | |
unsafe { | |
&(*(::core::ptr::null::<event__bindgen_ty_1>())).as_controller_motion as *const _ as usize | |
}, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(event__bindgen_ty_1), | |
"::", | |
stringify!(as_controller_motion) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::core::ptr::null::<event__bindgen_ty_1>())).as_mouse_button as *const _ as usize }, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(event__bindgen_ty_1), | |
"::", | |
stringify!(as_mouse_button) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::core::ptr::null::<event__bindgen_ty_1>())).as_mouse_scroll as *const _ as usize }, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(event__bindgen_ty_1), | |
"::", | |
stringify!(as_mouse_scroll) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::core::ptr::null::<event__bindgen_ty_1>())).as_mouse_motion as *const _ as usize }, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(event__bindgen_ty_1), | |
"::", | |
stringify!(as_mouse_motion) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::core::ptr::null::<event__bindgen_ty_1>())).as_text_input as *const _ as usize }, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(event__bindgen_ty_1), | |
"::", | |
stringify!(as_text_input) | |
) | |
); | |
assert_eq!( | |
unsafe { &(*(::core::ptr::null::<event__bindgen_ty_1>())).as_clipboard as *const _ as usize }, | |
0usize, | |
concat!( | |
"Offset of field: ", | |
stringify!(event__bindgen_ty_1), | |
"::", | |
stringify!(as_clipboard) | |
) | |
); | |
} | |
#[test] | |
fn bindgen_test_layout_event() { | |
assert_eq!( | |
::core::mem::size_of::<event>(), | |
56usize, | |
concat!("Size of: ", stringify!(event)) | |
); | |
assert_eq!( | |
::core::mem::align_of::<event>(), | |
8usize, | |
concat!("Alignment of ", stringify!(event)) | |
); | |
assert_eq!( | |
unsafe { &(*(::core::ptr::null::<event>())).type_ as *const _ as usize }, | |
0usize, | |
concat!("Offset of field: ", stringify!(event), "::", stringify!(type_)) | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}??_Devent@input@rx@@QEAAXXZ"] | |
pub fn event_event_destructor(this: *mut root::rx::input::event); | |
} | |
impl event { | |
#[inline] | |
pub unsafe fn destruct(&mut self) { | |
event_event_destructor(self) | |
} | |
} | |
/// <div rustbindgen opaque></div> | |
#[repr(C)] | |
#[repr(align(8))] | |
#[derive(Debug, Copy, Clone)] | |
pub struct text { | |
pub _bindgen_opaque_blob: [u64; 10usize], | |
} | |
impl text_position { | |
pub const k_left: root::rx::input::text_position = root::rx::input::text_position(0); | |
} | |
impl text_position { | |
pub const k_right: root::rx::input::text_position = root::rx::input::text_position(1); | |
} | |
impl text_position { | |
pub const k_home: root::rx::input::text_position = root::rx::input::text_position(2); | |
} | |
impl text_position { | |
pub const k_end: root::rx::input::text_position = root::rx::input::text_position(3); | |
} | |
impl ::core::ops::BitOr<root::rx::input::text_position> for root::rx::input::text_position { | |
type Output = Self; | |
#[inline] | |
fn bitor(self, other: Self) -> Self { | |
text_position(self.0 | other.0) | |
} | |
} | |
impl ::core::ops::BitOrAssign for root::rx::input::text_position { | |
#[inline] | |
fn bitor_assign(&mut self, rhs: root::rx::input::text_position) { | |
self.0 |= rhs.0; | |
} | |
} | |
impl ::core::ops::BitAnd<root::rx::input::text_position> for root::rx::input::text_position { | |
type Output = Self; | |
#[inline] | |
fn bitand(self, other: Self) -> Self { | |
text_position(self.0 & other.0) | |
} | |
} | |
impl ::core::ops::BitAndAssign for root::rx::input::text_position { | |
#[inline] | |
fn bitand_assign(&mut self, rhs: root::rx::input::text_position) { | |
self.0 &= rhs.0; | |
} | |
} | |
#[repr(transparent)] | |
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] | |
pub struct text_position(pub i32); | |
pub const text_k_selecting: root::rx::input::text__bindgen_ty_1 = root::rx::input::text__bindgen_ty_1(1); | |
pub const text_k_selected: root::rx::input::text__bindgen_ty_1 = root::rx::input::text__bindgen_ty_1(2); | |
pub const text_k_select_left: root::rx::input::text__bindgen_ty_1 = root::rx::input::text__bindgen_ty_1(4); | |
pub const text_k_select_right: root::rx::input::text__bindgen_ty_1 = root::rx::input::text__bindgen_ty_1(8); | |
pub const text_k_cursor_visible: root::rx::input::text__bindgen_ty_1 = | |
root::rx::input::text__bindgen_ty_1(16); | |
pub const text_k_active: root::rx::input::text__bindgen_ty_1 = root::rx::input::text__bindgen_ty_1(32); | |
impl ::core::ops::BitOr<root::rx::input::text__bindgen_ty_1> for root::rx::input::text__bindgen_ty_1 { | |
type Output = Self; | |
#[inline] | |
fn bitor(self, other: Self) -> Self { | |
text__bindgen_ty_1(self.0 | other.0) | |
} | |
} | |
impl ::core::ops::BitOrAssign for root::rx::input::text__bindgen_ty_1 { | |
#[inline] | |
fn bitor_assign(&mut self, rhs: root::rx::input::text__bindgen_ty_1) { | |
self.0 |= rhs.0; | |
} | |
} | |
impl ::core::ops::BitAnd<root::rx::input::text__bindgen_ty_1> for root::rx::input::text__bindgen_ty_1 { | |
type Output = Self; | |
#[inline] | |
fn bitand(self, other: Self) -> Self { | |
text__bindgen_ty_1(self.0 & other.0) | |
} | |
} | |
impl ::core::ops::BitAndAssign for root::rx::input::text__bindgen_ty_1 { | |
#[inline] | |
fn bitand_assign(&mut self, rhs: root::rx::input::text__bindgen_ty_1) { | |
self.0 &= rhs.0; | |
} | |
} | |
#[repr(transparent)] | |
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] | |
pub struct text__bindgen_ty_1(pub i32); | |
#[test] | |
fn bindgen_test_layout_text() { | |
assert_eq!( | |
::core::mem::size_of::<text>(), | |
80usize, | |
concat!("Size of: ", stringify!(text)) | |
); | |
assert_eq!( | |
::core::mem::align_of::<text>(), | |
8usize, | |
concat!("Alignment of ", stringify!(text)) | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}?update@text@input@rx@@QEAAXM@Z"] | |
pub fn text_update(this: *mut root::rx::input::text, _delta_time: root::rx_f32); | |
} | |
extern "C" { | |
#[link_name = "\u{1}?copy@text@input@rx@@QEBA?AUstring@3@XZ"] | |
pub fn text_copy(this: *const root::rx::input::text) -> root::rx::string; | |
} | |
extern "C" { | |
#[link_name = "\u{1}?cut@text@input@rx@@QEAA?AUstring@3@XZ"] | |
pub fn text_cut(this: *mut root::rx::input::text) -> root::rx::string; | |
} | |
extern "C" { | |
#[link_name = "\u{1}?paste@text@input@rx@@QEAAXAEBUstring@3@@Z"] | |
pub fn text_paste(this: *mut root::rx::input::text, _contents: *const root::rx::string); | |
} | |
extern "C" { | |
#[link_name = "\u{1}?select@text@input@rx@@QEAAX_N@Z"] | |
pub fn text_select(this: *mut root::rx::input::text, _select: bool); | |
} | |
extern "C" { | |
#[link_name = "\u{1}?select_all@text@input@rx@@QEAAXXZ"] | |
pub fn text_select_all(this: *mut root::rx::input::text); | |
} | |
extern "C" { | |
#[link_name = "\u{1}?move_cursor@text@input@rx@@QEAAXW4position@123@@Z"] | |
pub fn text_move_cursor(this: *mut root::rx::input::text, _position: root::rx::input::text_position); | |
} | |
extern "C" { | |
#[link_name = "\u{1}?erase@text@input@rx@@QEAAXXZ"] | |
pub fn text_erase(this: *mut root::rx::input::text); | |
} | |
extern "C" { | |
#[link_name = "\u{1}?assign@text@input@rx@@QEAAXAEBUstring@3@@Z"] | |
pub fn text_assign(this: *mut root::rx::input::text, _contents: *const root::rx::string); | |
} | |
extern "C" { | |
#[link_name = "\u{1}?clear@text@input@rx@@QEAAXXZ"] | |
pub fn text_clear(this: *mut root::rx::input::text); | |
} | |
extern "C" { | |
#[link_name = "\u{1}?is_cursor_visible@text@input@rx@@QEBA_NXZ"] | |
pub fn text_is_cursor_visible(this: *const root::rx::input::text) -> bool; | |
} | |
extern "C" { | |
#[link_name = "\u{1}?is_selecting@text@input@rx@@QEBA_NXZ"] | |
pub fn text_is_selecting(this: *const root::rx::input::text) -> bool; | |
} | |
extern "C" { | |
#[link_name = "\u{1}?is_selected@text@input@rx@@QEBA_NXZ"] | |
pub fn text_is_selected(this: *const root::rx::input::text) -> bool; | |
} | |
extern "C" { | |
#[link_name = "\u{1}?is_active@text@input@rx@@QEBA_NXZ"] | |
pub fn text_is_active(this: *const root::rx::input::text) -> bool; | |
} | |
extern "C" { | |
#[link_name = "\u{1}?contents@text@input@rx@@QEBAAEBUstring@3@XZ"] | |
pub fn text_contents(this: *const root::rx::input::text) -> *const root::rx::string; | |
} | |
extern "C" { | |
#[link_name = "\u{1}?cursor@text@input@rx@@QEBA_KXZ"] | |
pub fn text_cursor(this: *const root::rx::input::text) -> root::rx_size; | |
} | |
extern "C" { | |
#[link_name = "\u{1}?selection@text@input@rx@@QEBAAEAY01$$CB_KXZ"] | |
pub fn text_selection(this: *const root::rx::input::text) -> *mut [root::rx_size; 2usize]; | |
} | |
extern "C" { | |
#[link_name = "\u{1}??0text@input@rx@@QEAA@XZ"] | |
pub fn text_text(this: *mut root::rx::input::text); | |
} | |
impl text { | |
#[inline] | |
pub unsafe fn update(&mut self, _delta_time: root::rx_f32) { | |
text_update(self, _delta_time) | |
} | |
#[inline] | |
pub unsafe fn copy(&self) -> root::rx::string { | |
text_copy(self) | |
} | |
#[inline] | |
pub unsafe fn cut(&mut self) -> root::rx::string { | |
text_cut(self) | |
} | |
#[inline] | |
pub unsafe fn paste(&mut self, _contents: *const root::rx::string) { | |
text_paste(self, _contents) | |
} | |
#[inline] | |
pub unsafe fn select(&mut self, _select: bool) { | |
text_select(self, _select) | |
} | |
#[inline] | |
pub unsafe fn select_all(&mut self) { | |
text_select_all(self) | |
} | |
#[inline] | |
pub unsafe fn move_cursor(&mut self, _position: root::rx::input::text_position) { | |
text_move_cursor(self, _position) | |
} | |
#[inline] | |
pub unsafe fn erase(&mut self) { | |
text_erase(self) | |
} | |
#[inline] | |
pub unsafe fn assign(&mut self, _contents: *const root::rx::string) { | |
text_assign(self, _contents) | |
} | |
#[inline] | |
pub unsafe fn clear(&mut self) { | |
text_clear(self) | |
} | |
#[inline] | |
pub unsafe fn is_cursor_visible(&self) -> bool { | |
text_is_cursor_visible(self) | |
} | |
#[inline] | |
pub unsafe fn is_selecting(&self) -> bool { | |
text_is_selecting(self) | |
} | |
#[inline] | |
pub unsafe fn is_selected(&self) -> bool { | |
text_is_selected(self) | |
} | |
#[inline] | |
pub unsafe fn is_active(&self) -> bool { | |
text_is_active(self) | |
} | |
#[inline] | |
pub unsafe fn contents(&self) -> *const root::rx::string { | |
text_contents(self) | |
} | |
#[inline] | |
pub unsafe fn cursor(&self) -> root::rx_size { | |
text_cursor(self) | |
} | |
#[inline] | |
pub unsafe fn selection(&self) -> *mut [root::rx_size; 2usize] { | |
text_selection(self) | |
} | |
#[inline] | |
pub unsafe fn new() -> Self { | |
let mut __bindgen_tmp = ::core::mem::MaybeUninit::uninit(); | |
text_text(__bindgen_tmp.as_mut_ptr()); | |
__bindgen_tmp.assume_init() | |
} | |
} | |
pub const text_k_cursor_visible_time: root::rx_f32 = 0.5; | |
/// <div rustbindgen opaque></div> | |
#[repr(C)] | |
#[repr(align(8))] | |
pub struct input { | |
pub _bindgen_opaque_blob: [u64; 416usize], | |
} | |
impl input_updated { | |
pub const k_clipboard: root::rx::input::input_updated = root::rx::input::input_updated(1); | |
} | |
impl input_updated { | |
pub const k_mouse_capture: root::rx::input::input_updated = root::rx::input::input_updated(2); | |
} | |
impl ::core::ops::BitOr<root::rx::input::input_updated> for root::rx::input::input_updated { | |
type Output = Self; | |
#[inline] | |
fn bitor(self, other: Self) -> Self { | |
input_updated(self.0 | other.0) | |
} | |
} | |
impl ::core::ops::BitOrAssign for root::rx::input::input_updated { | |
#[inline] | |
fn bitor_assign(&mut self, rhs: root::rx::input::input_updated) { | |
self.0 |= rhs.0; | |
} | |
} | |
impl ::core::ops::BitAnd<root::rx::input::input_updated> for root::rx::input::input_updated { | |
type Output = Self; | |
#[inline] | |
fn bitand(self, other: Self) -> Self { | |
input_updated(self.0 & other.0) | |
} | |
} | |
impl ::core::ops::BitAndAssign for root::rx::input::input_updated { | |
#[inline] | |
fn bitand_assign(&mut self, rhs: root::rx::input::input_updated) { | |
self.0 &= rhs.0; | |
} | |
} | |
#[repr(transparent)] | |
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] | |
pub struct input_updated(pub i32); | |
#[test] | |
fn bindgen_test_layout_input() { | |
assert_eq!( | |
::core::mem::size_of::<input>(), | |
3328usize, | |
concat!("Size of: ", stringify!(input)) | |
); | |
assert_eq!( | |
::core::mem::align_of::<input>(), | |
8usize, | |
concat!("Alignment of ", stringify!(input)) | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}?handle_event@input@1rx@@QEAAXAEBUevent@12@@Z"] | |
pub fn input_handle_event(this: *mut root::rx::input::input, _event: *const root::rx::input::event); | |
} | |
extern "C" { | |
#[link_name = "\u{1}?update@input@1rx@@QEAAHM@Z"] | |
pub fn input_update( | |
this: *mut root::rx::input::input, | |
_delta_time: root::rx_f32, | |
) -> ::std::os::raw::c_int; | |
} | |
extern "C" { | |
#[link_name = "\u{1}?mouse@input@1rx@@QEBAAEBUmouse_device@12@XZ"] | |
pub fn input_mouse(this: *const root::rx::input::input) -> *const root::rx::input::mouse_device; | |
} | |
extern "C" { | |
#[link_name = "\u{1}?keyboard@input@1rx@@QEBAAEBUkeyboard_device@12@XZ"] | |
pub fn input_keyboard(this: *const root::rx::input::input) -> *const root::rx::input::keyboard_device; | |
} | |
extern "C" { | |
#[link_name = "\u{1}?controllers@input@1rx@@QEBAAEBU?$vector@Ucontroller_device@input@rx@@@2@XZ"] | |
pub fn input_controllers( | |
this: *const root::rx::input::input, | |
) -> *const root::rx::vector<root::rx::input::controller_device>; | |
} | |
extern "C" { | |
#[link_name = "\u{1}?clipboard@input@1rx@@QEBAAEBUstring@2@XZ"] | |
pub fn input_clipboard(this: *const root::rx::input::input) -> *const root::rx::string; | |
} | |
extern "C" { | |
#[link_name = "\u{1}?active_text@input@1rx@@QEBAPEAUtext@12@XZ"] | |
pub fn input_active_text(this: *const root::rx::input::input) -> *mut root::rx::input::text; | |
} | |
extern "C" { | |
#[link_name = "\u{1}?is_mouse_captured@input@1rx@@QEBA_NXZ"] | |
pub fn input_is_mouse_captured(this: *const root::rx::input::input) -> bool; | |
} | |
extern "C" { | |
#[link_name = "\u{1}?capture_mouse@input@1rx@@QEAAX_N@Z"] | |
pub fn input_capture_mouse(this: *mut root::rx::input::input, _capture: bool); | |
} | |
extern "C" { | |
#[link_name = "\u{1}?capture_text@input@1rx@@QEAAXPEAUtext@12@@Z"] | |
pub fn input_capture_text(this: *mut root::rx::input::input, _text: *mut root::rx::input::text); | |
} | |
extern "C" { | |
#[link_name = "\u{1}??0input@0rx@@QEAA@XZ"] | |
pub fn input_input(this: *mut root::rx::input::input); | |
} | |
extern "C" { | |
#[link_name = "\u{1}??0input@0rx@@QEAA@PEAUallocator@memory@1@@Z"] | |
pub fn input_input1(this: *mut root::rx::input::input, _allocator: *mut root::rx::memory::allocator); | |
} | |
impl input { | |
#[inline] | |
pub unsafe fn handle_event(&mut self, _event: *const root::rx::input::event) { | |
input_handle_event(self, _event) | |
} | |
#[inline] | |
pub unsafe fn update(&mut self, _delta_time: root::rx_f32) -> ::std::os::raw::c_int { | |
input_update(self, _delta_time) | |
} | |
#[inline] | |
pub unsafe fn mouse(&self) -> *const root::rx::input::mouse_device { | |
input_mouse(self) | |
} | |
#[inline] | |
pub unsafe fn keyboard(&self) -> *const root::rx::input::keyboard_device { | |
input_keyboard(self) | |
} | |
#[inline] | |
pub unsafe fn controllers(&self) -> *const root::rx::vector<root::rx::input::controller_device> { | |
input_controllers(self) | |
} | |
#[inline] | |
pub unsafe fn clipboard(&self) -> *const root::rx::string { | |
input_clipboard(self) | |
} | |
#[inline] | |
pub unsafe fn active_text(&self) -> *mut root::rx::input::text { | |
input_active_text(self) | |
} | |
#[inline] | |
pub unsafe fn is_mouse_captured(&self) -> bool { | |
input_is_mouse_captured(self) | |
} | |
#[inline] | |
pub unsafe fn capture_mouse(&mut self, _capture: bool) { | |
input_capture_mouse(self, _capture) | |
} | |
#[inline] | |
pub unsafe fn capture_text(&mut self, _text: *mut root::rx::input::text) { | |
input_capture_text(self, _text) | |
} | |
#[inline] | |
pub unsafe fn new() -> Self { | |
let mut __bindgen_tmp = ::core::mem::MaybeUninit::uninit(); | |
input_input(__bindgen_tmp.as_mut_ptr()); | |
__bindgen_tmp.assume_init() | |
} | |
#[inline] | |
pub unsafe fn new1(_allocator: *mut root::rx::memory::allocator) -> Self { | |
let mut __bindgen_tmp = ::core::mem::MaybeUninit::uninit(); | |
input_input1(__bindgen_tmp.as_mut_ptr(), _allocator); | |
__bindgen_tmp.assume_init() | |
} | |
} | |
} | |
#[repr(C)] | |
#[derive(Debug)] | |
pub struct game { | |
pub _base: root::rx::concepts::interface, | |
} | |
impl game_status { | |
pub const k_running: root::rx::game_status = root::rx::game_status(0); | |
} | |
impl game_status { | |
pub const k_restart: root::rx::game_status = root::rx::game_status(1); | |
} | |
impl game_status { | |
pub const k_shutdown: root::rx::game_status = root::rx::game_status(2); | |
} | |
impl ::core::ops::BitOr<root::rx::game_status> for root::rx::game_status { | |
type Output = Self; | |
#[inline] | |
fn bitor(self, other: Self) -> Self { | |
game_status(self.0 | other.0) | |
} | |
} | |
impl ::core::ops::BitOrAssign for root::rx::game_status { | |
#[inline] | |
fn bitor_assign(&mut self, rhs: root::rx::game_status) { | |
self.0 |= rhs.0; | |
} | |
} | |
impl ::core::ops::BitAnd<root::rx::game_status> for root::rx::game_status { | |
type Output = Self; | |
#[inline] | |
fn bitand(self, other: Self) -> Self { | |
game_status(self.0 & other.0) | |
} | |
} | |
impl ::core::ops::BitAndAssign for root::rx::game_status { | |
#[inline] | |
fn bitand_assign(&mut self, rhs: root::rx::game_status) { | |
self.0 &= rhs.0; | |
} | |
} | |
#[repr(transparent)] | |
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] | |
pub struct game_status(pub i32); | |
#[test] | |
fn bindgen_test_layout_game() { | |
assert_eq!( | |
::core::mem::size_of::<game>(), | |
16usize, | |
concat!("Size of: ", stringify!(game)) | |
); | |
assert_eq!( | |
::core::mem::align_of::<game>(), | |
8usize, | |
concat!("Alignment of ", stringify!(game)) | |
); | |
} | |
pub type creator = ::core::option::Option< | |
unsafe extern "C" fn( | |
game_builder: *mut ::core::ffi::c_void, | |
_frontend: *mut root::rx::render::frontend::interface, | |
) -> *mut root::rx::game, | |
>; | |
pub type destructor = ::core::option::Option<unsafe extern "C" fn(game: *mut root::rx::game)>; | |
} | |
pub type rx_size = ::std::os::raw::c_ulonglong; | |
pub type rx_byte = ::std::os::raw::c_uchar; | |
pub type rx_u8 = ::std::os::raw::c_uchar; | |
pub type rx_u16 = ::std::os::raw::c_ushort; | |
pub type rx_s32 = ::std::os::raw::c_int; | |
pub type rx_u32 = ::std::os::raw::c_uint; | |
pub type rx_u64 = u64; | |
pub type rx_f32 = f32; | |
pub type rx_f64 = f64; | |
extern "C" { | |
#[link_name = "\u{1}?rx_main@@YAHPEAXP6APEAUgame@rx@@0AEAUinterface@frontend@render@2@@ZP6AXPEAU12@@ZHPEAPEAD@Z"] | |
pub fn rx_main( | |
game_builder: *mut ::core::ffi::c_void, | |
game_creator: root::rx::creator, | |
game_destructor: root::rx::destructor, | |
_argc: ::std::os::raw::c_int, | |
_argv: *mut *mut ::std::os::raw::c_char, | |
) -> ::std::os::raw::c_int; | |
} | |
pub mod bve { | |
#[allow(unused_imports)] | |
use self::super::super::root; | |
#[repr(C)] | |
#[derive(Debug)] | |
pub struct game { | |
pub _base: root::rx::game, | |
pub m_self: *mut ::core::ffi::c_void, | |
pub m_on_init: ::core::option::Option<unsafe extern "C" fn(arg1: *mut ::core::ffi::c_void) -> bool>, | |
pub m_on_slice: ::core::option::Option< | |
unsafe extern "C" fn( | |
arg1: *mut ::core::ffi::c_void, | |
arg2: *mut root::rx::input::input, | |
) -> root::rx::game_status, | |
>, | |
pub m_on_resize: ::core::option::Option< | |
unsafe extern "C" fn(arg1: *mut ::core::ffi::c_void, arg2: *const root::rx::math::vec2z), | |
>, | |
pub m_dtor: ::core::option::Option<unsafe extern "C" fn(arg1: *mut ::core::ffi::c_void)>, | |
} | |
#[test] | |
fn bindgen_test_layout_game() { | |
assert_eq!( | |
::core::mem::size_of::<game>(), | |
56usize, | |
concat!("Size of: ", stringify!(game)) | |
); | |
assert_eq!( | |
::core::mem::align_of::<game>(), | |
8usize, | |
concat!("Alignment of ", stringify!(game)) | |
); | |
assert_eq!( | |
unsafe { &(*(::core::ptr::null::<game>())).m_self as *const _ as usize }, | |
16usize, | |
concat!("Offset of field: ", stringify!(game), "::", stringify!(m_self)) | |
); | |
assert_eq!( | |
unsafe { &(*(::core::ptr::null::<game>())).m_on_init as *const _ as usize }, | |
24usize, | |
concat!("Offset of field: ", stringify!(game), "::", stringify!(m_on_init)) | |
); | |
assert_eq!( | |
unsafe { &(*(::core::ptr::null::<game>())).m_on_slice as *const _ as usize }, | |
32usize, | |
concat!("Offset of field: ", stringify!(game), "::", stringify!(m_on_slice)) | |
); | |
assert_eq!( | |
unsafe { &(*(::core::ptr::null::<game>())).m_on_resize as *const _ as usize }, | |
40usize, | |
concat!("Offset of field: ", stringify!(game), "::", stringify!(m_on_resize)) | |
); | |
assert_eq!( | |
unsafe { &(*(::core::ptr::null::<game>())).m_dtor as *const _ as usize }, | |
48usize, | |
concat!("Offset of field: ", stringify!(game), "::", stringify!(m_dtor)) | |
); | |
} | |
extern "C" { | |
#[link_name = "\u{1}??0game@bve@@QEAA@PEAXP6A_N0@ZP6A?AW4status@0rx@@0AEAUinput@43@@ZP6AX0AEBU?$vec2@_K@math@3@@ZP6AX0@Z@Z"] | |
pub fn game_game( | |
this: *mut root::bve::game, | |
_self: *mut ::core::ffi::c_void, | |
_on_init: ::core::option::Option<unsafe extern "C" fn(arg1: *mut ::core::ffi::c_void) -> bool>, | |
_on_slice: ::core::option::Option< | |
unsafe extern "C" fn( | |
arg1: *mut ::core::ffi::c_void, | |
arg2: *mut root::rx::input::input, | |
) -> root::rx::game_status, | |
>, | |
_on_resize: ::core::option::Option< | |
unsafe extern "C" fn(arg1: *mut ::core::ffi::c_void, arg2: *const root::rx::math::vec2z), | |
>, | |
_dtor: ::core::option::Option<unsafe extern "C" fn(arg1: *mut ::core::ffi::c_void)>, | |
); | |
} | |
impl game { | |
#[inline] | |
pub unsafe fn new( | |
_self: *mut ::core::ffi::c_void, | |
_on_init: ::core::option::Option<unsafe extern "C" fn(arg1: *mut ::core::ffi::c_void) -> bool>, | |
_on_slice: ::core::option::Option< | |
unsafe extern "C" fn( | |
arg1: *mut ::core::ffi::c_void, | |
arg2: *mut root::rx::input::input, | |
) -> root::rx::game_status, | |
>, | |
_on_resize: ::core::option::Option< | |
unsafe extern "C" fn(arg1: *mut ::core::ffi::c_void, arg2: *const root::rx::math::vec2z), | |
>, | |
_dtor: ::core::option::Option<unsafe extern "C" fn(arg1: *mut ::core::ffi::c_void)>, | |
) -> Self { | |
let mut __bindgen_tmp = ::core::mem::MaybeUninit::uninit(); | |
game_game( | |
__bindgen_tmp.as_mut_ptr(), | |
_self, | |
_on_init, | |
_on_slice, | |
_on_resize, | |
_dtor, | |
); | |
__bindgen_tmp.assume_init() | |
} | |
} | |
extern "C" { | |
#[link_name = "\u{1}?on_init@game@bve@@UEAA_NXZ"] | |
pub fn game_on_init(this: *mut ::core::ffi::c_void) -> bool; | |
} | |
extern "C" { | |
#[link_name = "\u{1}?on_slice@game@bve@@UEAA?AW4status@1rx@@AEAUinput@54@@Z"] | |
pub fn game_on_slice( | |
this: *mut ::core::ffi::c_void, | |
arg1: *mut root::rx::input::input, | |
) -> root::rx::game_status; | |
} | |
extern "C" { | |
#[link_name = "\u{1}?on_resize@game@bve@@UEAAXAEBU?$vec2@_K@math@rx@@@Z"] | |
pub fn game_on_resize(this: *mut ::core::ffi::c_void, arg1: *const root::rx::math::vec2z); | |
} | |
extern "C" { | |
#[link_name = "\u{1}??_Dgame@bve@@QEAAXXZ"] | |
pub fn game_game_destructor(this: *mut root::bve::game); | |
} | |
} | |
/// <div rustbindgen replaces="rx::math::vec3"></div> | |
#[repr(C)] | |
#[derive(Debug, Copy, Clone)] | |
pub struct vec3<T> { | |
pub x: T, | |
pub y: T, | |
pub z: T, | |
pub _phantom_0: ::core::marker::PhantomData<::core::cell::UnsafeCell<T>>, | |
} | |
#[test] | |
fn __bindgen_test_layout_vector_open0_string_close0_instantiation() { | |
assert_eq!( | |
::core::mem::size_of::<root::rx::vector<root::rx::string>>(), | |
32usize, | |
concat!( | |
"Size of template specialization: ", | |
stringify!(root::rx::vector<root::rx::string>) | |
) | |
); | |
assert_eq!( | |
::core::mem::align_of::<root::rx::vector<root::rx::string>>(), | |
8usize, | |
concat!( | |
"Alignment of template specialization: ", | |
stringify!(root::rx::vector<root::rx::string>) | |
) | |
); | |
} | |
#[test] | |
fn __bindgen_test_layout_vector_open0_string_close0_instantiation_1() { | |
assert_eq!( | |
::core::mem::size_of::<root::rx::vector<root::rx::string>>(), | |
32usize, | |
concat!( | |
"Size of template specialization: ", | |
stringify!(root::rx::vector<root::rx::string>) | |
) | |
); | |
assert_eq!( | |
::core::mem::align_of::<root::rx::vector<root::rx::string>>(), | |
8usize, | |
concat!( | |
"Alignment of template specialization: ", | |
stringify!(root::rx::vector<root::rx::string>) | |
) | |
); | |
} | |
#[test] | |
fn __bindgen_test_layout_vec2_open0_rx_s32_close0_instantiation() { | |
assert_eq!( | |
::core::mem::size_of::<root::rx::math::vec2<root::rx_s32>>(), | |
8usize, | |
concat!( | |
"Size of template specialization: ", | |
stringify!(root::rx::math::vec2<root::rx_s32>) | |
) | |
); | |
assert_eq!( | |
::core::mem::align_of::<root::rx::math::vec2<root::rx_s32>>(), | |
4usize, | |
concat!( | |
"Alignment of template specialization: ", | |
stringify!(root::rx::math::vec2<root::rx_s32>) | |
) | |
); | |
} | |
#[test] | |
fn __bindgen_test_layout_vec2_open0_rx_size_close0_instantiation() { | |
assert_eq!( | |
::core::mem::size_of::<root::rx::math::vec2<root::rx_size>>(), | |
16usize, | |
concat!( | |
"Size of template specialization: ", | |
stringify!(root::rx::math::vec2<root::rx_size>) | |
) | |
); | |
assert_eq!( | |
::core::mem::align_of::<root::rx::math::vec2<root::rx_size>>(), | |
8usize, | |
concat!( | |
"Alignment of template specialization: ", | |
stringify!(root::rx::math::vec2<root::rx_size>) | |
) | |
); | |
} | |
#[test] | |
fn __bindgen_test_layout_vec4_open0_rx_s32_close0_instantiation() { | |
assert_eq!( | |
::core::mem::size_of::<root::rx::math::vec4<root::rx_s32>>(), | |
16usize, | |
concat!( | |
"Size of template specialization: ", | |
stringify!(root::rx::math::vec4<root::rx_s32>) | |
) | |
); | |
assert_eq!( | |
::core::mem::align_of::<root::rx::math::vec4<root::rx_s32>>(), | |
4usize, | |
concat!( | |
"Alignment of template specialization: ", | |
stringify!(root::rx::math::vec4<root::rx_s32>) | |
) | |
); | |
} | |
#[test] | |
fn __bindgen_test_layout_vector_open0_frame_timer_frame_time_close0_instantiation() { | |
assert_eq!( | |
::core::mem::size_of::<root::rx::vector<root::rx::render::frontend::frame_timer_frame_time>>(), | |
32usize, | |
concat!( | |
"Size of template specialization: ", | |
stringify!(root::rx::vector<root::rx::render::frontend::frame_timer_frame_time>) | |
) | |
); | |
assert_eq!( | |
::core::mem::align_of::<root::rx::vector<root::rx::render::frontend::frame_timer_frame_time>>(), | |
8usize, | |
concat!( | |
"Alignment of template specialization: ", | |
stringify!(root::rx::vector<root::rx::render::frontend::frame_timer_frame_time>) | |
) | |
); | |
} | |
#[test] | |
fn __bindgen_test_layout_vector_open0_frame_timer_frame_time_close0_instantiation_1() { | |
assert_eq!( | |
::core::mem::size_of::<root::rx::vector<root::rx::render::frontend::frame_timer_frame_time>>(), | |
32usize, | |
concat!( | |
"Size of template specialization: ", | |
stringify!(root::rx::vector<root::rx::render::frontend::frame_timer_frame_time>) | |
) | |
); | |
assert_eq!( | |
::core::mem::align_of::<root::rx::vector<root::rx::render::frontend::frame_timer_frame_time>>(), | |
8usize, | |
concat!( | |
"Alignment of template specialization: ", | |
stringify!(root::rx::vector<root::rx::render::frontend::frame_timer_frame_time>) | |
) | |
); | |
} | |
#[test] | |
fn __bindgen_test_layout_vector_open0_ptr_rx_byte_close0_instantiation() { | |
assert_eq!( | |
::core::mem::size_of::<root::rx::vector<*mut root::rx_byte>>(), | |
32usize, | |
concat!( | |
"Size of template specialization: ", | |
stringify!(root::rx::vector<*mut root::rx_byte>) | |
) | |
); | |
assert_eq!( | |
::core::mem::align_of::<root::rx::vector<*mut root::rx_byte>>(), | |
8usize, | |
concat!( | |
"Alignment of template specialization: ", | |
stringify!(root::rx::vector<*mut root::rx_byte>) | |
) | |
); | |
} | |
#[test] | |
fn __bindgen_test_layout_vector_open0_controller_device_close0_instantiation() { | |
assert_eq!( | |
::core::mem::size_of::<root::rx::vector<root::rx::input::controller_device>>(), | |
32usize, | |
concat!( | |
"Size of template specialization: ", | |
stringify!(root::rx::vector<root::rx::input::controller_device>) | |
) | |
); | |
assert_eq!( | |
::core::mem::align_of::<root::rx::vector<root::rx::input::controller_device>>(), | |
8usize, | |
concat!( | |
"Alignment of template specialization: ", | |
stringify!(root::rx::vector<root::rx::input::controller_device>) | |
) | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment