unity_native_plugin_sys/
lib.rs1#![allow(non_upper_case_globals)]
2#![allow(non_camel_case_types)]
3#![allow(non_snake_case)]
4#![allow(clippy::all)]
5#![allow(clippy::pedantic)]
6#![allow(unnecessary_transmutes)]
7#![allow(unsafe_op_in_unsafe_fn)]
8
9include!("plugin_api_core.rs");
10
11#[cfg(windows)]
12include!("plugin_api_windows.rs");
13
14#[cfg(target_vendor = "apple")]
15include!("plugin_api_apple.rs");
16
17#[cfg(feature = "vulkan")]
18include!("plugin_api_vulkan.rs");
19
20impl UnityInterfaceGUID {
21 pub fn new(
22 high: ::std::os::raw::c_ulonglong,
23 low: ::std::os::raw::c_ulonglong,
24 ) -> UnityInterfaceGUID {
25 UnityInterfaceGUID {
26 m_GUIDHigh: high,
27 m_GUIDLow: low,
28 }
29 }
30}