pub const EVENTQUEUE_SUPPORTS_EVENT_CLEANUP: u32 = 1;
#[repr(C)]
#[derive(Default, Copy, Clone)]
pub struct UnityInterfaceGUID {
pub m_GUIDHigh: ::std::os::raw::c_ulonglong,
pub m_GUIDLow: ::std::os::raw::c_ulonglong,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of UnityInterfaceGUID"][::std::mem::size_of::<UnityInterfaceGUID>() - 16usize];
["Alignment of UnityInterfaceGUID"][::std::mem::align_of::<UnityInterfaceGUID>() - 8usize];
["Offset of field: UnityInterfaceGUID::m_GUIDHigh"]
[::std::mem::offset_of!(UnityInterfaceGUID, m_GUIDHigh) - 0usize];
["Offset of field: UnityInterfaceGUID::m_GUIDLow"]
[::std::mem::offset_of!(UnityInterfaceGUID, m_GUIDLow) - 8usize];
};
#[repr(C)]
#[derive(Default, Copy, Clone)]
pub struct IUnityInterface {
pub _address: u8,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of IUnityInterface"][::std::mem::size_of::<IUnityInterface>() - 1usize];
["Alignment of IUnityInterface"][::std::mem::align_of::<IUnityInterface>() - 1usize];
};
#[repr(C)]
#[derive(Default, Copy, Clone)]
pub struct IUnityInterfaces {
pub GetInterface: ::std::option::Option<
unsafe extern "system" fn(guid: UnityInterfaceGUID) -> *mut IUnityInterface,
>,
pub RegisterInterface: ::std::option::Option<
unsafe extern "system" fn(guid: UnityInterfaceGUID, ptr: *mut IUnityInterface),
>,
pub GetInterfaceSplit: ::std::option::Option<
unsafe extern "system" fn(
guidHigh: ::std::os::raw::c_ulonglong,
guidLow: ::std::os::raw::c_ulonglong,
) -> *mut IUnityInterface,
>,
pub RegisterInterfaceSplit: ::std::option::Option<
unsafe extern "system" fn(
guidHigh: ::std::os::raw::c_ulonglong,
guidLow: ::std::os::raw::c_ulonglong,
ptr: *mut IUnityInterface,
),
>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of IUnityInterfaces"][::std::mem::size_of::<IUnityInterfaces>() - 32usize];
["Alignment of IUnityInterfaces"][::std::mem::align_of::<IUnityInterfaces>() - 8usize];
["Offset of field: IUnityInterfaces::GetInterface"]
[::std::mem::offset_of!(IUnityInterfaces, GetInterface) - 0usize];
["Offset of field: IUnityInterfaces::RegisterInterface"]
[::std::mem::offset_of!(IUnityInterfaces, RegisterInterface) - 8usize];
["Offset of field: IUnityInterfaces::GetInterfaceSplit"]
[::std::mem::offset_of!(IUnityInterfaces, GetInterfaceSplit) - 16usize];
["Offset of field: IUnityInterfaces::RegisterInterfaceSplit"]
[::std::mem::offset_of!(IUnityInterfaces, RegisterInterfaceSplit) - 24usize];
};
unsafe extern "system" {
pub fn UnityPluginLoad(unityInterfaces: *mut IUnityInterfaces);
}
unsafe extern "system" {
pub fn UnityPluginUnload();
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct RenderSurfaceBase {
_unused: [u8; 0],
}
pub type UnityRenderBuffer = *mut RenderSurfaceBase;
pub type UnityTextureID = ::std::os::raw::c_uint;
pub const UnityGfxRenderer_kUnityGfxRendererD3D11: UnityGfxRenderer = 2;
pub const UnityGfxRenderer_kUnityGfxRendererNull: UnityGfxRenderer = 4;
pub const UnityGfxRenderer_kUnityGfxRendererOpenGLES30: UnityGfxRenderer = 11;
pub const UnityGfxRenderer_kUnityGfxRendererPS4: UnityGfxRenderer = 13;
pub const UnityGfxRenderer_kUnityGfxRendererXboxOne: UnityGfxRenderer = 14;
pub const UnityGfxRenderer_kUnityGfxRendererMetal: UnityGfxRenderer = 16;
pub const UnityGfxRenderer_kUnityGfxRendererOpenGLCore: UnityGfxRenderer = 17;
pub const UnityGfxRenderer_kUnityGfxRendererD3D12: UnityGfxRenderer = 18;
pub const UnityGfxRenderer_kUnityGfxRendererVulkan: UnityGfxRenderer = 21;
pub const UnityGfxRenderer_kUnityGfxRendererNvn: UnityGfxRenderer = 22;
pub const UnityGfxRenderer_kUnityGfxRendererXboxOneD3D12: UnityGfxRenderer = 23;
pub const UnityGfxRenderer_kUnityGfxRendererGameCoreXboxOne: UnityGfxRenderer = 24;
pub const UnityGfxRenderer_kUnityGfxRendererGameCoreXboxSeries: UnityGfxRenderer = 25;
pub const UnityGfxRenderer_kUnityGfxRendererPS5: UnityGfxRenderer = 26;
pub const UnityGfxRenderer_kUnityGfxRendererPS5NGGC: UnityGfxRenderer = 27;
pub const UnityGfxRenderer_kUnityGfxRendererNvn2: UnityGfxRenderer = 29;
pub type UnityGfxRenderer = ::std::os::raw::c_uint;
pub const UnityGfxDeviceEventType_kUnityGfxDeviceEventInitialize: UnityGfxDeviceEventType = 0;
pub const UnityGfxDeviceEventType_kUnityGfxDeviceEventShutdown: UnityGfxDeviceEventType = 1;
pub const UnityGfxDeviceEventType_kUnityGfxDeviceEventBeforeReset: UnityGfxDeviceEventType = 2;
pub const UnityGfxDeviceEventType_kUnityGfxDeviceEventAfterReset: UnityGfxDeviceEventType = 3;
pub type UnityGfxDeviceEventType = ::std::os::raw::c_uint;
pub type IUnityGraphicsDeviceEventCallback =
::std::option::Option<unsafe extern "system" fn(eventType: UnityGfxDeviceEventType)>;
#[repr(C)]
#[derive(Default, Copy, Clone)]
pub struct IUnityGraphics {
pub GetRenderer: ::std::option::Option<unsafe extern "system" fn() -> UnityGfxRenderer>,
pub RegisterDeviceEventCallback:
::std::option::Option<unsafe extern "system" fn(callback: IUnityGraphicsDeviceEventCallback)>,
pub UnregisterDeviceEventCallback:
::std::option::Option<unsafe extern "system" fn(callback: IUnityGraphicsDeviceEventCallback)>,
pub ReserveEventIDRange: ::std::option::Option<
unsafe extern "system" fn(count: ::std::os::raw::c_int) -> ::std::os::raw::c_int,
>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of IUnityGraphics"][::std::mem::size_of::<IUnityGraphics>() - 32usize];
["Alignment of IUnityGraphics"][::std::mem::align_of::<IUnityGraphics>() - 8usize];
["Offset of field: IUnityGraphics::GetRenderer"]
[::std::mem::offset_of!(IUnityGraphics, GetRenderer) - 0usize];
["Offset of field: IUnityGraphics::RegisterDeviceEventCallback"]
[::std::mem::offset_of!(IUnityGraphics, RegisterDeviceEventCallback) - 8usize];
["Offset of field: IUnityGraphics::UnregisterDeviceEventCallback"]
[::std::mem::offset_of!(IUnityGraphics, UnregisterDeviceEventCallback) - 16usize];
["Offset of field: IUnityGraphics::ReserveEventIDRange"]
[::std::mem::offset_of!(IUnityGraphics, ReserveEventIDRange) - 24usize];
};
pub type UnityRenderingEvent =
::std::option::Option<unsafe extern "system" fn(eventId: ::std::os::raw::c_int)>;
pub type UnityRenderingEventAndData = ::std::option::Option<
unsafe extern "system" fn(eventId: ::std::os::raw::c_int, data: *mut ::std::os::raw::c_void),
>;
pub const UnityRenderingExtEventType_kUnityRenderingExtEventSetStereoTarget:
UnityRenderingExtEventType = 0;
pub const UnityRenderingExtEventType_kUnityRenderingExtEventSetStereoEye:
UnityRenderingExtEventType = 1;
pub const UnityRenderingExtEventType_kUnityRenderingExtEventStereoRenderingDone:
UnityRenderingExtEventType = 2;
pub const UnityRenderingExtEventType_kUnityRenderingExtEventBeforeDrawCall:
UnityRenderingExtEventType = 3;
pub const UnityRenderingExtEventType_kUnityRenderingExtEventAfterDrawCall:
UnityRenderingExtEventType = 4;
pub const UnityRenderingExtEventType_kUnityRenderingExtEventCustomGrab: UnityRenderingExtEventType =
5;
pub const UnityRenderingExtEventType_kUnityRenderingExtEventCustomBlit: UnityRenderingExtEventType =
6;
pub const UnityRenderingExtEventType_kUnityRenderingExtEventUpdateTextureBegin:
UnityRenderingExtEventType = 7;
pub const UnityRenderingExtEventType_kUnityRenderingExtEventUpdateTextureEnd:
UnityRenderingExtEventType = 8;
pub const UnityRenderingExtEventType_kUnityRenderingExtEventUpdateTextureBeginV1:
UnityRenderingExtEventType = 7;
pub const UnityRenderingExtEventType_kUnityRenderingExtEventUpdateTextureEndV1:
UnityRenderingExtEventType = 8;
pub const UnityRenderingExtEventType_kUnityRenderingExtEventUpdateTextureBeginV2:
UnityRenderingExtEventType = 9;
pub const UnityRenderingExtEventType_kUnityRenderingExtEventUpdateTextureEndV2:
UnityRenderingExtEventType = 10;
pub const UnityRenderingExtEventType_kUnityRenderingExtEventCount: UnityRenderingExtEventType = 11;
pub const UnityRenderingExtEventType_kUnityRenderingExtUserEventsStart: UnityRenderingExtEventType =
11;
pub type UnityRenderingExtEventType = ::std::os::raw::c_uint;
pub const UnityRenderingExtCustomBlitCommands_kUnityRenderingExtCustomBlitVRFlush:
UnityRenderingExtCustomBlitCommands = 0;
pub const UnityRenderingExtCustomBlitCommands_kUnityRenderingExtCustomBlitCount:
UnityRenderingExtCustomBlitCommands = 1;
pub const UnityRenderingExtCustomBlitCommands_kUnityRenderingExtUserCustomBlitStart:
UnityRenderingExtCustomBlitCommands = 1;
pub type UnityRenderingExtCustomBlitCommands = ::std::os::raw::c_uint;
pub const UnityRenderingExtQueryType_kUnityRenderingExtQueryOverrideViewport:
UnityRenderingExtQueryType = 1;
pub const UnityRenderingExtQueryType_kUnityRenderingExtQueryOverrideScissor:
UnityRenderingExtQueryType = 2;
pub const UnityRenderingExtQueryType_kUnityRenderingExtQueryOverrideVROcclussionMesh:
UnityRenderingExtQueryType = 4;
pub const UnityRenderingExtQueryType_kUnityRenderingExtQueryOverrideVRSinglePass:
UnityRenderingExtQueryType = 8;
pub const UnityRenderingExtQueryType_kUnityRenderingExtQueryKeepOriginalDoubleWideWidth_DEPRECATED : UnityRenderingExtQueryType = 16 ;
pub const UnityRenderingExtQueryType_kUnityRenderingExtQueryRequestVRFlushCallback:
UnityRenderingExtQueryType = 32;
pub const UnityRenderingExtQueryType_kUnityRenderingExtQueryOverridePresentFrame:
UnityRenderingExtQueryType = 64;
pub type UnityRenderingExtQueryType = ::std::os::raw::c_uint;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatNone:
UnityRenderingExtTextureFormat = 0;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatFirst:
UnityRenderingExtTextureFormat = 0;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatR8_SRGB:
UnityRenderingExtTextureFormat = 1;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatR8G8_SRGB:
UnityRenderingExtTextureFormat = 2;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatR8G8B8_SRGB:
UnityRenderingExtTextureFormat = 3;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatR8G8B8A8_SRGB:
UnityRenderingExtTextureFormat = 4;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatR8_UNorm:
UnityRenderingExtTextureFormat = 5;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatR8G8_UNorm:
UnityRenderingExtTextureFormat = 6;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatR8G8B8_UNorm:
UnityRenderingExtTextureFormat = 7;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatR8G8B8A8_UNorm:
UnityRenderingExtTextureFormat = 8;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatR8_SNorm:
UnityRenderingExtTextureFormat = 9;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatR8G8_SNorm:
UnityRenderingExtTextureFormat = 10;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatR8G8B8_SNorm:
UnityRenderingExtTextureFormat = 11;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatR8G8B8A8_SNorm:
UnityRenderingExtTextureFormat = 12;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatR8_UInt:
UnityRenderingExtTextureFormat = 13;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatR8G8_UInt:
UnityRenderingExtTextureFormat = 14;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatR8G8B8_UInt:
UnityRenderingExtTextureFormat = 15;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatR8G8B8A8_UInt:
UnityRenderingExtTextureFormat = 16;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatR8_SInt:
UnityRenderingExtTextureFormat = 17;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatR8G8_SInt:
UnityRenderingExtTextureFormat = 18;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatR8G8B8_SInt:
UnityRenderingExtTextureFormat = 19;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatR8G8B8A8_SInt:
UnityRenderingExtTextureFormat = 20;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatR16_UNorm:
UnityRenderingExtTextureFormat = 21;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatR16G16_UNorm:
UnityRenderingExtTextureFormat = 22;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatR16G16B16_UNorm:
UnityRenderingExtTextureFormat = 23;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatR16G16B16A16_UNorm:
UnityRenderingExtTextureFormat = 24;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatR16_SNorm:
UnityRenderingExtTextureFormat = 25;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatR16G16_SNorm:
UnityRenderingExtTextureFormat = 26;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatR16G16B16_SNorm:
UnityRenderingExtTextureFormat = 27;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatR16G16B16A16_SNorm:
UnityRenderingExtTextureFormat = 28;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatR16_UInt:
UnityRenderingExtTextureFormat = 29;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatR16G16_UInt:
UnityRenderingExtTextureFormat = 30;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatR16G16B16_UInt:
UnityRenderingExtTextureFormat = 31;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatR16G16B16A16_UInt:
UnityRenderingExtTextureFormat = 32;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatR16_SInt:
UnityRenderingExtTextureFormat = 33;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatR16G16_SInt:
UnityRenderingExtTextureFormat = 34;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatR16G16B16_SInt:
UnityRenderingExtTextureFormat = 35;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatR16G16B16A16_SInt:
UnityRenderingExtTextureFormat = 36;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatR32_UInt:
UnityRenderingExtTextureFormat = 37;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatR32G32_UInt:
UnityRenderingExtTextureFormat = 38;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatR32G32B32_UInt:
UnityRenderingExtTextureFormat = 39;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatR32G32B32A32_UInt:
UnityRenderingExtTextureFormat = 40;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatR32_SInt:
UnityRenderingExtTextureFormat = 41;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatR32G32_SInt:
UnityRenderingExtTextureFormat = 42;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatR32G32B32_SInt:
UnityRenderingExtTextureFormat = 43;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatR32G32B32A32_SInt:
UnityRenderingExtTextureFormat = 44;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatR16_SFloat:
UnityRenderingExtTextureFormat = 45;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatR16G16_SFloat:
UnityRenderingExtTextureFormat = 46;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatR16G16B16_SFloat:
UnityRenderingExtTextureFormat = 47;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatR16G16B16A16_SFloat:
UnityRenderingExtTextureFormat = 48;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatR32_SFloat:
UnityRenderingExtTextureFormat = 49;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatR32G32_SFloat:
UnityRenderingExtTextureFormat = 50;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatR32G32B32_SFloat:
UnityRenderingExtTextureFormat = 51;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatR32G32B32A32_SFloat:
UnityRenderingExtTextureFormat = 52;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatL8_UNorm:
UnityRenderingExtTextureFormat = 53;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatA8_UNorm:
UnityRenderingExtTextureFormat = 54;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatA16_UNorm:
UnityRenderingExtTextureFormat = 55;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatB8G8R8_SRGB:
UnityRenderingExtTextureFormat = 56;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatB8G8R8A8_SRGB:
UnityRenderingExtTextureFormat = 57;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatB8G8R8_UNorm:
UnityRenderingExtTextureFormat = 58;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatB8G8R8A8_UNorm:
UnityRenderingExtTextureFormat = 59;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatB8G8R8_SNorm:
UnityRenderingExtTextureFormat = 60;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatB8G8R8A8_SNorm:
UnityRenderingExtTextureFormat = 61;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatB8G8R8_UInt:
UnityRenderingExtTextureFormat = 62;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatB8G8R8A8_UInt:
UnityRenderingExtTextureFormat = 63;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatB8G8R8_SInt:
UnityRenderingExtTextureFormat = 64;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatB8G8R8A8_SInt:
UnityRenderingExtTextureFormat = 65;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatR4G4B4A4_UNormPack16:
UnityRenderingExtTextureFormat = 66;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatB4G4R4A4_UNormPack16:
UnityRenderingExtTextureFormat = 67;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatR5G6B5_UNormPack16:
UnityRenderingExtTextureFormat = 68;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatB5G6R5_UNormPack16:
UnityRenderingExtTextureFormat = 69;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatR5G5B5A1_UNormPack16:
UnityRenderingExtTextureFormat = 70;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatB5G5R5A1_UNormPack16:
UnityRenderingExtTextureFormat = 71;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatA1R5G5B5_UNormPack16:
UnityRenderingExtTextureFormat = 72;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatE5B9G9R9_UFloatPack32:
UnityRenderingExtTextureFormat = 73;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatB10G11R11_UFloatPack32:
UnityRenderingExtTextureFormat = 74;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatA2B10G10R10_UNormPack32:
UnityRenderingExtTextureFormat = 75;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatA2B10G10R10_UIntPack32:
UnityRenderingExtTextureFormat = 76;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatA2B10G10R10_SIntPack32:
UnityRenderingExtTextureFormat = 77;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatA2R10G10B10_UNormPack32:
UnityRenderingExtTextureFormat = 78;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatA2R10G10B10_UIntPack32:
UnityRenderingExtTextureFormat = 79;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatA2R10G10B10_SIntPack32:
UnityRenderingExtTextureFormat = 80;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatA2R10G10B10_XRSRGBPack32:
UnityRenderingExtTextureFormat = 81;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatA2R10G10B10_XRUNormPack32:
UnityRenderingExtTextureFormat = 82;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatR10G10B10_XRSRGBPack32:
UnityRenderingExtTextureFormat = 83;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatR10G10B10_XRUNormPack32:
UnityRenderingExtTextureFormat = 84;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatA10R10G10B10_XRSRGBPack32:
UnityRenderingExtTextureFormat = 85;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatA10R10G10B10_XRUNormPack32:
UnityRenderingExtTextureFormat = 86;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatA8R8G8B8_SRGB:
UnityRenderingExtTextureFormat = 87;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatA8R8G8B8_UNorm:
UnityRenderingExtTextureFormat = 88;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatA32R32G32B32_SFloat:
UnityRenderingExtTextureFormat = 89;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatD16_UNorm:
UnityRenderingExtTextureFormat = 90;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatD24_UNorm:
UnityRenderingExtTextureFormat = 91;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatD24_UNorm_S8_UInt:
UnityRenderingExtTextureFormat = 92;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatD32_SFloat:
UnityRenderingExtTextureFormat = 93;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatD32_SFloat_S8_UInt:
UnityRenderingExtTextureFormat = 94;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatS8_UInt:
UnityRenderingExtTextureFormat = 95;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatRGBA_DXT1_SRGB:
UnityRenderingExtTextureFormat = 96;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatRGBA_DXT1_UNorm:
UnityRenderingExtTextureFormat = 97;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatRGBA_DXT3_SRGB:
UnityRenderingExtTextureFormat = 98;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatRGBA_DXT3_UNorm:
UnityRenderingExtTextureFormat = 99;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatRGBA_DXT5_SRGB:
UnityRenderingExtTextureFormat = 100;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatRGBA_DXT5_UNorm:
UnityRenderingExtTextureFormat = 101;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatR_BC4_UNorm:
UnityRenderingExtTextureFormat = 102;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatR_BC4_SNorm:
UnityRenderingExtTextureFormat = 103;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatRG_BC5_UNorm:
UnityRenderingExtTextureFormat = 104;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatRG_BC5_SNorm:
UnityRenderingExtTextureFormat = 105;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatRGB_BC6H_UFloat:
UnityRenderingExtTextureFormat = 106;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatRGB_BC6H_SFloat:
UnityRenderingExtTextureFormat = 107;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatRGBA_BC7_SRGB:
UnityRenderingExtTextureFormat = 108;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatRGBA_BC7_UNorm:
UnityRenderingExtTextureFormat = 109;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatRGB_PVRTC_2Bpp_SRGB:
UnityRenderingExtTextureFormat = 110;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatRGB_PVRTC_2Bpp_UNorm:
UnityRenderingExtTextureFormat = 111;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatRGB_PVRTC_4Bpp_SRGB:
UnityRenderingExtTextureFormat = 112;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatRGB_PVRTC_4Bpp_UNorm:
UnityRenderingExtTextureFormat = 113;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatRGBA_PVRTC_2Bpp_SRGB:
UnityRenderingExtTextureFormat = 114;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatRGBA_PVRTC_2Bpp_UNorm:
UnityRenderingExtTextureFormat = 115;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatRGBA_PVRTC_4Bpp_SRGB:
UnityRenderingExtTextureFormat = 116;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatRGBA_PVRTC_4Bpp_UNorm:
UnityRenderingExtTextureFormat = 117;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatRGB_ETC_UNorm:
UnityRenderingExtTextureFormat = 118;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatRGB_ETC2_SRGB:
UnityRenderingExtTextureFormat = 119;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatRGB_ETC2_UNorm:
UnityRenderingExtTextureFormat = 120;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatRGB_A1_ETC2_SRGB:
UnityRenderingExtTextureFormat = 121;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatRGB_A1_ETC2_UNorm:
UnityRenderingExtTextureFormat = 122;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatRGBA_ETC2_SRGB:
UnityRenderingExtTextureFormat = 123;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatRGBA_ETC2_UNorm:
UnityRenderingExtTextureFormat = 124;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatR_EAC_UNorm:
UnityRenderingExtTextureFormat = 125;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatR_EAC_SNorm:
UnityRenderingExtTextureFormat = 126;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatRG_EAC_UNorm:
UnityRenderingExtTextureFormat = 127;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatRG_EAC_SNorm:
UnityRenderingExtTextureFormat = 128;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatRGBA_ASTC4X4_SRGB:
UnityRenderingExtTextureFormat = 129;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatRGBA_ASTC4X4_UNorm:
UnityRenderingExtTextureFormat = 130;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatRGBA_ASTC5X5_SRGB:
UnityRenderingExtTextureFormat = 131;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatRGBA_ASTC5X5_UNorm:
UnityRenderingExtTextureFormat = 132;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatRGBA_ASTC6X6_SRGB:
UnityRenderingExtTextureFormat = 133;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatRGBA_ASTC6X6_UNorm:
UnityRenderingExtTextureFormat = 134;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatRGBA_ASTC8X8_SRGB:
UnityRenderingExtTextureFormat = 135;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatRGBA_ASTC8X8_UNorm:
UnityRenderingExtTextureFormat = 136;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatRGBA_ASTC10X10_SRGB:
UnityRenderingExtTextureFormat = 137;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatRGBA_ASTC10X10_UNorm:
UnityRenderingExtTextureFormat = 138;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatRGBA_ASTC12X12_SRGB:
UnityRenderingExtTextureFormat = 139;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatRGBA_ASTC12X12_UNorm:
UnityRenderingExtTextureFormat = 140;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatYUV2:
UnityRenderingExtTextureFormat = 141;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatRGBA_ASTC4X4_UFloat:
UnityRenderingExtTextureFormat = 145;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatRGBA_ASTC5X5_UFloat:
UnityRenderingExtTextureFormat = 146;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatRGBA_ASTC6X6_UFloat:
UnityRenderingExtTextureFormat = 147;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatRGBA_ASTC8X8_UFloat:
UnityRenderingExtTextureFormat = 148;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatRGBA_ASTC10X10_UFloat:
UnityRenderingExtTextureFormat = 149;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatRGBA_ASTC12X12_UFloat:
UnityRenderingExtTextureFormat = 150;
pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatLast:
UnityRenderingExtTextureFormat = 150;
pub type UnityRenderingExtTextureFormat = ::std::os::raw::c_uint;
#[repr(C)]
#[derive(Copy, Clone)]
pub struct UnityRenderingExtBeforeDrawCallParams {
pub vertexShader: *mut ::std::os::raw::c_void,
pub fragmentShader: *mut ::std::os::raw::c_void,
pub geometryShader: *mut ::std::os::raw::c_void,
pub hullShader: *mut ::std::os::raw::c_void,
pub domainShader: *mut ::std::os::raw::c_void,
pub eyeIndex: ::std::os::raw::c_int,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of UnityRenderingExtBeforeDrawCallParams"]
[::std::mem::size_of::<UnityRenderingExtBeforeDrawCallParams>() - 48usize];
["Alignment of UnityRenderingExtBeforeDrawCallParams"]
[::std::mem::align_of::<UnityRenderingExtBeforeDrawCallParams>() - 8usize];
["Offset of field: UnityRenderingExtBeforeDrawCallParams::vertexShader"]
[::std::mem::offset_of!(UnityRenderingExtBeforeDrawCallParams, vertexShader) - 0usize];
["Offset of field: UnityRenderingExtBeforeDrawCallParams::fragmentShader"]
[::std::mem::offset_of!(UnityRenderingExtBeforeDrawCallParams, fragmentShader) - 8usize];
["Offset of field: UnityRenderingExtBeforeDrawCallParams::geometryShader"]
[::std::mem::offset_of!(UnityRenderingExtBeforeDrawCallParams, geometryShader) - 16usize];
["Offset of field: UnityRenderingExtBeforeDrawCallParams::hullShader"]
[::std::mem::offset_of!(UnityRenderingExtBeforeDrawCallParams, hullShader) - 24usize];
["Offset of field: UnityRenderingExtBeforeDrawCallParams::domainShader"]
[::std::mem::offset_of!(UnityRenderingExtBeforeDrawCallParams, domainShader) - 32usize];
["Offset of field: UnityRenderingExtBeforeDrawCallParams::eyeIndex"]
[::std::mem::offset_of!(UnityRenderingExtBeforeDrawCallParams, eyeIndex) - 40usize];
};
impl Default for UnityRenderingExtBeforeDrawCallParams {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct UnityRenderingExtCustomBlitParams {
pub source: UnityTextureID,
pub destination: UnityRenderBuffer,
pub command: ::std::os::raw::c_uint,
pub commandParam: ::std::os::raw::c_uint,
pub commandFlags: ::std::os::raw::c_uint,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of UnityRenderingExtCustomBlitParams"]
[::std::mem::size_of::<UnityRenderingExtCustomBlitParams>() - 32usize];
["Alignment of UnityRenderingExtCustomBlitParams"]
[::std::mem::align_of::<UnityRenderingExtCustomBlitParams>() - 8usize];
["Offset of field: UnityRenderingExtCustomBlitParams::source"]
[::std::mem::offset_of!(UnityRenderingExtCustomBlitParams, source) - 0usize];
["Offset of field: UnityRenderingExtCustomBlitParams::destination"]
[::std::mem::offset_of!(UnityRenderingExtCustomBlitParams, destination) - 8usize];
["Offset of field: UnityRenderingExtCustomBlitParams::command"]
[::std::mem::offset_of!(UnityRenderingExtCustomBlitParams, command) - 16usize];
["Offset of field: UnityRenderingExtCustomBlitParams::commandParam"]
[::std::mem::offset_of!(UnityRenderingExtCustomBlitParams, commandParam) - 20usize];
["Offset of field: UnityRenderingExtCustomBlitParams::commandFlags"]
[::std::mem::offset_of!(UnityRenderingExtCustomBlitParams, commandFlags) - 24usize];
};
impl Default for UnityRenderingExtCustomBlitParams {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct UnityRenderingExtTextureUpdateParamsV1 {
pub texData: *mut ::std::os::raw::c_void,
pub userData: ::std::os::raw::c_uint,
pub textureID: ::std::os::raw::c_uint,
pub format: UnityRenderingExtTextureFormat,
pub width: ::std::os::raw::c_uint,
pub height: ::std::os::raw::c_uint,
pub bpp: ::std::os::raw::c_uint,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of UnityRenderingExtTextureUpdateParamsV1"]
[::std::mem::size_of::<UnityRenderingExtTextureUpdateParamsV1>() - 32usize];
["Alignment of UnityRenderingExtTextureUpdateParamsV1"]
[::std::mem::align_of::<UnityRenderingExtTextureUpdateParamsV1>() - 8usize];
["Offset of field: UnityRenderingExtTextureUpdateParamsV1::texData"]
[::std::mem::offset_of!(UnityRenderingExtTextureUpdateParamsV1, texData) - 0usize];
["Offset of field: UnityRenderingExtTextureUpdateParamsV1::userData"]
[::std::mem::offset_of!(UnityRenderingExtTextureUpdateParamsV1, userData) - 8usize];
["Offset of field: UnityRenderingExtTextureUpdateParamsV1::textureID"]
[::std::mem::offset_of!(UnityRenderingExtTextureUpdateParamsV1, textureID) - 12usize];
["Offset of field: UnityRenderingExtTextureUpdateParamsV1::format"]
[::std::mem::offset_of!(UnityRenderingExtTextureUpdateParamsV1, format) - 16usize];
["Offset of field: UnityRenderingExtTextureUpdateParamsV1::width"]
[::std::mem::offset_of!(UnityRenderingExtTextureUpdateParamsV1, width) - 20usize];
["Offset of field: UnityRenderingExtTextureUpdateParamsV1::height"]
[::std::mem::offset_of!(UnityRenderingExtTextureUpdateParamsV1, height) - 24usize];
["Offset of field: UnityRenderingExtTextureUpdateParamsV1::bpp"]
[::std::mem::offset_of!(UnityRenderingExtTextureUpdateParamsV1, bpp) - 28usize];
};
impl Default for UnityRenderingExtTextureUpdateParamsV1 {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
pub type UnityRenderingExtTextureUpdateParams = UnityRenderingExtTextureUpdateParamsV1;
#[repr(C)]
#[derive(Copy, Clone)]
pub struct UnityRenderingExtTextureUpdateParamsV2 {
pub texData: *mut ::std::os::raw::c_void,
pub textureID: isize,
pub userData: ::std::os::raw::c_uint,
pub format: UnityRenderingExtTextureFormat,
pub width: ::std::os::raw::c_uint,
pub height: ::std::os::raw::c_uint,
pub bpp: ::std::os::raw::c_uint,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of UnityRenderingExtTextureUpdateParamsV2"]
[::std::mem::size_of::<UnityRenderingExtTextureUpdateParamsV2>() - 40usize];
["Alignment of UnityRenderingExtTextureUpdateParamsV2"]
[::std::mem::align_of::<UnityRenderingExtTextureUpdateParamsV2>() - 8usize];
["Offset of field: UnityRenderingExtTextureUpdateParamsV2::texData"]
[::std::mem::offset_of!(UnityRenderingExtTextureUpdateParamsV2, texData) - 0usize];
["Offset of field: UnityRenderingExtTextureUpdateParamsV2::textureID"]
[::std::mem::offset_of!(UnityRenderingExtTextureUpdateParamsV2, textureID) - 8usize];
["Offset of field: UnityRenderingExtTextureUpdateParamsV2::userData"]
[::std::mem::offset_of!(UnityRenderingExtTextureUpdateParamsV2, userData) - 16usize];
["Offset of field: UnityRenderingExtTextureUpdateParamsV2::format"]
[::std::mem::offset_of!(UnityRenderingExtTextureUpdateParamsV2, format) - 20usize];
["Offset of field: UnityRenderingExtTextureUpdateParamsV2::width"]
[::std::mem::offset_of!(UnityRenderingExtTextureUpdateParamsV2, width) - 24usize];
["Offset of field: UnityRenderingExtTextureUpdateParamsV2::height"]
[::std::mem::offset_of!(UnityRenderingExtTextureUpdateParamsV2, height) - 28usize];
["Offset of field: UnityRenderingExtTextureUpdateParamsV2::bpp"]
[::std::mem::offset_of!(UnityRenderingExtTextureUpdateParamsV2, bpp) - 32usize];
};
impl Default for UnityRenderingExtTextureUpdateParamsV2 {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
unsafe extern "system" {
pub fn UnityRenderingExtEvent(
event: UnityRenderingExtEventType,
data: *mut ::std::os::raw::c_void,
);
}
unsafe extern "system" {
pub fn UnityRenderingExtQuery(query: UnityRenderingExtQueryType) -> bool;
}
pub type UnityProfilerMarkerId = u32;
pub const UnityBuiltinProfilerCategory__kUnityProfilerCategoryRender:
UnityBuiltinProfilerCategory_ = 0;
pub const UnityBuiltinProfilerCategory__kUnityProfilerCategoryScripts:
UnityBuiltinProfilerCategory_ = 1;
pub const UnityBuiltinProfilerCategory__kUnityProfilerCategoryManagedJobs:
UnityBuiltinProfilerCategory_ = 2;
pub const UnityBuiltinProfilerCategory__kUnityProfilerCategoryBurstJobs:
UnityBuiltinProfilerCategory_ = 3;
pub const UnityBuiltinProfilerCategory__kUnityProfilerCategoryGUI: UnityBuiltinProfilerCategory_ =
4;
pub const UnityBuiltinProfilerCategory__kUnityProfilerCategoryPhysics:
UnityBuiltinProfilerCategory_ = 5;
pub const UnityBuiltinProfilerCategory__kUnityProfilerCategoryAnimation:
UnityBuiltinProfilerCategory_ = 6;
pub const UnityBuiltinProfilerCategory__kUnityProfilerCategoryAI: UnityBuiltinProfilerCategory_ = 7;
pub const UnityBuiltinProfilerCategory__kUnityProfilerCategoryAudio: UnityBuiltinProfilerCategory_ =
8;
pub const UnityBuiltinProfilerCategory__kUnityProfilerCategoryAudioJob:
UnityBuiltinProfilerCategory_ = 9;
pub const UnityBuiltinProfilerCategory__kUnityProfilerCategoryAudioUpdateJob:
UnityBuiltinProfilerCategory_ = 10;
pub const UnityBuiltinProfilerCategory__kUnityProfilerCategoryVideo: UnityBuiltinProfilerCategory_ =
11;
pub const UnityBuiltinProfilerCategory__kUnityProfilerCategoryParticles:
UnityBuiltinProfilerCategory_ = 12;
pub const UnityBuiltinProfilerCategory__kUnityProfilerCategoryGi: UnityBuiltinProfilerCategory_ =
13;
pub const UnityBuiltinProfilerCategory__kUnityProfilerCategoryNetwork:
UnityBuiltinProfilerCategory_ = 14;
pub const UnityBuiltinProfilerCategory__kUnityProfilerCategoryLoading:
UnityBuiltinProfilerCategory_ = 15;
pub const UnityBuiltinProfilerCategory__kUnityProfilerCategoryOther: UnityBuiltinProfilerCategory_ =
16;
pub const UnityBuiltinProfilerCategory__kUnityProfilerCategoryGC: UnityBuiltinProfilerCategory_ =
17;
pub const UnityBuiltinProfilerCategory__kUnityProfilerCategoryVSync: UnityBuiltinProfilerCategory_ =
18;
pub const UnityBuiltinProfilerCategory__kUnityProfilerCategoryOverhead:
UnityBuiltinProfilerCategory_ = 19;
pub const UnityBuiltinProfilerCategory__kUnityProfilerCategoryPlayerLoop:
UnityBuiltinProfilerCategory_ = 20;
pub const UnityBuiltinProfilerCategory__kUnityProfilerCategoryDirector:
UnityBuiltinProfilerCategory_ = 21;
pub const UnityBuiltinProfilerCategory__kUnityProfilerCategoryVR: UnityBuiltinProfilerCategory_ =
22;
pub const UnityBuiltinProfilerCategory__kUnityProfilerCategoryAllocation:
UnityBuiltinProfilerCategory_ = 23;
pub const UnityBuiltinProfilerCategory__kUnityProfilerCategoryMemory:
UnityBuiltinProfilerCategory_ = 23;
pub const UnityBuiltinProfilerCategory__kUnityProfilerCategoryInternal:
UnityBuiltinProfilerCategory_ = 24;
pub const UnityBuiltinProfilerCategory__kUnityProfilerCategoryFileIO:
UnityBuiltinProfilerCategory_ = 25;
pub const UnityBuiltinProfilerCategory__kUnityProfilerCategoryUISystemLayout:
UnityBuiltinProfilerCategory_ = 26;
pub const UnityBuiltinProfilerCategory__kUnityProfilerCategoryUISystemRender:
UnityBuiltinProfilerCategory_ = 27;
pub const UnityBuiltinProfilerCategory__kUnityProfilerCategoryVFX: UnityBuiltinProfilerCategory_ =
28;
pub const UnityBuiltinProfilerCategory__kUnityProfilerCategoryBuildInterface:
UnityBuiltinProfilerCategory_ = 29;
pub const UnityBuiltinProfilerCategory__kUnityProfilerCategoryInput: UnityBuiltinProfilerCategory_ =
30;
pub const UnityBuiltinProfilerCategory__kUnityProfilerCategoryVirtualTexturing:
UnityBuiltinProfilerCategory_ = 31;
pub const UnityBuiltinProfilerCategory__kUnityProfilerCategoryGPU: UnityBuiltinProfilerCategory_ =
32;
pub const UnityBuiltinProfilerCategory__kUnityProfilerCategoryPhysics2D:
UnityBuiltinProfilerCategory_ = 33;
pub const UnityBuiltinProfilerCategory__kUnityProfilerCategoryNetworkOperations:
UnityBuiltinProfilerCategory_ = 34;
pub const UnityBuiltinProfilerCategory__kUnityProfilerCategoryUIDetails:
UnityBuiltinProfilerCategory_ = 35;
pub const UnityBuiltinProfilerCategory__kUnityProfilerCategoryDebug: UnityBuiltinProfilerCategory_ =
36;
pub const UnityBuiltinProfilerCategory__kUnityProfilerCategoryJobs: UnityBuiltinProfilerCategory_ =
37;
pub const UnityBuiltinProfilerCategory__kUnityProfilerCategoryText: UnityBuiltinProfilerCategory_ =
38;
pub type UnityBuiltinProfilerCategory_ = ::std::os::raw::c_uint;
pub type UnityProfilerCategoryId = u16;
#[repr(C)]
#[derive(Copy, Clone)]
pub struct UnityProfilerCategoryDesc {
pub id: UnityProfilerCategoryId,
pub reserved0: u16,
pub rgbaColor: u32,
pub name: *const ::std::os::raw::c_char,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of UnityProfilerCategoryDesc"]
[::std::mem::size_of::<UnityProfilerCategoryDesc>() - 16usize];
["Alignment of UnityProfilerCategoryDesc"]
[::std::mem::align_of::<UnityProfilerCategoryDesc>() - 8usize];
["Offset of field: UnityProfilerCategoryDesc::id"]
[::std::mem::offset_of!(UnityProfilerCategoryDesc, id) - 0usize];
["Offset of field: UnityProfilerCategoryDesc::reserved0"]
[::std::mem::offset_of!(UnityProfilerCategoryDesc, reserved0) - 2usize];
["Offset of field: UnityProfilerCategoryDesc::rgbaColor"]
[::std::mem::offset_of!(UnityProfilerCategoryDesc, rgbaColor) - 4usize];
["Offset of field: UnityProfilerCategoryDesc::name"]
[::std::mem::offset_of!(UnityProfilerCategoryDesc, name) - 8usize];
};
impl Default for UnityProfilerCategoryDesc {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
pub const UnityProfilerMarkerFlag__kUnityProfilerMarkerFlagDefault: UnityProfilerMarkerFlag_ = 0;
pub const UnityProfilerMarkerFlag__kUnityProfilerMarkerFlagScriptUser: UnityProfilerMarkerFlag_ = 2;
pub const UnityProfilerMarkerFlag__kUnityProfilerMarkerFlagScriptInvoke: UnityProfilerMarkerFlag_ =
32;
pub const UnityProfilerMarkerFlag__kUnityProfilerMarkerFlagScriptEnterLeave:
UnityProfilerMarkerFlag_ = 64;
pub const UnityProfilerMarkerFlag__kUnityProfilerMarkerFlagAvailabilityEditor:
UnityProfilerMarkerFlag_ = 4;
pub const UnityProfilerMarkerFlag__kUnityProfilerMarkerFlagAvailabilityNonDev:
UnityProfilerMarkerFlag_ = 8;
pub const UnityProfilerMarkerFlag__kUnityProfilerMarkerFlagWarning: UnityProfilerMarkerFlag_ = 16;
pub const UnityProfilerMarkerFlag__kUnityProfilerMarkerFlagCounter: UnityProfilerMarkerFlag_ = 128;
pub const UnityProfilerMarkerFlag__kUnityProfilerMarkerFlagSampleGPU: UnityProfilerMarkerFlag_ =
256;
pub const UnityProfilerMarkerFlag__kUnityProfilerMarkerFlagVerbosityDebug:
UnityProfilerMarkerFlag_ = 1024;
pub const UnityProfilerMarkerFlag__kUnityProfilerMarkerFlagVerbosityInternal:
UnityProfilerMarkerFlag_ = 2048;
pub const UnityProfilerMarkerFlag__kUnityProfilerMarkerFlagVerbosityExternal:
UnityProfilerMarkerFlag_ = 3072;
pub const UnityProfilerMarkerFlag__kUnityProfilerMarkerFlagVerbosityAdvanced:
UnityProfilerMarkerFlag_ = 4096;
pub const UnityProfilerMarkerFlag__kUnityProfilerMarkerFlagPrecreated: UnityProfilerMarkerFlag_ =
32768;
pub type UnityProfilerMarkerFlag_ = ::std::os::raw::c_uint;
pub type UnityProfilerMarkerFlags = u16;
pub const UnityProfilerMarkerEventType__kUnityProfilerMarkerEventTypeBegin:
UnityProfilerMarkerEventType_ = 0;
pub const UnityProfilerMarkerEventType__kUnityProfilerMarkerEventTypeEnd:
UnityProfilerMarkerEventType_ = 1;
pub const UnityProfilerMarkerEventType__kUnityProfilerMarkerEventTypeSingle:
UnityProfilerMarkerEventType_ = 2;
pub type UnityProfilerMarkerEventType_ = ::std::os::raw::c_uint;
pub type UnityProfilerMarkerEventType = u16;
#[repr(C)]
#[derive(Copy, Clone)]
pub struct UnityProfilerMarkerDesc {
pub callback: *const ::std::os::raw::c_void,
pub id: UnityProfilerMarkerId,
pub flags: UnityProfilerMarkerFlags,
pub categoryId: UnityProfilerCategoryId,
pub name: *const ::std::os::raw::c_char,
pub metaDataDesc: *const ::std::os::raw::c_void,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of UnityProfilerMarkerDesc"][::std::mem::size_of::<UnityProfilerMarkerDesc>() - 32usize];
["Alignment of UnityProfilerMarkerDesc"]
[::std::mem::align_of::<UnityProfilerMarkerDesc>() - 8usize];
["Offset of field: UnityProfilerMarkerDesc::callback"]
[::std::mem::offset_of!(UnityProfilerMarkerDesc, callback) - 0usize];
["Offset of field: UnityProfilerMarkerDesc::id"]
[::std::mem::offset_of!(UnityProfilerMarkerDesc, id) - 8usize];
["Offset of field: UnityProfilerMarkerDesc::flags"]
[::std::mem::offset_of!(UnityProfilerMarkerDesc, flags) - 12usize];
["Offset of field: UnityProfilerMarkerDesc::categoryId"]
[::std::mem::offset_of!(UnityProfilerMarkerDesc, categoryId) - 14usize];
["Offset of field: UnityProfilerMarkerDesc::name"]
[::std::mem::offset_of!(UnityProfilerMarkerDesc, name) - 16usize];
["Offset of field: UnityProfilerMarkerDesc::metaDataDesc"]
[::std::mem::offset_of!(UnityProfilerMarkerDesc, metaDataDesc) - 24usize];
};
impl Default for UnityProfilerMarkerDesc {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
pub const UnityProfilerMarkerDataType__kUnityProfilerMarkerDataTypeNone:
UnityProfilerMarkerDataType_ = 0;
pub const UnityProfilerMarkerDataType__kUnityProfilerMarkerDataTypeInstanceId:
UnityProfilerMarkerDataType_ = 1;
pub const UnityProfilerMarkerDataType__kUnityProfilerMarkerDataTypeInt32:
UnityProfilerMarkerDataType_ = 2;
pub const UnityProfilerMarkerDataType__kUnityProfilerMarkerDataTypeUInt32:
UnityProfilerMarkerDataType_ = 3;
pub const UnityProfilerMarkerDataType__kUnityProfilerMarkerDataTypeInt64:
UnityProfilerMarkerDataType_ = 4;
pub const UnityProfilerMarkerDataType__kUnityProfilerMarkerDataTypeUInt64:
UnityProfilerMarkerDataType_ = 5;
pub const UnityProfilerMarkerDataType__kUnityProfilerMarkerDataTypeFloat:
UnityProfilerMarkerDataType_ = 6;
pub const UnityProfilerMarkerDataType__kUnityProfilerMarkerDataTypeDouble:
UnityProfilerMarkerDataType_ = 7;
pub const UnityProfilerMarkerDataType__kUnityProfilerMarkerDataTypeString:
UnityProfilerMarkerDataType_ = 8;
pub const UnityProfilerMarkerDataType__kUnityProfilerMarkerDataTypeString16:
UnityProfilerMarkerDataType_ = 9;
pub const UnityProfilerMarkerDataType__kUnityProfilerMarkerDataTypeBlob8:
UnityProfilerMarkerDataType_ = 11;
pub const UnityProfilerMarkerDataType__kUnityProfilerMarkerDataTypeGfxResourceId:
UnityProfilerMarkerDataType_ = 12;
pub const UnityProfilerMarkerDataType__kUnityProfilerMarkerDataTypeCount:
UnityProfilerMarkerDataType_ = 13;
pub type UnityProfilerMarkerDataType_ = ::std::os::raw::c_uint;
pub type UnityProfilerMarkerDataType = u8;
pub const UnityProfilerMarkerDataUnit__kUnityProfilerMarkerDataUnitUndefined:
UnityProfilerMarkerDataUnit_ = 0;
pub const UnityProfilerMarkerDataUnit__kUnityProfilerMarkerDataUnitTimeNanoseconds:
UnityProfilerMarkerDataUnit_ = 1;
pub const UnityProfilerMarkerDataUnit__kUnityProfilerMarkerDataUnitBytes:
UnityProfilerMarkerDataUnit_ = 2;
pub const UnityProfilerMarkerDataUnit__kUnityProfilerMarkerDataUnitCount:
UnityProfilerMarkerDataUnit_ = 3;
pub const UnityProfilerMarkerDataUnit__kUnityProfilerMarkerDataUnitPercent:
UnityProfilerMarkerDataUnit_ = 4;
pub const UnityProfilerMarkerDataUnit__kUnityProfilerMarkerDataUnitFrequencyHz:
UnityProfilerMarkerDataUnit_ = 5;
pub type UnityProfilerMarkerDataUnit_ = ::std::os::raw::c_uint;
pub type UnityProfilerMarkerDataUnit = u8;
#[repr(C)]
#[derive(Copy, Clone)]
pub struct UnityProfilerMarkerData {
pub type_: UnityProfilerMarkerDataType,
pub reserved0: u8,
pub reserved1: u16,
pub size: u32,
pub ptr: *const ::std::os::raw::c_void,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of UnityProfilerMarkerData"][::std::mem::size_of::<UnityProfilerMarkerData>() - 16usize];
["Alignment of UnityProfilerMarkerData"]
[::std::mem::align_of::<UnityProfilerMarkerData>() - 8usize];
["Offset of field: UnityProfilerMarkerData::type_"]
[::std::mem::offset_of!(UnityProfilerMarkerData, type_) - 0usize];
["Offset of field: UnityProfilerMarkerData::reserved0"]
[::std::mem::offset_of!(UnityProfilerMarkerData, reserved0) - 1usize];
["Offset of field: UnityProfilerMarkerData::reserved1"]
[::std::mem::offset_of!(UnityProfilerMarkerData, reserved1) - 2usize];
["Offset of field: UnityProfilerMarkerData::size"]
[::std::mem::offset_of!(UnityProfilerMarkerData, size) - 4usize];
["Offset of field: UnityProfilerMarkerData::ptr"]
[::std::mem::offset_of!(UnityProfilerMarkerData, ptr) - 8usize];
};
impl Default for UnityProfilerMarkerData {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
pub const UnityProfilerFlowEventType__kUnityProfilerFlowEventTypeBegin:
UnityProfilerFlowEventType_ = 0;
pub const UnityProfilerFlowEventType__kUnityProfilerFlowEventTypeParallelNext:
UnityProfilerFlowEventType_ = 1;
pub const UnityProfilerFlowEventType__kUnityProfilerFlowEventTypeEnd: UnityProfilerFlowEventType_ =
2;
pub const UnityProfilerFlowEventType__kUnityProfilerFlowEventTypeNext: UnityProfilerFlowEventType_ =
3;
pub type UnityProfilerFlowEventType_ = ::std::os::raw::c_uint;
pub type UnityProfilerFlowEventType = u8;
pub const UnityProfilerCounterFlags__kUnityProfilerCounterFlagNone: UnityProfilerCounterFlags_ = 0;
pub const UnityProfilerCounterFlags__kUnityProfilerCounterFlushOnEndOfFrame:
UnityProfilerCounterFlags_ = 2;
pub const UnityProfilerCounterFlags__kUnityProfilerCounterFlagResetToZeroOnFlush:
UnityProfilerCounterFlags_ = 4;
pub const UnityProfilerCounterFlags__kUnityProfilerCounterFlagAtomic: UnityProfilerCounterFlags_ =
8;
pub const UnityProfilerCounterFlags__kUnityProfilerCounterFlagGetter: UnityProfilerCounterFlags_ =
16;
pub type UnityProfilerCounterFlags_ = ::std::os::raw::c_uint;
pub type UnityProfilerCounterFlags = u16;
pub type UnityProfilerThreadId = u64;
pub type UnityProfilerCounterStatePtrCallback =
::std::option::Option<unsafe extern "system" fn(userData: *mut ::std::os::raw::c_void)>;
#[repr(C)]
#[derive(Default, Copy, Clone)]
pub struct UnityProfilerDataUnitHelper {
pub _address: u8,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of template specialization: UnityProfilerDataUnitHelper_open0_int_close0"]
[::std::mem::size_of::<UnityProfilerDataUnitHelper>() - 1usize];
["Align of template specialization: UnityProfilerDataUnitHelper_open0_int_close0"]
[::std::mem::align_of::<UnityProfilerDataUnitHelper>() - 1usize];
};
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of template specialization: UnityProfilerDataUnitHelper_open0_unsigned_int_close0"]
[::std::mem::size_of::<UnityProfilerDataUnitHelper>() - 1usize];
["Align of template specialization: UnityProfilerDataUnitHelper_open0_unsigned_int_close0"]
[::std::mem::align_of::<UnityProfilerDataUnitHelper>() - 1usize];
};
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of template specialization: UnityProfilerDataUnitHelper_open0_long_long_close0"]
[::std::mem::size_of::<UnityProfilerDataUnitHelper>() - 1usize];
["Align of template specialization: UnityProfilerDataUnitHelper_open0_long_long_close0"]
[::std::mem::align_of::<UnityProfilerDataUnitHelper>() - 1usize];
};
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of template specialization: UnityProfilerDataUnitHelper_open0_unsigned_long_long_close0"] [:: std :: mem :: size_of :: < UnityProfilerDataUnitHelper > () - 1usize] ;
["Align of template specialization: UnityProfilerDataUnitHelper_open0_unsigned_long_long_close0"] [:: std :: mem :: align_of :: < UnityProfilerDataUnitHelper > () - 1usize] ;
};
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of template specialization: UnityProfilerDataUnitHelper_open0_float_close0"]
[::std::mem::size_of::<UnityProfilerDataUnitHelper>() - 1usize];
["Align of template specialization: UnityProfilerDataUnitHelper_open0_float_close0"]
[::std::mem::align_of::<UnityProfilerDataUnitHelper>() - 1usize];
};
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of template specialization: UnityProfilerDataUnitHelper_open0_double_close0"]
[::std::mem::size_of::<UnityProfilerDataUnitHelper>() - 1usize];
["Align of template specialization: UnityProfilerDataUnitHelper_open0_double_close0"]
[::std::mem::align_of::<UnityProfilerDataUnitHelper>() - 1usize];
};
#[repr(C)]
#[derive(Default, Copy, Clone)]
pub struct IUnityProfilerV2 {
pub EmitEvent: ::std::option::Option<
unsafe extern "system" fn(
markerDesc: *const UnityProfilerMarkerDesc,
eventType: UnityProfilerMarkerEventType,
eventDataCount: u16,
eventData: *const UnityProfilerMarkerData,
),
>,
pub IsEnabled: ::std::option::Option<unsafe extern "system" fn() -> ::std::os::raw::c_int>,
pub IsAvailable: ::std::option::Option<unsafe extern "system" fn() -> ::std::os::raw::c_int>,
pub CreateMarker: ::std::option::Option<
unsafe extern "system" fn(
desc: *mut *const UnityProfilerMarkerDesc,
name: *const ::std::os::raw::c_char,
category: UnityProfilerCategoryId,
flags: UnityProfilerMarkerFlags,
eventDataCount: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int,
>,
pub SetMarkerMetadataName: ::std::option::Option<
unsafe extern "system" fn(
desc: *const UnityProfilerMarkerDesc,
index: ::std::os::raw::c_int,
metadataName: *const ::std::os::raw::c_char,
metadataType: UnityProfilerMarkerDataType,
metadataUnit: UnityProfilerMarkerDataUnit,
) -> ::std::os::raw::c_int,
>,
pub CreateCategory: ::std::option::Option<
unsafe extern "system" fn(
category: *mut UnityProfilerCategoryId,
name: *const ::std::os::raw::c_char,
unused: u32,
) -> ::std::os::raw::c_int,
>,
pub RegisterThread: ::std::option::Option<
unsafe extern "system" fn(
threadId: *mut UnityProfilerThreadId,
groupName: *const ::std::os::raw::c_char,
name: *const ::std::os::raw::c_char,
) -> ::std::os::raw::c_int,
>,
pub UnregisterThread: ::std::option::Option<
unsafe extern "system" fn(threadId: UnityProfilerThreadId) -> ::std::os::raw::c_int,
>,
pub CreateCounterValue: ::std::option::Option<
unsafe extern "system" fn(
category: UnityProfilerCategoryId,
name: *const ::std::os::raw::c_char,
flags: UnityProfilerMarkerFlags,
valueType: UnityProfilerMarkerDataType,
valueUnit: UnityProfilerMarkerDataUnit,
valueSize: usize,
counterFlags: UnityProfilerCounterFlags,
activateFunc: UnityProfilerCounterStatePtrCallback,
deactivateFunc: UnityProfilerCounterStatePtrCallback,
userData: *mut ::std::os::raw::c_void,
) -> *mut ::std::os::raw::c_void,
>,
pub FlushCounterValue:
::std::option::Option<unsafe extern "system" fn(counter: *mut ::std::os::raw::c_void)>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of IUnityProfilerV2"][::std::mem::size_of::<IUnityProfilerV2>() - 80usize];
["Alignment of IUnityProfilerV2"][::std::mem::align_of::<IUnityProfilerV2>() - 8usize];
["Offset of field: IUnityProfilerV2::EmitEvent"]
[::std::mem::offset_of!(IUnityProfilerV2, EmitEvent) - 0usize];
["Offset of field: IUnityProfilerV2::IsEnabled"]
[::std::mem::offset_of!(IUnityProfilerV2, IsEnabled) - 8usize];
["Offset of field: IUnityProfilerV2::IsAvailable"]
[::std::mem::offset_of!(IUnityProfilerV2, IsAvailable) - 16usize];
["Offset of field: IUnityProfilerV2::CreateMarker"]
[::std::mem::offset_of!(IUnityProfilerV2, CreateMarker) - 24usize];
["Offset of field: IUnityProfilerV2::SetMarkerMetadataName"]
[::std::mem::offset_of!(IUnityProfilerV2, SetMarkerMetadataName) - 32usize];
["Offset of field: IUnityProfilerV2::CreateCategory"]
[::std::mem::offset_of!(IUnityProfilerV2, CreateCategory) - 40usize];
["Offset of field: IUnityProfilerV2::RegisterThread"]
[::std::mem::offset_of!(IUnityProfilerV2, RegisterThread) - 48usize];
["Offset of field: IUnityProfilerV2::UnregisterThread"]
[::std::mem::offset_of!(IUnityProfilerV2, UnregisterThread) - 56usize];
["Offset of field: IUnityProfilerV2::CreateCounterValue"]
[::std::mem::offset_of!(IUnityProfilerV2, CreateCounterValue) - 64usize];
["Offset of field: IUnityProfilerV2::FlushCounterValue"]
[::std::mem::offset_of!(IUnityProfilerV2, FlushCounterValue) - 72usize];
};
#[repr(C)]
#[derive(Copy, Clone)]
pub struct UnityProfilerCounterValue {
pub m_Value: *mut ::std::os::raw::c_void,
pub m_Profiler: *mut IUnityProfilerV2,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of UnityProfilerCounterValue"]
[::std::mem::size_of::<UnityProfilerCounterValue>() - 16usize];
["Alignment of UnityProfilerCounterValue"]
[::std::mem::align_of::<UnityProfilerCounterValue>() - 8usize];
["Offset of field: UnityProfilerCounterValue::m_Value"]
[::std::mem::offset_of!(UnityProfilerCounterValue, m_Value) - 0usize];
["Offset of field: UnityProfilerCounterValue::m_Profiler"]
[::std::mem::offset_of!(UnityProfilerCounterValue, m_Profiler) - 8usize];
};
impl Default for UnityProfilerCounterValue {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct UnityProfilerCounter {
pub _base: UnityProfilerCounterValue,
}
impl Default for UnityProfilerCounter {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
#[repr(C)]
#[derive(Default, Copy, Clone)]
pub struct IUnityProfiler {
pub EmitEvent: ::std::option::Option<
unsafe extern "system" fn(
markerDesc: *const UnityProfilerMarkerDesc,
eventType: UnityProfilerMarkerEventType,
eventDataCount: u16,
eventData: *const UnityProfilerMarkerData,
),
>,
pub IsEnabled: ::std::option::Option<unsafe extern "system" fn() -> ::std::os::raw::c_int>,
pub IsAvailable: ::std::option::Option<unsafe extern "system" fn() -> ::std::os::raw::c_int>,
pub CreateMarker: ::std::option::Option<
unsafe extern "system" fn(
desc: *mut *const UnityProfilerMarkerDesc,
name: *const ::std::os::raw::c_char,
category: UnityProfilerCategoryId,
flags: UnityProfilerMarkerFlags,
eventDataCount: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int,
>,
pub SetMarkerMetadataName: ::std::option::Option<
unsafe extern "system" fn(
desc: *const UnityProfilerMarkerDesc,
index: ::std::os::raw::c_int,
metadataName: *const ::std::os::raw::c_char,
metadataType: UnityProfilerMarkerDataType,
metadataUnit: UnityProfilerMarkerDataUnit,
) -> ::std::os::raw::c_int,
>,
pub RegisterThread: ::std::option::Option<
unsafe extern "system" fn(
threadId: *mut UnityProfilerThreadId,
groupName: *const ::std::os::raw::c_char,
name: *const ::std::os::raw::c_char,
) -> ::std::os::raw::c_int,
>,
pub UnregisterThread: ::std::option::Option<
unsafe extern "system" fn(threadId: UnityProfilerThreadId) -> ::std::os::raw::c_int,
>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of IUnityProfiler"][::std::mem::size_of::<IUnityProfiler>() - 56usize];
["Alignment of IUnityProfiler"][::std::mem::align_of::<IUnityProfiler>() - 8usize];
["Offset of field: IUnityProfiler::EmitEvent"]
[::std::mem::offset_of!(IUnityProfiler, EmitEvent) - 0usize];
["Offset of field: IUnityProfiler::IsEnabled"]
[::std::mem::offset_of!(IUnityProfiler, IsEnabled) - 8usize];
["Offset of field: IUnityProfiler::IsAvailable"]
[::std::mem::offset_of!(IUnityProfiler, IsAvailable) - 16usize];
["Offset of field: IUnityProfiler::CreateMarker"]
[::std::mem::offset_of!(IUnityProfiler, CreateMarker) - 24usize];
["Offset of field: IUnityProfiler::SetMarkerMetadataName"]
[::std::mem::offset_of!(IUnityProfiler, SetMarkerMetadataName) - 32usize];
["Offset of field: IUnityProfiler::RegisterThread"]
[::std::mem::offset_of!(IUnityProfiler, RegisterThread) - 40usize];
["Offset of field: IUnityProfiler::UnregisterThread"]
[::std::mem::offset_of!(IUnityProfiler, UnregisterThread) - 48usize];
};
#[repr(C)]
#[derive(Copy, Clone)]
pub struct UnityProfilerThreadDesc {
pub threadId: UnityProfilerThreadId,
pub groupName: *const ::std::os::raw::c_char,
pub name: *const ::std::os::raw::c_char,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of UnityProfilerThreadDesc"][::std::mem::size_of::<UnityProfilerThreadDesc>() - 24usize];
["Alignment of UnityProfilerThreadDesc"]
[::std::mem::align_of::<UnityProfilerThreadDesc>() - 8usize];
["Offset of field: UnityProfilerThreadDesc::threadId"]
[::std::mem::offset_of!(UnityProfilerThreadDesc, threadId) - 0usize];
["Offset of field: UnityProfilerThreadDesc::groupName"]
[::std::mem::offset_of!(UnityProfilerThreadDesc, groupName) - 8usize];
["Offset of field: UnityProfilerThreadDesc::name"]
[::std::mem::offset_of!(UnityProfilerThreadDesc, name) - 16usize];
};
impl Default for UnityProfilerThreadDesc {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
pub type IUnityProfilerCreateCategoryCallback = ::std::option::Option<
unsafe extern "system" fn(
categoryDesc: *const UnityProfilerCategoryDesc,
userData: *mut ::std::os::raw::c_void,
),
>;
pub type IUnityProfilerCreateMarkerCallback = ::std::option::Option<
unsafe extern "system" fn(
markerDesc: *const UnityProfilerMarkerDesc,
userData: *mut ::std::os::raw::c_void,
),
>;
pub type IUnityProfilerMarkerEventCallback = ::std::option::Option<
unsafe extern "system" fn(
markerDesc: *const UnityProfilerMarkerDesc,
eventType: UnityProfilerMarkerEventType,
eventDataCount: u16,
eventData: *const UnityProfilerMarkerData,
userData: *mut ::std::os::raw::c_void,
),
>;
pub type IUnityProfilerBulkCounterDataEventCallback = ::std::option::Option<
unsafe extern "system" fn(
counterGroup: ::std::os::raw::c_int,
size: usize,
data: *mut ::std::os::raw::c_void,
userData: *mut ::std::os::raw::c_void,
),
>;
pub type IUnityProfilerFrameCallback =
::std::option::Option<unsafe extern "system" fn(userData: *mut ::std::os::raw::c_void)>;
pub type IUnityProfilerThreadCallback = ::std::option::Option<
unsafe extern "system" fn(
threadDesc: *const UnityProfilerThreadDesc,
userData: *mut ::std::os::raw::c_void,
),
>;
pub type IUnityProfilerFlowEventCallback = ::std::option::Option<
unsafe extern "system" fn(
flowEventType: UnityProfilerFlowEventType,
flowId: u32,
userData: *mut ::std::os::raw::c_void,
),
>;
#[repr(C)]
#[derive(Default, Copy, Clone)]
pub struct IUnityProfilerCallbacksV2 {
pub RegisterCreateCategoryCallback: ::std::option::Option<
unsafe extern "system" fn(
callback: IUnityProfilerCreateCategoryCallback,
userData: *mut ::std::os::raw::c_void,
) -> ::std::os::raw::c_int,
>,
pub UnregisterCreateCategoryCallback: ::std::option::Option<
unsafe extern "system" fn(
callback: IUnityProfilerCreateCategoryCallback,
userData: *mut ::std::os::raw::c_void,
) -> ::std::os::raw::c_int,
>,
pub RegisterCreateMarkerCallback: ::std::option::Option<
unsafe extern "system" fn(
callback: IUnityProfilerCreateMarkerCallback,
userData: *mut ::std::os::raw::c_void,
) -> ::std::os::raw::c_int,
>,
pub UnregisterCreateMarkerCallback: ::std::option::Option<
unsafe extern "system" fn(
callback: IUnityProfilerCreateMarkerCallback,
userData: *mut ::std::os::raw::c_void,
) -> ::std::os::raw::c_int,
>,
pub RegisterMarkerEventCallback: ::std::option::Option<
unsafe extern "system" fn(
markerDesc: *const UnityProfilerMarkerDesc,
callback: IUnityProfilerMarkerEventCallback,
userData: *mut ::std::os::raw::c_void,
) -> ::std::os::raw::c_int,
>,
pub UnregisterMarkerEventCallback: ::std::option::Option<
unsafe extern "system" fn(
markerDesc: *const UnityProfilerMarkerDesc,
callback: IUnityProfilerMarkerEventCallback,
userData: *mut ::std::os::raw::c_void,
) -> ::std::os::raw::c_int,
>,
pub RegisterFrameCallback: ::std::option::Option<
unsafe extern "system" fn(
callback: IUnityProfilerFrameCallback,
userData: *mut ::std::os::raw::c_void,
) -> ::std::os::raw::c_int,
>,
pub UnregisterFrameCallback: ::std::option::Option<
unsafe extern "system" fn(
callback: IUnityProfilerFrameCallback,
userData: *mut ::std::os::raw::c_void,
) -> ::std::os::raw::c_int,
>,
pub RegisterCreateThreadCallback: ::std::option::Option<
unsafe extern "system" fn(
callback: IUnityProfilerThreadCallback,
userData: *mut ::std::os::raw::c_void,
) -> ::std::os::raw::c_int,
>,
pub UnregisterCreateThreadCallback: ::std::option::Option<
unsafe extern "system" fn(
callback: IUnityProfilerThreadCallback,
userData: *mut ::std::os::raw::c_void,
) -> ::std::os::raw::c_int,
>,
pub RegisterFlowEventCallback: ::std::option::Option<
unsafe extern "system" fn(
callback: IUnityProfilerFlowEventCallback,
userData: *mut ::std::os::raw::c_void,
) -> ::std::os::raw::c_int,
>,
pub UnregisterFlowEventCallback: ::std::option::Option<
unsafe extern "system" fn(
callback: IUnityProfilerFlowEventCallback,
userData: *mut ::std::os::raw::c_void,
) -> ::std::os::raw::c_int,
>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of IUnityProfilerCallbacksV2"]
[::std::mem::size_of::<IUnityProfilerCallbacksV2>() - 96usize];
["Alignment of IUnityProfilerCallbacksV2"]
[::std::mem::align_of::<IUnityProfilerCallbacksV2>() - 8usize];
["Offset of field: IUnityProfilerCallbacksV2::RegisterCreateCategoryCallback"][::std::mem::offset_of!(
IUnityProfilerCallbacksV2,
RegisterCreateCategoryCallback
) - 0usize];
["Offset of field: IUnityProfilerCallbacksV2::UnregisterCreateCategoryCallback"][::std::mem::offset_of!(
IUnityProfilerCallbacksV2,
UnregisterCreateCategoryCallback
) - 8usize];
["Offset of field: IUnityProfilerCallbacksV2::RegisterCreateMarkerCallback"]
[::std::mem::offset_of!(IUnityProfilerCallbacksV2, RegisterCreateMarkerCallback) - 16usize];
["Offset of field: IUnityProfilerCallbacksV2::UnregisterCreateMarkerCallback"][::std::mem::offset_of!(
IUnityProfilerCallbacksV2,
UnregisterCreateMarkerCallback
) - 24usize];
["Offset of field: IUnityProfilerCallbacksV2::RegisterMarkerEventCallback"]
[::std::mem::offset_of!(IUnityProfilerCallbacksV2, RegisterMarkerEventCallback) - 32usize];
["Offset of field: IUnityProfilerCallbacksV2::UnregisterMarkerEventCallback"][::std::mem::offset_of!(
IUnityProfilerCallbacksV2,
UnregisterMarkerEventCallback
) - 40usize];
["Offset of field: IUnityProfilerCallbacksV2::RegisterFrameCallback"]
[::std::mem::offset_of!(IUnityProfilerCallbacksV2, RegisterFrameCallback) - 48usize];
["Offset of field: IUnityProfilerCallbacksV2::UnregisterFrameCallback"]
[::std::mem::offset_of!(IUnityProfilerCallbacksV2, UnregisterFrameCallback) - 56usize];
["Offset of field: IUnityProfilerCallbacksV2::RegisterCreateThreadCallback"]
[::std::mem::offset_of!(IUnityProfilerCallbacksV2, RegisterCreateThreadCallback) - 64usize];
["Offset of field: IUnityProfilerCallbacksV2::UnregisterCreateThreadCallback"][::std::mem::offset_of!(
IUnityProfilerCallbacksV2,
UnregisterCreateThreadCallback
) - 72usize];
["Offset of field: IUnityProfilerCallbacksV2::RegisterFlowEventCallback"]
[::std::mem::offset_of!(IUnityProfilerCallbacksV2, RegisterFlowEventCallback) - 80usize];
["Offset of field: IUnityProfilerCallbacksV2::UnregisterFlowEventCallback"]
[::std::mem::offset_of!(IUnityProfilerCallbacksV2, UnregisterFlowEventCallback) - 88usize];
};
#[repr(C)]
#[derive(Default, Copy, Clone)]
pub struct IUnityProfilerCallbacks {
pub RegisterCreateCategoryCallback: ::std::option::Option<
unsafe extern "system" fn(
callback: IUnityProfilerCreateCategoryCallback,
userData: *mut ::std::os::raw::c_void,
) -> ::std::os::raw::c_int,
>,
pub UnregisterCreateCategoryCallback: ::std::option::Option<
unsafe extern "system" fn(
callback: IUnityProfilerCreateCategoryCallback,
userData: *mut ::std::os::raw::c_void,
) -> ::std::os::raw::c_int,
>,
pub RegisterCreateMarkerCallback: ::std::option::Option<
unsafe extern "system" fn(
callback: IUnityProfilerCreateMarkerCallback,
userData: *mut ::std::os::raw::c_void,
) -> ::std::os::raw::c_int,
>,
pub UnregisterCreateMarkerCallback: ::std::option::Option<
unsafe extern "system" fn(
callback: IUnityProfilerCreateMarkerCallback,
userData: *mut ::std::os::raw::c_void,
) -> ::std::os::raw::c_int,
>,
pub RegisterMarkerEventCallback: ::std::option::Option<
unsafe extern "system" fn(
markerDesc: *const UnityProfilerMarkerDesc,
callback: IUnityProfilerMarkerEventCallback,
userData: *mut ::std::os::raw::c_void,
) -> ::std::os::raw::c_int,
>,
pub UnregisterMarkerEventCallback: ::std::option::Option<
unsafe extern "system" fn(
markerDesc: *const UnityProfilerMarkerDesc,
callback: IUnityProfilerMarkerEventCallback,
userData: *mut ::std::os::raw::c_void,
) -> ::std::os::raw::c_int,
>,
pub RegisterFrameCallback: ::std::option::Option<
unsafe extern "system" fn(
callback: IUnityProfilerFrameCallback,
userData: *mut ::std::os::raw::c_void,
) -> ::std::os::raw::c_int,
>,
pub UnregisterFrameCallback: ::std::option::Option<
unsafe extern "system" fn(
callback: IUnityProfilerFrameCallback,
userData: *mut ::std::os::raw::c_void,
) -> ::std::os::raw::c_int,
>,
pub RegisterCreateThreadCallback: ::std::option::Option<
unsafe extern "system" fn(
callback: IUnityProfilerThreadCallback,
userData: *mut ::std::os::raw::c_void,
) -> ::std::os::raw::c_int,
>,
pub UnregisterCreateThreadCallback: ::std::option::Option<
unsafe extern "system" fn(
callback: IUnityProfilerThreadCallback,
userData: *mut ::std::os::raw::c_void,
) -> ::std::os::raw::c_int,
>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of IUnityProfilerCallbacks"][::std::mem::size_of::<IUnityProfilerCallbacks>() - 80usize];
["Alignment of IUnityProfilerCallbacks"]
[::std::mem::align_of::<IUnityProfilerCallbacks>() - 8usize];
["Offset of field: IUnityProfilerCallbacks::RegisterCreateCategoryCallback"]
[::std::mem::offset_of!(IUnityProfilerCallbacks, RegisterCreateCategoryCallback) - 0usize];
["Offset of field: IUnityProfilerCallbacks::UnregisterCreateCategoryCallback"][::std::mem::offset_of!(
IUnityProfilerCallbacks,
UnregisterCreateCategoryCallback
) - 8usize];
["Offset of field: IUnityProfilerCallbacks::RegisterCreateMarkerCallback"]
[::std::mem::offset_of!(IUnityProfilerCallbacks, RegisterCreateMarkerCallback) - 16usize];
["Offset of field: IUnityProfilerCallbacks::UnregisterCreateMarkerCallback"]
[::std::mem::offset_of!(IUnityProfilerCallbacks, UnregisterCreateMarkerCallback) - 24usize];
["Offset of field: IUnityProfilerCallbacks::RegisterMarkerEventCallback"]
[::std::mem::offset_of!(IUnityProfilerCallbacks, RegisterMarkerEventCallback) - 32usize];
["Offset of field: IUnityProfilerCallbacks::UnregisterMarkerEventCallback"]
[::std::mem::offset_of!(IUnityProfilerCallbacks, UnregisterMarkerEventCallback) - 40usize];
["Offset of field: IUnityProfilerCallbacks::RegisterFrameCallback"]
[::std::mem::offset_of!(IUnityProfilerCallbacks, RegisterFrameCallback) - 48usize];
["Offset of field: IUnityProfilerCallbacks::UnregisterFrameCallback"]
[::std::mem::offset_of!(IUnityProfilerCallbacks, UnregisterFrameCallback) - 56usize];
["Offset of field: IUnityProfilerCallbacks::RegisterCreateThreadCallback"]
[::std::mem::offset_of!(IUnityProfilerCallbacks, RegisterCreateThreadCallback) - 64usize];
["Offset of field: IUnityProfilerCallbacks::UnregisterCreateThreadCallback"]
[::std::mem::offset_of!(IUnityProfilerCallbacks, UnregisterCreateThreadCallback) - 72usize];
};
#[repr(C)]
#[derive(Copy, Clone)]
pub struct PluginAllocator {
_unused: [u8; 0],
}
pub type UnityAllocator = PluginAllocator;
#[repr(C)]
#[derive(Default, Copy, Clone)]
pub struct IUnityMemoryManager {
pub CreateAllocator: ::std::option::Option<
unsafe extern "system" fn(
areaName: *const ::std::os::raw::c_char,
objectName: *const ::std::os::raw::c_char,
) -> *mut UnityAllocator,
>,
pub DestroyAllocator:
::std::option::Option<unsafe extern "system" fn(allocator: *mut UnityAllocator)>,
pub Allocate: ::std::option::Option<
unsafe extern "system" fn(
allocator: *mut UnityAllocator,
size: usize,
align: usize,
file: *const ::std::os::raw::c_char,
line: i32,
) -> *mut ::std::os::raw::c_void,
>,
pub Deallocate: ::std::option::Option<
unsafe extern "system" fn(
allocator: *mut UnityAllocator,
ptr: *mut ::std::os::raw::c_void,
file: *const ::std::os::raw::c_char,
line: i32,
),
>,
pub Reallocate: ::std::option::Option<
unsafe extern "system" fn(
allocator: *mut UnityAllocator,
ptr: *mut ::std::os::raw::c_void,
size: usize,
align: usize,
file: *const ::std::os::raw::c_char,
line: i32,
) -> *mut ::std::os::raw::c_void,
>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of IUnityMemoryManager"][::std::mem::size_of::<IUnityMemoryManager>() - 40usize];
["Alignment of IUnityMemoryManager"][::std::mem::align_of::<IUnityMemoryManager>() - 8usize];
["Offset of field: IUnityMemoryManager::CreateAllocator"]
[::std::mem::offset_of!(IUnityMemoryManager, CreateAllocator) - 0usize];
["Offset of field: IUnityMemoryManager::DestroyAllocator"]
[::std::mem::offset_of!(IUnityMemoryManager, DestroyAllocator) - 8usize];
["Offset of field: IUnityMemoryManager::Allocate"]
[::std::mem::offset_of!(IUnityMemoryManager, Allocate) - 16usize];
["Offset of field: IUnityMemoryManager::Deallocate"]
[::std::mem::offset_of!(IUnityMemoryManager, Deallocate) - 24usize];
["Offset of field: IUnityMemoryManager::Reallocate"]
[::std::mem::offset_of!(IUnityMemoryManager, Reallocate) - 32usize];
};
#[repr(C)]
#[derive(Default, Copy, Clone)]
pub struct UnityEventQueue_EventId {
pub mGUIDHigh: ::std::os::raw::c_ulonglong,
pub mGUIDLow: ::std::os::raw::c_ulonglong,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of UnityEventQueue_EventId"][::std::mem::size_of::<UnityEventQueue_EventId>() - 16usize];
["Alignment of UnityEventQueue_EventId"]
[::std::mem::align_of::<UnityEventQueue_EventId>() - 8usize];
["Offset of field: UnityEventQueue_EventId::mGUIDHigh"]
[::std::mem::offset_of!(UnityEventQueue_EventId, mGUIDHigh) - 0usize];
["Offset of field: UnityEventQueue_EventId::mGUIDLow"]
[::std::mem::offset_of!(UnityEventQueue_EventId, mGUIDLow) - 8usize];
};
#[repr(C)]
#[derive(Copy, Clone)]
pub struct UnityEventQueue_EventQueue {
_unused: [u8; 0],
}
#[repr(C)]
pub struct UnityEventQueue_EventHandler__bindgen_vtable(::std::os::raw::c_void);
#[repr(C)]
pub struct UnityEventQueue_EventHandler {
pub vtable_: *const UnityEventQueue_EventHandler__bindgen_vtable,
pub m_Next: *mut UnityEventQueue_EventHandler,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of UnityEventQueue_EventHandler"]
[::std::mem::size_of::<UnityEventQueue_EventHandler>() - 16usize];
["Alignment of UnityEventQueue_EventHandler"]
[::std::mem::align_of::<UnityEventQueue_EventHandler>() - 8usize];
["Offset of field: UnityEventQueue_EventHandler::m_Next"]
[::std::mem::offset_of!(UnityEventQueue_EventHandler, m_Next) - 8usize];
};
impl Default for UnityEventQueue_EventHandler {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
#[repr(C)]
pub struct UnityEventQueue_ClassBasedEventHandler<OBJECTTYPE> {
pub _phantom_0: ::std::marker::PhantomData<::std::cell::UnsafeCell<OBJECTTYPE>>,
pub _base: UnityEventQueue_EventHandler,
pub m_Handler: *mut OBJECTTYPE,
}
impl<OBJECTTYPE> Default for UnityEventQueue_ClassBasedEventHandler<OBJECTTYPE> {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
#[repr(C)]
pub struct UnityEventQueue_StaticFunctionEventHandler<EVENTTYPE> {
pub _phantom_0: ::std::marker::PhantomData<::std::cell::UnsafeCell<EVENTTYPE>>,
pub _base: UnityEventQueue_EventHandler,
pub m_Handler: UnityEventQueue_StaticFunctionEventHandler_HandlerFunction<EVENTTYPE>,
}
pub type UnityEventQueue_StaticFunctionEventHandler_HandlerFunction<EVENTTYPE> =
::std::option::Option<unsafe extern "system" fn(payload: *const EVENTTYPE)>;
impl<EVENTTYPE> Default for UnityEventQueue_StaticFunctionEventHandler<EVENTTYPE> {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct UnityEventQueue_AddEventHandler {
pub m_Handler: *mut UnityEventQueue_EventHandler,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of UnityEventQueue_AddEventHandler"]
[::std::mem::size_of::<UnityEventQueue_AddEventHandler>() - 8usize];
["Alignment of UnityEventQueue_AddEventHandler"]
[::std::mem::align_of::<UnityEventQueue_AddEventHandler>() - 8usize];
["Offset of field: UnityEventQueue_AddEventHandler::m_Handler"]
[::std::mem::offset_of!(UnityEventQueue_AddEventHandler, m_Handler) - 0usize];
};
impl Default for UnityEventQueue_AddEventHandler {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct UnityEventQueue_RemoveEventHandler {
pub m_Handler: *mut UnityEventQueue_EventHandler,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of UnityEventQueue_RemoveEventHandler"]
[::std::mem::size_of::<UnityEventQueue_RemoveEventHandler>() - 8usize];
["Alignment of UnityEventQueue_RemoveEventHandler"]
[::std::mem::align_of::<UnityEventQueue_RemoveEventHandler>() - 8usize];
["Offset of field: UnityEventQueue_RemoveEventHandler::m_Handler"]
[::std::mem::offset_of!(UnityEventQueue_RemoveEventHandler, m_Handler) - 0usize];
};
impl Default for UnityEventQueue_RemoveEventHandler {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
#[repr(C)]
pub struct UnityEventQueue_IUnityEventQueue__bindgen_vtable(::std::os::raw::c_void);
#[repr(C)]
pub struct UnityEventQueue_IUnityEventQueue {
pub vtable_: *const UnityEventQueue_IUnityEventQueue__bindgen_vtable,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of UnityEventQueue_IUnityEventQueue"]
[::std::mem::size_of::<UnityEventQueue_IUnityEventQueue>() - 8usize];
["Alignment of UnityEventQueue_IUnityEventQueue"]
[::std::mem::align_of::<UnityEventQueue_IUnityEventQueue>() - 8usize];
};
impl Default for UnityEventQueue_IUnityEventQueue {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
unsafe extern "system" {
#[link_name = "\u{1}__ZL21IUnityEventQueue_GUID"]
pub static IUnityEventQueue_GUID: UnityInterfaceGUID;
}
#[doc = " UnityLogType used for Errors."]
pub const UnityLogType_kUnityLogTypeError: UnityLogType = 0;
#[doc = " UnityLogType used for Warnings."]
pub const UnityLogType_kUnityLogTypeWarning: UnityLogType = 2;
#[doc = " UnityLogType used for regular log messages."]
pub const UnityLogType_kUnityLogTypeLog: UnityLogType = 3;
#[doc = " UnityLogType used for Exceptions."]
pub const UnityLogType_kUnityLogTypeException: UnityLogType = 4;
#[doc = " The type of the log message"]
pub type UnityLogType = ::std::os::raw::c_uint;
#[repr(C)]
#[derive(Default, Copy, Clone)]
pub struct IUnityLog {
pub Log: ::std::option::Option<
unsafe extern "system" fn(
type_: UnityLogType,
message: *const ::std::os::raw::c_char,
fileName: *const ::std::os::raw::c_char,
fileLine: ::std::os::raw::c_int,
),
>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of IUnityLog"][::std::mem::size_of::<IUnityLog>() - 8usize];
["Alignment of IUnityLog"][::std::mem::align_of::<IUnityLog>() - 8usize];
["Offset of field: IUnityLog::Log"][::std::mem::offset_of!(IUnityLog, Log) - 0usize];
};
pub const UnityShaderCompilerExtCompilerPlatform_kUnityShaderCompilerExtCompPlatformUnused0:
UnityShaderCompilerExtCompilerPlatform = 0;
pub const UnityShaderCompilerExtCompilerPlatform_kUnityShaderCompilerExtCompPlatformUnused1:
UnityShaderCompilerExtCompilerPlatform = 1;
pub const UnityShaderCompilerExtCompilerPlatform_kUnityShaderCompilerExtCompPlatformUnused2:
UnityShaderCompilerExtCompilerPlatform = 2;
pub const UnityShaderCompilerExtCompilerPlatform_kUnityShaderCompilerExtCompPlatformUnused3:
UnityShaderCompilerExtCompilerPlatform = 3;
pub const UnityShaderCompilerExtCompilerPlatform_kUnityShaderCompilerExtCompPlatformD3D11:
UnityShaderCompilerExtCompilerPlatform = 4;
pub const UnityShaderCompilerExtCompilerPlatform_kUnityShaderCompilerExtCompPlatformUnused5:
UnityShaderCompilerExtCompilerPlatform = 5;
pub const UnityShaderCompilerExtCompilerPlatform_kUnityShaderCompilerExtCompPlatformUnused6:
UnityShaderCompilerExtCompilerPlatform = 6;
pub const UnityShaderCompilerExtCompilerPlatform_kUnityShaderCompilerExtCompPlatformUnused7:
UnityShaderCompilerExtCompilerPlatform = 7;
pub const UnityShaderCompilerExtCompilerPlatform_kUnityShaderCompilerExtCompPlatformUnused8:
UnityShaderCompilerExtCompilerPlatform = 8;
pub const UnityShaderCompilerExtCompilerPlatform_kUnityShaderCompilerExtCompPlatformGLES3Plus:
UnityShaderCompilerExtCompilerPlatform = 9;
pub const UnityShaderCompilerExtCompilerPlatform_kUnityShaderCompilerExtCompPlatformUnused10:
UnityShaderCompilerExtCompilerPlatform = 10;
pub const UnityShaderCompilerExtCompilerPlatform_kUnityShaderCompilerExtCompPlatformPS4:
UnityShaderCompilerExtCompilerPlatform = 11;
pub const UnityShaderCompilerExtCompilerPlatform_kUnityShaderCompilerExtCompPlatformXboxOne:
UnityShaderCompilerExtCompilerPlatform = 12;
pub const UnityShaderCompilerExtCompilerPlatform_kUnityShaderCompilerExtCompPlatformUnused13:
UnityShaderCompilerExtCompilerPlatform = 13;
pub const UnityShaderCompilerExtCompilerPlatform_kUnityShaderCompilerExtCompPlatformMetal:
UnityShaderCompilerExtCompilerPlatform = 14;
pub const UnityShaderCompilerExtCompilerPlatform_kUnityShaderCompilerExtCompPlatformOpenGLCore:
UnityShaderCompilerExtCompilerPlatform = 15;
pub const UnityShaderCompilerExtCompilerPlatform_kUnityShaderCompilerExtCompPlatformUnused16:
UnityShaderCompilerExtCompilerPlatform = 16;
pub const UnityShaderCompilerExtCompilerPlatform_kUnityShaderCompilerExtCompPlatformUnused17:
UnityShaderCompilerExtCompilerPlatform = 17;
pub const UnityShaderCompilerExtCompilerPlatform_kUnityShaderCompilerExtCompPlatformVulkan:
UnityShaderCompilerExtCompilerPlatform = 18;
pub const UnityShaderCompilerExtCompilerPlatform_kUnityShaderCompilerExtCompPlatformSwitch:
UnityShaderCompilerExtCompilerPlatform = 19;
pub const UnityShaderCompilerExtCompilerPlatform_kUnityShaderCompilerExtCompPlatformXboxOneD3D12:
UnityShaderCompilerExtCompilerPlatform = 20;
pub const UnityShaderCompilerExtCompilerPlatform_kUnityShaderCompilerExtCompPlatformGameCoreXboxOne : UnityShaderCompilerExtCompilerPlatform = 21 ;
pub const UnityShaderCompilerExtCompilerPlatform_kUnityShaderCompilerExtCompPlatformGameCoreXboxSeries : UnityShaderCompilerExtCompilerPlatform = 22 ;
pub const UnityShaderCompilerExtCompilerPlatform_kUnityShaderCompilerExtCompPlatformPS5:
UnityShaderCompilerExtCompilerPlatform = 23;
pub const UnityShaderCompilerExtCompilerPlatform_kUnityShaderCompilerExtCompPlatformPS5NGGC:
UnityShaderCompilerExtCompilerPlatform = 24;
pub const UnityShaderCompilerExtCompilerPlatform_kUnityShaderCompilerExtCompPlatformUnused25:
UnityShaderCompilerExtCompilerPlatform = 25;
pub const UnityShaderCompilerExtCompilerPlatform_kUnityShaderCompilerExtCompPlatformWebGPU:
UnityShaderCompilerExtCompilerPlatform = 26;
pub const UnityShaderCompilerExtCompilerPlatform_kUnityShaderCompilerExtCompPlatformSwitch2:
UnityShaderCompilerExtCompilerPlatform = 27;
pub const UnityShaderCompilerExtCompilerPlatform_kUnityShaderCompilerExtCompPlatformCount:
UnityShaderCompilerExtCompilerPlatform = 28;
pub type UnityShaderCompilerExtCompilerPlatform = ::std::os::raw::c_uint;
pub const UnityShaderCompilerExtShaderType_kUnityShaderCompilerExtShaderNone:
UnityShaderCompilerExtShaderType = 0;
pub const UnityShaderCompilerExtShaderType_kUnityShaderCompilerExtShaderVertex:
UnityShaderCompilerExtShaderType = 1;
pub const UnityShaderCompilerExtShaderType_kUnityShaderCompilerExtShaderFragment:
UnityShaderCompilerExtShaderType = 2;
pub const UnityShaderCompilerExtShaderType_kUnityShaderCompilerExtShaderGeometry:
UnityShaderCompilerExtShaderType = 3;
pub const UnityShaderCompilerExtShaderType_kUnityShaderCompilerExtShaderHull:
UnityShaderCompilerExtShaderType = 4;
pub const UnityShaderCompilerExtShaderType_kUnityShaderCompilerExtShaderDomain:
UnityShaderCompilerExtShaderType = 5;
pub const UnityShaderCompilerExtShaderType_kUnityShaderCompilerExtShaderRayTracing:
UnityShaderCompilerExtShaderType = 6;
pub const UnityShaderCompilerExtShaderType_kUnityShaderCompilerExtShaderTypeCount:
UnityShaderCompilerExtShaderType = 7;
pub type UnityShaderCompilerExtShaderType = ::std::os::raw::c_uint;
pub const UnityShaderCompilerExtGPUProgramType_kUnityShaderCompilerExtGPUProgramTargetUnknown:
UnityShaderCompilerExtGPUProgramType = 0;
pub const UnityShaderCompilerExtGPUProgramType_kUnityShaderCompilerExtGPUProgramTargetGLLegacy:
UnityShaderCompilerExtGPUProgramType = 1;
pub const UnityShaderCompilerExtGPUProgramType_kUnityShaderCompilerExtGPUProgramTargetGLES31AEP:
UnityShaderCompilerExtGPUProgramType = 2;
pub const UnityShaderCompilerExtGPUProgramType_kUnityShaderCompilerExtGPUProgramTargetGLES31:
UnityShaderCompilerExtGPUProgramType = 3;
pub const UnityShaderCompilerExtGPUProgramType_kUnityShaderCompilerExtGPUProgramTargetGLES3:
UnityShaderCompilerExtGPUProgramType = 4;
pub const UnityShaderCompilerExtGPUProgramType_kUnityShaderCompilerExtGPUProgramTargetGLES:
UnityShaderCompilerExtGPUProgramType = 5;
pub const UnityShaderCompilerExtGPUProgramType_kUnityShaderCompilerExtGPUProgramTargetGLCore32:
UnityShaderCompilerExtGPUProgramType = 6;
pub const UnityShaderCompilerExtGPUProgramType_kUnityShaderCompilerExtGPUProgramTargetGLCore41:
UnityShaderCompilerExtGPUProgramType = 7;
pub const UnityShaderCompilerExtGPUProgramType_kUnityShaderCompilerExtGPUProgramTargetGLCore43:
UnityShaderCompilerExtGPUProgramType = 8;
pub const UnityShaderCompilerExtGPUProgramType_kUnityShaderCompilerExtGPUProgramTargetDX9VertexSM20 : UnityShaderCompilerExtGPUProgramType = 9 ;
pub const UnityShaderCompilerExtGPUProgramType_kUnityShaderCompilerExtGPUProgramTargetDX9VertexSM30 : UnityShaderCompilerExtGPUProgramType = 10 ;
pub const UnityShaderCompilerExtGPUProgramType_kUnityShaderCompilerExtGPUProgramTargetDX9PixelSM20 : UnityShaderCompilerExtGPUProgramType = 11 ;
pub const UnityShaderCompilerExtGPUProgramType_kUnityShaderCompilerExtGPUProgramTargetDX9PixelSM30 : UnityShaderCompilerExtGPUProgramType = 12 ;
pub const UnityShaderCompilerExtGPUProgramType_kUnityShaderCompilerExtGPUProgramTargetDX10Level9Vertex : UnityShaderCompilerExtGPUProgramType = 13 ;
pub const UnityShaderCompilerExtGPUProgramType_kUnityShaderCompilerExtGPUProgramTargetDX10Level9Pixel : UnityShaderCompilerExtGPUProgramType = 14 ;
pub const UnityShaderCompilerExtGPUProgramType_kUnityShaderCompilerExtGPUProgramTargetDX11VertexSM40 : UnityShaderCompilerExtGPUProgramType = 15 ;
pub const UnityShaderCompilerExtGPUProgramType_kUnityShaderCompilerExtGPUProgramTargetDX11VertexSM50 : UnityShaderCompilerExtGPUProgramType = 16 ;
pub const UnityShaderCompilerExtGPUProgramType_kUnityShaderCompilerExtGPUProgramTargetDX11PixelSM40 : UnityShaderCompilerExtGPUProgramType = 17 ;
pub const UnityShaderCompilerExtGPUProgramType_kUnityShaderCompilerExtGPUProgramTargetDX11PixelSM50 : UnityShaderCompilerExtGPUProgramType = 18 ;
pub const UnityShaderCompilerExtGPUProgramType_kUnityShaderCompilerExtGPUProgramTargetDX11GeometrySM40 : UnityShaderCompilerExtGPUProgramType = 19 ;
pub const UnityShaderCompilerExtGPUProgramType_kUnityShaderCompilerExtGPUProgramTargetDX11GeometrySM50 : UnityShaderCompilerExtGPUProgramType = 20 ;
pub const UnityShaderCompilerExtGPUProgramType_kUnityShaderCompilerExtGPUProgramTargetDX11HullSM50 : UnityShaderCompilerExtGPUProgramType = 21 ;
pub const UnityShaderCompilerExtGPUProgramType_kUnityShaderCompilerExtGPUProgramTargetDX11DomainSM50 : UnityShaderCompilerExtGPUProgramType = 22 ;
pub const UnityShaderCompilerExtGPUProgramType_kUnityShaderCompilerExtGPUProgramTargetMetalVS:
UnityShaderCompilerExtGPUProgramType = 23;
pub const UnityShaderCompilerExtGPUProgramType_kUnityShaderCompilerExtGPUProgramTargetMetalFS:
UnityShaderCompilerExtGPUProgramType = 24;
pub const UnityShaderCompilerExtGPUProgramType_kUnityShaderCompilerExtGPUProgramTargetSPIRV:
UnityShaderCompilerExtGPUProgramType = 25;
pub const UnityShaderCompilerExtGPUProgramType_kUnityShaderCompilerExtGPUProgramTargetUnused1:
UnityShaderCompilerExtGPUProgramType = 26;
pub const UnityShaderCompilerExtGPUProgramType_kUnityShaderCompilerExtGPUProgramTargetUnused2:
UnityShaderCompilerExtGPUProgramType = 27;
pub const UnityShaderCompilerExtGPUProgramType_kUnityShaderCompilerExtGPUProgramTargetUnused3:
UnityShaderCompilerExtGPUProgramType = 28;
pub const UnityShaderCompilerExtGPUProgramType_kUnityShaderCompilerExtGPUProgramTargetUnused4:
UnityShaderCompilerExtGPUProgramType = 29;
pub const UnityShaderCompilerExtGPUProgramType_kUnityShaderCompilerExtGPUProgramTargetUnused5:
UnityShaderCompilerExtGPUProgramType = 30;
pub const UnityShaderCompilerExtGPUProgramType_kUnityShaderCompilerExtGPUProgramTargetRayTracing:
UnityShaderCompilerExtGPUProgramType = 31;
pub const UnityShaderCompilerExtGPUProgramType_kUnityShaderCompilerExtGPUProgramTargetPS5NGGC:
UnityShaderCompilerExtGPUProgramType = 32;
pub const UnityShaderCompilerExtGPUProgramType_kUnityShaderCompilerExtGPUProgramTargetWebGPU:
UnityShaderCompilerExtGPUProgramType = 33;
pub const UnityShaderCompilerExtGPUProgramType_kUnityShaderCompilerExtGPUProgramTargetCount:
UnityShaderCompilerExtGPUProgramType = 34;
pub type UnityShaderCompilerExtGPUProgramType = ::std::os::raw::c_uint;
pub const UnityShaderCompilerExtGPUProgram_kUnityShaderCompilerExtGPUProgramVS:
UnityShaderCompilerExtGPUProgram = 2;
pub const UnityShaderCompilerExtGPUProgram_kUnityShaderCompilerExtGPUProgramPS:
UnityShaderCompilerExtGPUProgram = 4;
pub const UnityShaderCompilerExtGPUProgram_kUnityShaderCompilerExtGPUProgramGS:
UnityShaderCompilerExtGPUProgram = 8;
pub const UnityShaderCompilerExtGPUProgram_kUnityShaderCompilerExtGPUProgramHS:
UnityShaderCompilerExtGPUProgram = 16;
pub const UnityShaderCompilerExtGPUProgram_kUnityShaderCompilerExtGPUProgramDS:
UnityShaderCompilerExtGPUProgram = 32;
pub const UnityShaderCompilerExtGPUProgram_kUnityShaderCompilerExtGPUProgramCustom:
UnityShaderCompilerExtGPUProgram = 128;
pub type UnityShaderCompilerExtGPUProgram = ::std::os::raw::c_uint;
pub const UnityShaderCompilerExtEventType_kUnityShaderCompilerExtEventCreateCustomSourceVariant:
UnityShaderCompilerExtEventType = 0;
pub const UnityShaderCompilerExtEventType_kUnityShaderCompilerExtEventCreateCustomSourceVariantCleanup : UnityShaderCompilerExtEventType = 1 ;
pub const UnityShaderCompilerExtEventType_kUnityShaderCompilerExtEventCreateCustomBinaryVariant:
UnityShaderCompilerExtEventType = 2;
pub const UnityShaderCompilerExtEventType_kUnityShaderCompilerExtEventCreateCustomBinaryVariantCleanup : UnityShaderCompilerExtEventType = 3 ;
pub const UnityShaderCompilerExtEventType_kUnityShaderCompilerExtEventPluginConfigure:
UnityShaderCompilerExtEventType = 4;
pub const UnityShaderCompilerExtEventType_kUnityShaderCompilerExtEventCount:
UnityShaderCompilerExtEventType = 5;
pub const UnityShaderCompilerExtEventType_kUnityShaderCompilerExtUserEventsStart:
UnityShaderCompilerExtEventType = 5;
pub type UnityShaderCompilerExtEventType = ::std::os::raw::c_uint;
#[repr(C)]
#[derive(Copy, Clone)]
pub struct UnityShaderCompilerExtCustomSourceVariantParams {
pub outputSnippet: *mut ::std::os::raw::c_char,
pub outputKeywords: *mut ::std::os::raw::c_char,
pub inputSnippet: *const ::std::os::raw::c_char,
pub vr: bool,
pub platform: UnityShaderCompilerExtCompilerPlatform,
pub shaderType: UnityShaderCompilerExtShaderType,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of UnityShaderCompilerExtCustomSourceVariantParams"]
[::std::mem::size_of::<UnityShaderCompilerExtCustomSourceVariantParams>() - 40usize];
["Alignment of UnityShaderCompilerExtCustomSourceVariantParams"]
[::std::mem::align_of::<UnityShaderCompilerExtCustomSourceVariantParams>() - 8usize];
["Offset of field: UnityShaderCompilerExtCustomSourceVariantParams::outputSnippet"][::std::mem::offset_of!(
UnityShaderCompilerExtCustomSourceVariantParams,
outputSnippet
) - 0usize];
["Offset of field: UnityShaderCompilerExtCustomSourceVariantParams::outputKeywords"][::std::mem::offset_of!(
UnityShaderCompilerExtCustomSourceVariantParams,
outputKeywords
)
- 8usize];
["Offset of field: UnityShaderCompilerExtCustomSourceVariantParams::inputSnippet"][::std::mem::offset_of!(
UnityShaderCompilerExtCustomSourceVariantParams,
inputSnippet
) - 16usize];
["Offset of field: UnityShaderCompilerExtCustomSourceVariantParams::vr"]
[::std::mem::offset_of!(UnityShaderCompilerExtCustomSourceVariantParams, vr) - 24usize];
["Offset of field: UnityShaderCompilerExtCustomSourceVariantParams::platform"][::std::mem::offset_of!(
UnityShaderCompilerExtCustomSourceVariantParams,
platform
) - 28usize];
["Offset of field: UnityShaderCompilerExtCustomSourceVariantParams::shaderType"][::std::mem::offset_of!(
UnityShaderCompilerExtCustomSourceVariantParams,
shaderType
) - 32usize];
};
impl Default for UnityShaderCompilerExtCustomSourceVariantParams {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct UnityShaderCompilerExtCustomBinaryVariantParams {
pub outputBinaryShader: *mut *mut ::std::os::raw::c_void,
pub inputByteCode: *const ::std::os::raw::c_uchar,
pub inputByteCodeSize: ::std::os::raw::c_uint,
pub programTypeMask: ::std::os::raw::c_uint,
pub platform: UnityShaderCompilerExtCompilerPlatform,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of UnityShaderCompilerExtCustomBinaryVariantParams"]
[::std::mem::size_of::<UnityShaderCompilerExtCustomBinaryVariantParams>() - 32usize];
["Alignment of UnityShaderCompilerExtCustomBinaryVariantParams"]
[::std::mem::align_of::<UnityShaderCompilerExtCustomBinaryVariantParams>() - 8usize];
["Offset of field: UnityShaderCompilerExtCustomBinaryVariantParams::outputBinaryShader"][::std::mem::offset_of!(
UnityShaderCompilerExtCustomBinaryVariantParams,
outputBinaryShader
)
- 0usize];
["Offset of field: UnityShaderCompilerExtCustomBinaryVariantParams::inputByteCode"][::std::mem::offset_of!(
UnityShaderCompilerExtCustomBinaryVariantParams,
inputByteCode
) - 8usize];
["Offset of field: UnityShaderCompilerExtCustomBinaryVariantParams::inputByteCodeSize"][::std::mem::offset_of!(
UnityShaderCompilerExtCustomBinaryVariantParams,
inputByteCodeSize
)
- 16usize];
["Offset of field: UnityShaderCompilerExtCustomBinaryVariantParams::programTypeMask"][::std::mem::offset_of!(
UnityShaderCompilerExtCustomBinaryVariantParams,
programTypeMask
)
- 20usize];
["Offset of field: UnityShaderCompilerExtCustomBinaryVariantParams::platform"][::std::mem::offset_of!(
UnityShaderCompilerExtCustomBinaryVariantParams,
platform
) - 24usize];
};
impl Default for UnityShaderCompilerExtCustomBinaryVariantParams {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
#[repr(C)]
pub struct IUnityShaderCompilerExtPluginConfigure__bindgen_vtable(::std::os::raw::c_void);
#[repr(C)]
pub struct IUnityShaderCompilerExtPluginConfigure {
pub vtable_: *const IUnityShaderCompilerExtPluginConfigure__bindgen_vtable,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of IUnityShaderCompilerExtPluginConfigure"]
[::std::mem::size_of::<IUnityShaderCompilerExtPluginConfigure>() - 8usize];
["Alignment of IUnityShaderCompilerExtPluginConfigure"]
[::std::mem::align_of::<IUnityShaderCompilerExtPluginConfigure>() - 8usize];
};
impl Default for IUnityShaderCompilerExtPluginConfigure {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
unsafe {
::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
s.assume_init()
}
}
}
unsafe extern "system" {
pub fn UnityShaderCompilerExtEvent(
event: UnityShaderCompilerExtEventType,
data: *mut ::std::os::raw::c_void,
);
}