1pub const EVENTQUEUE_SUPPORTS_EVENT_CLEANUP: u32 = 1;
4#[repr(C)]
5#[derive(Default, Copy, Clone)]
6pub struct UnityInterfaceGUID {
7 pub m_GUIDHigh: ::std::os::raw::c_ulonglong,
8 pub m_GUIDLow: ::std::os::raw::c_ulonglong,
9}
10#[allow(clippy::unnecessary_operation, clippy::identity_op)]
11const _: () = {
12 ["Size of UnityInterfaceGUID"][::std::mem::size_of::<UnityInterfaceGUID>() - 16usize];
13 ["Alignment of UnityInterfaceGUID"][::std::mem::align_of::<UnityInterfaceGUID>() - 8usize];
14 ["Offset of field: UnityInterfaceGUID::m_GUIDHigh"]
15 [::std::mem::offset_of!(UnityInterfaceGUID, m_GUIDHigh) - 0usize];
16 ["Offset of field: UnityInterfaceGUID::m_GUIDLow"]
17 [::std::mem::offset_of!(UnityInterfaceGUID, m_GUIDLow) - 8usize];
18};
19#[repr(C)]
20#[derive(Default, Copy, Clone)]
21pub struct IUnityInterface {
22 pub _address: u8,
23}
24#[allow(clippy::unnecessary_operation, clippy::identity_op)]
25const _: () = {
26 ["Size of IUnityInterface"][::std::mem::size_of::<IUnityInterface>() - 1usize];
27 ["Alignment of IUnityInterface"][::std::mem::align_of::<IUnityInterface>() - 1usize];
28};
29#[repr(C)]
30#[derive(Default, Copy, Clone)]
31pub struct IUnityInterfaces {
32 pub GetInterface: ::std::option::Option<
33 unsafe extern "system" fn(guid: UnityInterfaceGUID) -> *mut IUnityInterface,
34 >,
35 pub RegisterInterface: ::std::option::Option<
36 unsafe extern "system" fn(guid: UnityInterfaceGUID, ptr: *mut IUnityInterface),
37 >,
38 pub GetInterfaceSplit: ::std::option::Option<
39 unsafe extern "system" fn(
40 guidHigh: ::std::os::raw::c_ulonglong,
41 guidLow: ::std::os::raw::c_ulonglong,
42 ) -> *mut IUnityInterface,
43 >,
44 pub RegisterInterfaceSplit: ::std::option::Option<
45 unsafe extern "system" fn(
46 guidHigh: ::std::os::raw::c_ulonglong,
47 guidLow: ::std::os::raw::c_ulonglong,
48 ptr: *mut IUnityInterface,
49 ),
50 >,
51}
52#[allow(clippy::unnecessary_operation, clippy::identity_op)]
53const _: () = {
54 ["Size of IUnityInterfaces"][::std::mem::size_of::<IUnityInterfaces>() - 32usize];
55 ["Alignment of IUnityInterfaces"][::std::mem::align_of::<IUnityInterfaces>() - 8usize];
56 ["Offset of field: IUnityInterfaces::GetInterface"]
57 [::std::mem::offset_of!(IUnityInterfaces, GetInterface) - 0usize];
58 ["Offset of field: IUnityInterfaces::RegisterInterface"]
59 [::std::mem::offset_of!(IUnityInterfaces, RegisterInterface) - 8usize];
60 ["Offset of field: IUnityInterfaces::GetInterfaceSplit"]
61 [::std::mem::offset_of!(IUnityInterfaces, GetInterfaceSplit) - 16usize];
62 ["Offset of field: IUnityInterfaces::RegisterInterfaceSplit"]
63 [::std::mem::offset_of!(IUnityInterfaces, RegisterInterfaceSplit) - 24usize];
64};
65unsafe extern "system" {
66 pub fn UnityPluginLoad(unityInterfaces: *mut IUnityInterfaces);
67}
68unsafe extern "system" {
69 pub fn UnityPluginUnload();
70}
71#[repr(C)]
72#[derive(Copy, Clone)]
73pub struct RenderSurfaceBase {
74 _unused: [u8; 0],
75}
76pub type UnityRenderBuffer = *mut RenderSurfaceBase;
77pub type UnityTextureID = ::std::os::raw::c_uint;
78pub const UnityGfxRenderer_kUnityGfxRendererD3D11: UnityGfxRenderer = 2;
79pub const UnityGfxRenderer_kUnityGfxRendererNull: UnityGfxRenderer = 4;
80pub const UnityGfxRenderer_kUnityGfxRendererOpenGLES30: UnityGfxRenderer = 11;
81pub const UnityGfxRenderer_kUnityGfxRendererPS4: UnityGfxRenderer = 13;
82pub const UnityGfxRenderer_kUnityGfxRendererXboxOne: UnityGfxRenderer = 14;
83pub const UnityGfxRenderer_kUnityGfxRendererMetal: UnityGfxRenderer = 16;
84pub const UnityGfxRenderer_kUnityGfxRendererOpenGLCore: UnityGfxRenderer = 17;
85pub const UnityGfxRenderer_kUnityGfxRendererD3D12: UnityGfxRenderer = 18;
86pub const UnityGfxRenderer_kUnityGfxRendererVulkan: UnityGfxRenderer = 21;
87pub const UnityGfxRenderer_kUnityGfxRendererNvn: UnityGfxRenderer = 22;
88pub const UnityGfxRenderer_kUnityGfxRendererXboxOneD3D12: UnityGfxRenderer = 23;
89pub const UnityGfxRenderer_kUnityGfxRendererGameCoreXboxOne: UnityGfxRenderer = 24;
90pub const UnityGfxRenderer_kUnityGfxRendererGameCoreXboxSeries: UnityGfxRenderer = 25;
91pub const UnityGfxRenderer_kUnityGfxRendererPS5: UnityGfxRenderer = 26;
92pub const UnityGfxRenderer_kUnityGfxRendererPS5NGGC: UnityGfxRenderer = 27;
93pub const UnityGfxRenderer_kUnityGfxRendererNvn2: UnityGfxRenderer = 29;
94pub type UnityGfxRenderer = ::std::os::raw::c_uint;
95pub const UnityGfxDeviceEventType_kUnityGfxDeviceEventInitialize: UnityGfxDeviceEventType = 0;
96pub const UnityGfxDeviceEventType_kUnityGfxDeviceEventShutdown: UnityGfxDeviceEventType = 1;
97pub const UnityGfxDeviceEventType_kUnityGfxDeviceEventBeforeReset: UnityGfxDeviceEventType = 2;
98pub const UnityGfxDeviceEventType_kUnityGfxDeviceEventAfterReset: UnityGfxDeviceEventType = 3;
99pub type UnityGfxDeviceEventType = ::std::os::raw::c_uint;
100pub type IUnityGraphicsDeviceEventCallback =
101 ::std::option::Option<unsafe extern "system" fn(eventType: UnityGfxDeviceEventType)>;
102#[repr(C)]
103#[derive(Default, Copy, Clone)]
104pub struct IUnityGraphics {
105 pub GetRenderer: ::std::option::Option<unsafe extern "system" fn() -> UnityGfxRenderer>,
106 pub RegisterDeviceEventCallback:
107 ::std::option::Option<unsafe extern "system" fn(callback: IUnityGraphicsDeviceEventCallback)>,
108 pub UnregisterDeviceEventCallback:
109 ::std::option::Option<unsafe extern "system" fn(callback: IUnityGraphicsDeviceEventCallback)>,
110 pub ReserveEventIDRange: ::std::option::Option<
111 unsafe extern "system" fn(count: ::std::os::raw::c_int) -> ::std::os::raw::c_int,
112 >,
113}
114#[allow(clippy::unnecessary_operation, clippy::identity_op)]
115const _: () = {
116 ["Size of IUnityGraphics"][::std::mem::size_of::<IUnityGraphics>() - 32usize];
117 ["Alignment of IUnityGraphics"][::std::mem::align_of::<IUnityGraphics>() - 8usize];
118 ["Offset of field: IUnityGraphics::GetRenderer"]
119 [::std::mem::offset_of!(IUnityGraphics, GetRenderer) - 0usize];
120 ["Offset of field: IUnityGraphics::RegisterDeviceEventCallback"]
121 [::std::mem::offset_of!(IUnityGraphics, RegisterDeviceEventCallback) - 8usize];
122 ["Offset of field: IUnityGraphics::UnregisterDeviceEventCallback"]
123 [::std::mem::offset_of!(IUnityGraphics, UnregisterDeviceEventCallback) - 16usize];
124 ["Offset of field: IUnityGraphics::ReserveEventIDRange"]
125 [::std::mem::offset_of!(IUnityGraphics, ReserveEventIDRange) - 24usize];
126};
127pub type UnityRenderingEvent =
128 ::std::option::Option<unsafe extern "system" fn(eventId: ::std::os::raw::c_int)>;
129pub type UnityRenderingEventAndData = ::std::option::Option<
130 unsafe extern "system" fn(eventId: ::std::os::raw::c_int, data: *mut ::std::os::raw::c_void),
131>;
132pub const UnityRenderingExtEventType_kUnityRenderingExtEventSetStereoTarget:
133 UnityRenderingExtEventType = 0;
134pub const UnityRenderingExtEventType_kUnityRenderingExtEventSetStereoEye:
135 UnityRenderingExtEventType = 1;
136pub const UnityRenderingExtEventType_kUnityRenderingExtEventStereoRenderingDone:
137 UnityRenderingExtEventType = 2;
138pub const UnityRenderingExtEventType_kUnityRenderingExtEventBeforeDrawCall:
139 UnityRenderingExtEventType = 3;
140pub const UnityRenderingExtEventType_kUnityRenderingExtEventAfterDrawCall:
141 UnityRenderingExtEventType = 4;
142pub const UnityRenderingExtEventType_kUnityRenderingExtEventCustomGrab: UnityRenderingExtEventType =
143 5;
144pub const UnityRenderingExtEventType_kUnityRenderingExtEventCustomBlit: UnityRenderingExtEventType =
145 6;
146pub const UnityRenderingExtEventType_kUnityRenderingExtEventUpdateTextureBegin:
147 UnityRenderingExtEventType = 7;
148pub const UnityRenderingExtEventType_kUnityRenderingExtEventUpdateTextureEnd:
149 UnityRenderingExtEventType = 8;
150pub const UnityRenderingExtEventType_kUnityRenderingExtEventUpdateTextureBeginV1:
151 UnityRenderingExtEventType = 7;
152pub const UnityRenderingExtEventType_kUnityRenderingExtEventUpdateTextureEndV1:
153 UnityRenderingExtEventType = 8;
154pub const UnityRenderingExtEventType_kUnityRenderingExtEventUpdateTextureBeginV2:
155 UnityRenderingExtEventType = 9;
156pub const UnityRenderingExtEventType_kUnityRenderingExtEventUpdateTextureEndV2:
157 UnityRenderingExtEventType = 10;
158pub const UnityRenderingExtEventType_kUnityRenderingExtEventCount: UnityRenderingExtEventType = 11;
159pub const UnityRenderingExtEventType_kUnityRenderingExtUserEventsStart: UnityRenderingExtEventType =
160 11;
161pub type UnityRenderingExtEventType = ::std::os::raw::c_uint;
162pub const UnityRenderingExtCustomBlitCommands_kUnityRenderingExtCustomBlitVRFlush:
163 UnityRenderingExtCustomBlitCommands = 0;
164pub const UnityRenderingExtCustomBlitCommands_kUnityRenderingExtCustomBlitCount:
165 UnityRenderingExtCustomBlitCommands = 1;
166pub const UnityRenderingExtCustomBlitCommands_kUnityRenderingExtUserCustomBlitStart:
167 UnityRenderingExtCustomBlitCommands = 1;
168pub type UnityRenderingExtCustomBlitCommands = ::std::os::raw::c_uint;
169pub const UnityRenderingExtQueryType_kUnityRenderingExtQueryOverrideViewport:
170 UnityRenderingExtQueryType = 1;
171pub const UnityRenderingExtQueryType_kUnityRenderingExtQueryOverrideScissor:
172 UnityRenderingExtQueryType = 2;
173pub const UnityRenderingExtQueryType_kUnityRenderingExtQueryOverrideVROcclussionMesh:
174 UnityRenderingExtQueryType = 4;
175pub const UnityRenderingExtQueryType_kUnityRenderingExtQueryOverrideVRSinglePass:
176 UnityRenderingExtQueryType = 8;
177pub const UnityRenderingExtQueryType_kUnityRenderingExtQueryKeepOriginalDoubleWideWidth_DEPRECATED : UnityRenderingExtQueryType = 16 ;
178pub const UnityRenderingExtQueryType_kUnityRenderingExtQueryRequestVRFlushCallback:
179 UnityRenderingExtQueryType = 32;
180pub const UnityRenderingExtQueryType_kUnityRenderingExtQueryOverridePresentFrame:
181 UnityRenderingExtQueryType = 64;
182pub type UnityRenderingExtQueryType = ::std::os::raw::c_uint;
183pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatNone:
184 UnityRenderingExtTextureFormat = 0;
185pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatFirst:
186 UnityRenderingExtTextureFormat = 0;
187pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatR8_SRGB:
188 UnityRenderingExtTextureFormat = 1;
189pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatR8G8_SRGB:
190 UnityRenderingExtTextureFormat = 2;
191pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatR8G8B8_SRGB:
192 UnityRenderingExtTextureFormat = 3;
193pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatR8G8B8A8_SRGB:
194 UnityRenderingExtTextureFormat = 4;
195pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatR8_UNorm:
196 UnityRenderingExtTextureFormat = 5;
197pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatR8G8_UNorm:
198 UnityRenderingExtTextureFormat = 6;
199pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatR8G8B8_UNorm:
200 UnityRenderingExtTextureFormat = 7;
201pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatR8G8B8A8_UNorm:
202 UnityRenderingExtTextureFormat = 8;
203pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatR8_SNorm:
204 UnityRenderingExtTextureFormat = 9;
205pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatR8G8_SNorm:
206 UnityRenderingExtTextureFormat = 10;
207pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatR8G8B8_SNorm:
208 UnityRenderingExtTextureFormat = 11;
209pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatR8G8B8A8_SNorm:
210 UnityRenderingExtTextureFormat = 12;
211pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatR8_UInt:
212 UnityRenderingExtTextureFormat = 13;
213pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatR8G8_UInt:
214 UnityRenderingExtTextureFormat = 14;
215pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatR8G8B8_UInt:
216 UnityRenderingExtTextureFormat = 15;
217pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatR8G8B8A8_UInt:
218 UnityRenderingExtTextureFormat = 16;
219pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatR8_SInt:
220 UnityRenderingExtTextureFormat = 17;
221pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatR8G8_SInt:
222 UnityRenderingExtTextureFormat = 18;
223pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatR8G8B8_SInt:
224 UnityRenderingExtTextureFormat = 19;
225pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatR8G8B8A8_SInt:
226 UnityRenderingExtTextureFormat = 20;
227pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatR16_UNorm:
228 UnityRenderingExtTextureFormat = 21;
229pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatR16G16_UNorm:
230 UnityRenderingExtTextureFormat = 22;
231pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatR16G16B16_UNorm:
232 UnityRenderingExtTextureFormat = 23;
233pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatR16G16B16A16_UNorm:
234 UnityRenderingExtTextureFormat = 24;
235pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatR16_SNorm:
236 UnityRenderingExtTextureFormat = 25;
237pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatR16G16_SNorm:
238 UnityRenderingExtTextureFormat = 26;
239pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatR16G16B16_SNorm:
240 UnityRenderingExtTextureFormat = 27;
241pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatR16G16B16A16_SNorm:
242 UnityRenderingExtTextureFormat = 28;
243pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatR16_UInt:
244 UnityRenderingExtTextureFormat = 29;
245pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatR16G16_UInt:
246 UnityRenderingExtTextureFormat = 30;
247pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatR16G16B16_UInt:
248 UnityRenderingExtTextureFormat = 31;
249pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatR16G16B16A16_UInt:
250 UnityRenderingExtTextureFormat = 32;
251pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatR16_SInt:
252 UnityRenderingExtTextureFormat = 33;
253pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatR16G16_SInt:
254 UnityRenderingExtTextureFormat = 34;
255pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatR16G16B16_SInt:
256 UnityRenderingExtTextureFormat = 35;
257pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatR16G16B16A16_SInt:
258 UnityRenderingExtTextureFormat = 36;
259pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatR32_UInt:
260 UnityRenderingExtTextureFormat = 37;
261pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatR32G32_UInt:
262 UnityRenderingExtTextureFormat = 38;
263pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatR32G32B32_UInt:
264 UnityRenderingExtTextureFormat = 39;
265pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatR32G32B32A32_UInt:
266 UnityRenderingExtTextureFormat = 40;
267pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatR32_SInt:
268 UnityRenderingExtTextureFormat = 41;
269pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatR32G32_SInt:
270 UnityRenderingExtTextureFormat = 42;
271pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatR32G32B32_SInt:
272 UnityRenderingExtTextureFormat = 43;
273pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatR32G32B32A32_SInt:
274 UnityRenderingExtTextureFormat = 44;
275pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatR16_SFloat:
276 UnityRenderingExtTextureFormat = 45;
277pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatR16G16_SFloat:
278 UnityRenderingExtTextureFormat = 46;
279pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatR16G16B16_SFloat:
280 UnityRenderingExtTextureFormat = 47;
281pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatR16G16B16A16_SFloat:
282 UnityRenderingExtTextureFormat = 48;
283pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatR32_SFloat:
284 UnityRenderingExtTextureFormat = 49;
285pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatR32G32_SFloat:
286 UnityRenderingExtTextureFormat = 50;
287pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatR32G32B32_SFloat:
288 UnityRenderingExtTextureFormat = 51;
289pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatR32G32B32A32_SFloat:
290 UnityRenderingExtTextureFormat = 52;
291pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatL8_UNorm:
292 UnityRenderingExtTextureFormat = 53;
293pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatA8_UNorm:
294 UnityRenderingExtTextureFormat = 54;
295pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatA16_UNorm:
296 UnityRenderingExtTextureFormat = 55;
297pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatB8G8R8_SRGB:
298 UnityRenderingExtTextureFormat = 56;
299pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatB8G8R8A8_SRGB:
300 UnityRenderingExtTextureFormat = 57;
301pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatB8G8R8_UNorm:
302 UnityRenderingExtTextureFormat = 58;
303pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatB8G8R8A8_UNorm:
304 UnityRenderingExtTextureFormat = 59;
305pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatB8G8R8_SNorm:
306 UnityRenderingExtTextureFormat = 60;
307pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatB8G8R8A8_SNorm:
308 UnityRenderingExtTextureFormat = 61;
309pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatB8G8R8_UInt:
310 UnityRenderingExtTextureFormat = 62;
311pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatB8G8R8A8_UInt:
312 UnityRenderingExtTextureFormat = 63;
313pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatB8G8R8_SInt:
314 UnityRenderingExtTextureFormat = 64;
315pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatB8G8R8A8_SInt:
316 UnityRenderingExtTextureFormat = 65;
317pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatR4G4B4A4_UNormPack16:
318 UnityRenderingExtTextureFormat = 66;
319pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatB4G4R4A4_UNormPack16:
320 UnityRenderingExtTextureFormat = 67;
321pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatR5G6B5_UNormPack16:
322 UnityRenderingExtTextureFormat = 68;
323pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatB5G6R5_UNormPack16:
324 UnityRenderingExtTextureFormat = 69;
325pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatR5G5B5A1_UNormPack16:
326 UnityRenderingExtTextureFormat = 70;
327pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatB5G5R5A1_UNormPack16:
328 UnityRenderingExtTextureFormat = 71;
329pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatA1R5G5B5_UNormPack16:
330 UnityRenderingExtTextureFormat = 72;
331pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatE5B9G9R9_UFloatPack32:
332 UnityRenderingExtTextureFormat = 73;
333pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatB10G11R11_UFloatPack32:
334 UnityRenderingExtTextureFormat = 74;
335pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatA2B10G10R10_UNormPack32:
336 UnityRenderingExtTextureFormat = 75;
337pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatA2B10G10R10_UIntPack32:
338 UnityRenderingExtTextureFormat = 76;
339pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatA2B10G10R10_SIntPack32:
340 UnityRenderingExtTextureFormat = 77;
341pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatA2R10G10B10_UNormPack32:
342 UnityRenderingExtTextureFormat = 78;
343pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatA2R10G10B10_UIntPack32:
344 UnityRenderingExtTextureFormat = 79;
345pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatA2R10G10B10_SIntPack32:
346 UnityRenderingExtTextureFormat = 80;
347pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatA2R10G10B10_XRSRGBPack32:
348 UnityRenderingExtTextureFormat = 81;
349pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatA2R10G10B10_XRUNormPack32:
350 UnityRenderingExtTextureFormat = 82;
351pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatR10G10B10_XRSRGBPack32:
352 UnityRenderingExtTextureFormat = 83;
353pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatR10G10B10_XRUNormPack32:
354 UnityRenderingExtTextureFormat = 84;
355pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatA10R10G10B10_XRSRGBPack32:
356 UnityRenderingExtTextureFormat = 85;
357pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatA10R10G10B10_XRUNormPack32:
358 UnityRenderingExtTextureFormat = 86;
359pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatA8R8G8B8_SRGB:
360 UnityRenderingExtTextureFormat = 87;
361pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatA8R8G8B8_UNorm:
362 UnityRenderingExtTextureFormat = 88;
363pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatA32R32G32B32_SFloat:
364 UnityRenderingExtTextureFormat = 89;
365pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatD16_UNorm:
366 UnityRenderingExtTextureFormat = 90;
367pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatD24_UNorm:
368 UnityRenderingExtTextureFormat = 91;
369pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatD24_UNorm_S8_UInt:
370 UnityRenderingExtTextureFormat = 92;
371pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatD32_SFloat:
372 UnityRenderingExtTextureFormat = 93;
373pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatD32_SFloat_S8_UInt:
374 UnityRenderingExtTextureFormat = 94;
375pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatS8_UInt:
376 UnityRenderingExtTextureFormat = 95;
377pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatRGBA_DXT1_SRGB:
378 UnityRenderingExtTextureFormat = 96;
379pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatRGBA_DXT1_UNorm:
380 UnityRenderingExtTextureFormat = 97;
381pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatRGBA_DXT3_SRGB:
382 UnityRenderingExtTextureFormat = 98;
383pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatRGBA_DXT3_UNorm:
384 UnityRenderingExtTextureFormat = 99;
385pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatRGBA_DXT5_SRGB:
386 UnityRenderingExtTextureFormat = 100;
387pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatRGBA_DXT5_UNorm:
388 UnityRenderingExtTextureFormat = 101;
389pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatR_BC4_UNorm:
390 UnityRenderingExtTextureFormat = 102;
391pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatR_BC4_SNorm:
392 UnityRenderingExtTextureFormat = 103;
393pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatRG_BC5_UNorm:
394 UnityRenderingExtTextureFormat = 104;
395pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatRG_BC5_SNorm:
396 UnityRenderingExtTextureFormat = 105;
397pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatRGB_BC6H_UFloat:
398 UnityRenderingExtTextureFormat = 106;
399pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatRGB_BC6H_SFloat:
400 UnityRenderingExtTextureFormat = 107;
401pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatRGBA_BC7_SRGB:
402 UnityRenderingExtTextureFormat = 108;
403pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatRGBA_BC7_UNorm:
404 UnityRenderingExtTextureFormat = 109;
405pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatRGB_PVRTC_2Bpp_SRGB:
406 UnityRenderingExtTextureFormat = 110;
407pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatRGB_PVRTC_2Bpp_UNorm:
408 UnityRenderingExtTextureFormat = 111;
409pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatRGB_PVRTC_4Bpp_SRGB:
410 UnityRenderingExtTextureFormat = 112;
411pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatRGB_PVRTC_4Bpp_UNorm:
412 UnityRenderingExtTextureFormat = 113;
413pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatRGBA_PVRTC_2Bpp_SRGB:
414 UnityRenderingExtTextureFormat = 114;
415pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatRGBA_PVRTC_2Bpp_UNorm:
416 UnityRenderingExtTextureFormat = 115;
417pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatRGBA_PVRTC_4Bpp_SRGB:
418 UnityRenderingExtTextureFormat = 116;
419pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatRGBA_PVRTC_4Bpp_UNorm:
420 UnityRenderingExtTextureFormat = 117;
421pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatRGB_ETC_UNorm:
422 UnityRenderingExtTextureFormat = 118;
423pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatRGB_ETC2_SRGB:
424 UnityRenderingExtTextureFormat = 119;
425pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatRGB_ETC2_UNorm:
426 UnityRenderingExtTextureFormat = 120;
427pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatRGB_A1_ETC2_SRGB:
428 UnityRenderingExtTextureFormat = 121;
429pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatRGB_A1_ETC2_UNorm:
430 UnityRenderingExtTextureFormat = 122;
431pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatRGBA_ETC2_SRGB:
432 UnityRenderingExtTextureFormat = 123;
433pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatRGBA_ETC2_UNorm:
434 UnityRenderingExtTextureFormat = 124;
435pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatR_EAC_UNorm:
436 UnityRenderingExtTextureFormat = 125;
437pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatR_EAC_SNorm:
438 UnityRenderingExtTextureFormat = 126;
439pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatRG_EAC_UNorm:
440 UnityRenderingExtTextureFormat = 127;
441pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatRG_EAC_SNorm:
442 UnityRenderingExtTextureFormat = 128;
443pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatRGBA_ASTC4X4_SRGB:
444 UnityRenderingExtTextureFormat = 129;
445pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatRGBA_ASTC4X4_UNorm:
446 UnityRenderingExtTextureFormat = 130;
447pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatRGBA_ASTC5X5_SRGB:
448 UnityRenderingExtTextureFormat = 131;
449pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatRGBA_ASTC5X5_UNorm:
450 UnityRenderingExtTextureFormat = 132;
451pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatRGBA_ASTC6X6_SRGB:
452 UnityRenderingExtTextureFormat = 133;
453pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatRGBA_ASTC6X6_UNorm:
454 UnityRenderingExtTextureFormat = 134;
455pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatRGBA_ASTC8X8_SRGB:
456 UnityRenderingExtTextureFormat = 135;
457pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatRGBA_ASTC8X8_UNorm:
458 UnityRenderingExtTextureFormat = 136;
459pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatRGBA_ASTC10X10_SRGB:
460 UnityRenderingExtTextureFormat = 137;
461pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatRGBA_ASTC10X10_UNorm:
462 UnityRenderingExtTextureFormat = 138;
463pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatRGBA_ASTC12X12_SRGB:
464 UnityRenderingExtTextureFormat = 139;
465pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatRGBA_ASTC12X12_UNorm:
466 UnityRenderingExtTextureFormat = 140;
467pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatYUV2:
468 UnityRenderingExtTextureFormat = 141;
469pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatRGBA_ASTC4X4_UFloat:
470 UnityRenderingExtTextureFormat = 145;
471pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatRGBA_ASTC5X5_UFloat:
472 UnityRenderingExtTextureFormat = 146;
473pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatRGBA_ASTC6X6_UFloat:
474 UnityRenderingExtTextureFormat = 147;
475pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatRGBA_ASTC8X8_UFloat:
476 UnityRenderingExtTextureFormat = 148;
477pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatRGBA_ASTC10X10_UFloat:
478 UnityRenderingExtTextureFormat = 149;
479pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatRGBA_ASTC12X12_UFloat:
480 UnityRenderingExtTextureFormat = 150;
481pub const UnityRenderingExtTextureFormat_kUnityRenderingExtFormatLast:
482 UnityRenderingExtTextureFormat = 150;
483pub type UnityRenderingExtTextureFormat = ::std::os::raw::c_uint;
484#[repr(C)]
485#[derive(Copy, Clone)]
486pub struct UnityRenderingExtBeforeDrawCallParams {
487 pub vertexShader: *mut ::std::os::raw::c_void,
488 pub fragmentShader: *mut ::std::os::raw::c_void,
489 pub geometryShader: *mut ::std::os::raw::c_void,
490 pub hullShader: *mut ::std::os::raw::c_void,
491 pub domainShader: *mut ::std::os::raw::c_void,
492 pub eyeIndex: ::std::os::raw::c_int,
493}
494#[allow(clippy::unnecessary_operation, clippy::identity_op)]
495const _: () = {
496 ["Size of UnityRenderingExtBeforeDrawCallParams"]
497 [::std::mem::size_of::<UnityRenderingExtBeforeDrawCallParams>() - 48usize];
498 ["Alignment of UnityRenderingExtBeforeDrawCallParams"]
499 [::std::mem::align_of::<UnityRenderingExtBeforeDrawCallParams>() - 8usize];
500 ["Offset of field: UnityRenderingExtBeforeDrawCallParams::vertexShader"]
501 [::std::mem::offset_of!(UnityRenderingExtBeforeDrawCallParams, vertexShader) - 0usize];
502 ["Offset of field: UnityRenderingExtBeforeDrawCallParams::fragmentShader"]
503 [::std::mem::offset_of!(UnityRenderingExtBeforeDrawCallParams, fragmentShader) - 8usize];
504 ["Offset of field: UnityRenderingExtBeforeDrawCallParams::geometryShader"]
505 [::std::mem::offset_of!(UnityRenderingExtBeforeDrawCallParams, geometryShader) - 16usize];
506 ["Offset of field: UnityRenderingExtBeforeDrawCallParams::hullShader"]
507 [::std::mem::offset_of!(UnityRenderingExtBeforeDrawCallParams, hullShader) - 24usize];
508 ["Offset of field: UnityRenderingExtBeforeDrawCallParams::domainShader"]
509 [::std::mem::offset_of!(UnityRenderingExtBeforeDrawCallParams, domainShader) - 32usize];
510 ["Offset of field: UnityRenderingExtBeforeDrawCallParams::eyeIndex"]
511 [::std::mem::offset_of!(UnityRenderingExtBeforeDrawCallParams, eyeIndex) - 40usize];
512};
513impl Default for UnityRenderingExtBeforeDrawCallParams {
514 fn default() -> Self {
515 let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
516 unsafe {
517 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
518 s.assume_init()
519 }
520 }
521}
522#[repr(C)]
523#[derive(Copy, Clone)]
524pub struct UnityRenderingExtCustomBlitParams {
525 pub source: UnityTextureID,
526 pub destination: UnityRenderBuffer,
527 pub command: ::std::os::raw::c_uint,
528 pub commandParam: ::std::os::raw::c_uint,
529 pub commandFlags: ::std::os::raw::c_uint,
530}
531#[allow(clippy::unnecessary_operation, clippy::identity_op)]
532const _: () = {
533 ["Size of UnityRenderingExtCustomBlitParams"]
534 [::std::mem::size_of::<UnityRenderingExtCustomBlitParams>() - 32usize];
535 ["Alignment of UnityRenderingExtCustomBlitParams"]
536 [::std::mem::align_of::<UnityRenderingExtCustomBlitParams>() - 8usize];
537 ["Offset of field: UnityRenderingExtCustomBlitParams::source"]
538 [::std::mem::offset_of!(UnityRenderingExtCustomBlitParams, source) - 0usize];
539 ["Offset of field: UnityRenderingExtCustomBlitParams::destination"]
540 [::std::mem::offset_of!(UnityRenderingExtCustomBlitParams, destination) - 8usize];
541 ["Offset of field: UnityRenderingExtCustomBlitParams::command"]
542 [::std::mem::offset_of!(UnityRenderingExtCustomBlitParams, command) - 16usize];
543 ["Offset of field: UnityRenderingExtCustomBlitParams::commandParam"]
544 [::std::mem::offset_of!(UnityRenderingExtCustomBlitParams, commandParam) - 20usize];
545 ["Offset of field: UnityRenderingExtCustomBlitParams::commandFlags"]
546 [::std::mem::offset_of!(UnityRenderingExtCustomBlitParams, commandFlags) - 24usize];
547};
548impl Default for UnityRenderingExtCustomBlitParams {
549 fn default() -> Self {
550 let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
551 unsafe {
552 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
553 s.assume_init()
554 }
555 }
556}
557#[repr(C)]
558#[derive(Copy, Clone)]
559pub struct UnityRenderingExtTextureUpdateParamsV1 {
560 pub texData: *mut ::std::os::raw::c_void,
561 pub userData: ::std::os::raw::c_uint,
562 pub textureID: ::std::os::raw::c_uint,
563 pub format: UnityRenderingExtTextureFormat,
564 pub width: ::std::os::raw::c_uint,
565 pub height: ::std::os::raw::c_uint,
566 pub bpp: ::std::os::raw::c_uint,
567}
568#[allow(clippy::unnecessary_operation, clippy::identity_op)]
569const _: () = {
570 ["Size of UnityRenderingExtTextureUpdateParamsV1"]
571 [::std::mem::size_of::<UnityRenderingExtTextureUpdateParamsV1>() - 32usize];
572 ["Alignment of UnityRenderingExtTextureUpdateParamsV1"]
573 [::std::mem::align_of::<UnityRenderingExtTextureUpdateParamsV1>() - 8usize];
574 ["Offset of field: UnityRenderingExtTextureUpdateParamsV1::texData"]
575 [::std::mem::offset_of!(UnityRenderingExtTextureUpdateParamsV1, texData) - 0usize];
576 ["Offset of field: UnityRenderingExtTextureUpdateParamsV1::userData"]
577 [::std::mem::offset_of!(UnityRenderingExtTextureUpdateParamsV1, userData) - 8usize];
578 ["Offset of field: UnityRenderingExtTextureUpdateParamsV1::textureID"]
579 [::std::mem::offset_of!(UnityRenderingExtTextureUpdateParamsV1, textureID) - 12usize];
580 ["Offset of field: UnityRenderingExtTextureUpdateParamsV1::format"]
581 [::std::mem::offset_of!(UnityRenderingExtTextureUpdateParamsV1, format) - 16usize];
582 ["Offset of field: UnityRenderingExtTextureUpdateParamsV1::width"]
583 [::std::mem::offset_of!(UnityRenderingExtTextureUpdateParamsV1, width) - 20usize];
584 ["Offset of field: UnityRenderingExtTextureUpdateParamsV1::height"]
585 [::std::mem::offset_of!(UnityRenderingExtTextureUpdateParamsV1, height) - 24usize];
586 ["Offset of field: UnityRenderingExtTextureUpdateParamsV1::bpp"]
587 [::std::mem::offset_of!(UnityRenderingExtTextureUpdateParamsV1, bpp) - 28usize];
588};
589impl Default for UnityRenderingExtTextureUpdateParamsV1 {
590 fn default() -> Self {
591 let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
592 unsafe {
593 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
594 s.assume_init()
595 }
596 }
597}
598pub type UnityRenderingExtTextureUpdateParams = UnityRenderingExtTextureUpdateParamsV1;
599#[repr(C)]
600#[derive(Copy, Clone)]
601pub struct UnityRenderingExtTextureUpdateParamsV2 {
602 pub texData: *mut ::std::os::raw::c_void,
603 pub textureID: isize,
604 pub userData: ::std::os::raw::c_uint,
605 pub format: UnityRenderingExtTextureFormat,
606 pub width: ::std::os::raw::c_uint,
607 pub height: ::std::os::raw::c_uint,
608 pub bpp: ::std::os::raw::c_uint,
609}
610#[allow(clippy::unnecessary_operation, clippy::identity_op)]
611const _: () = {
612 ["Size of UnityRenderingExtTextureUpdateParamsV2"]
613 [::std::mem::size_of::<UnityRenderingExtTextureUpdateParamsV2>() - 40usize];
614 ["Alignment of UnityRenderingExtTextureUpdateParamsV2"]
615 [::std::mem::align_of::<UnityRenderingExtTextureUpdateParamsV2>() - 8usize];
616 ["Offset of field: UnityRenderingExtTextureUpdateParamsV2::texData"]
617 [::std::mem::offset_of!(UnityRenderingExtTextureUpdateParamsV2, texData) - 0usize];
618 ["Offset of field: UnityRenderingExtTextureUpdateParamsV2::textureID"]
619 [::std::mem::offset_of!(UnityRenderingExtTextureUpdateParamsV2, textureID) - 8usize];
620 ["Offset of field: UnityRenderingExtTextureUpdateParamsV2::userData"]
621 [::std::mem::offset_of!(UnityRenderingExtTextureUpdateParamsV2, userData) - 16usize];
622 ["Offset of field: UnityRenderingExtTextureUpdateParamsV2::format"]
623 [::std::mem::offset_of!(UnityRenderingExtTextureUpdateParamsV2, format) - 20usize];
624 ["Offset of field: UnityRenderingExtTextureUpdateParamsV2::width"]
625 [::std::mem::offset_of!(UnityRenderingExtTextureUpdateParamsV2, width) - 24usize];
626 ["Offset of field: UnityRenderingExtTextureUpdateParamsV2::height"]
627 [::std::mem::offset_of!(UnityRenderingExtTextureUpdateParamsV2, height) - 28usize];
628 ["Offset of field: UnityRenderingExtTextureUpdateParamsV2::bpp"]
629 [::std::mem::offset_of!(UnityRenderingExtTextureUpdateParamsV2, bpp) - 32usize];
630};
631impl Default for UnityRenderingExtTextureUpdateParamsV2 {
632 fn default() -> Self {
633 let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
634 unsafe {
635 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
636 s.assume_init()
637 }
638 }
639}
640unsafe extern "system" {
641 pub fn UnityRenderingExtEvent(
642 event: UnityRenderingExtEventType,
643 data: *mut ::std::os::raw::c_void,
644 );
645}
646unsafe extern "system" {
647 pub fn UnityRenderingExtQuery(query: UnityRenderingExtQueryType) -> bool;
648}
649pub type UnityProfilerMarkerId = u32;
650pub const UnityBuiltinProfilerCategory__kUnityProfilerCategoryRender:
651 UnityBuiltinProfilerCategory_ = 0;
652pub const UnityBuiltinProfilerCategory__kUnityProfilerCategoryScripts:
653 UnityBuiltinProfilerCategory_ = 1;
654pub const UnityBuiltinProfilerCategory__kUnityProfilerCategoryManagedJobs:
655 UnityBuiltinProfilerCategory_ = 2;
656pub const UnityBuiltinProfilerCategory__kUnityProfilerCategoryBurstJobs:
657 UnityBuiltinProfilerCategory_ = 3;
658pub const UnityBuiltinProfilerCategory__kUnityProfilerCategoryGUI: UnityBuiltinProfilerCategory_ =
659 4;
660pub const UnityBuiltinProfilerCategory__kUnityProfilerCategoryPhysics:
661 UnityBuiltinProfilerCategory_ = 5;
662pub const UnityBuiltinProfilerCategory__kUnityProfilerCategoryAnimation:
663 UnityBuiltinProfilerCategory_ = 6;
664pub const UnityBuiltinProfilerCategory__kUnityProfilerCategoryAI: UnityBuiltinProfilerCategory_ = 7;
665pub const UnityBuiltinProfilerCategory__kUnityProfilerCategoryAudio: UnityBuiltinProfilerCategory_ =
666 8;
667pub const UnityBuiltinProfilerCategory__kUnityProfilerCategoryAudioJob:
668 UnityBuiltinProfilerCategory_ = 9;
669pub const UnityBuiltinProfilerCategory__kUnityProfilerCategoryAudioUpdateJob:
670 UnityBuiltinProfilerCategory_ = 10;
671pub const UnityBuiltinProfilerCategory__kUnityProfilerCategoryVideo: UnityBuiltinProfilerCategory_ =
672 11;
673pub const UnityBuiltinProfilerCategory__kUnityProfilerCategoryParticles:
674 UnityBuiltinProfilerCategory_ = 12;
675pub const UnityBuiltinProfilerCategory__kUnityProfilerCategoryGi: UnityBuiltinProfilerCategory_ =
676 13;
677pub const UnityBuiltinProfilerCategory__kUnityProfilerCategoryNetwork:
678 UnityBuiltinProfilerCategory_ = 14;
679pub const UnityBuiltinProfilerCategory__kUnityProfilerCategoryLoading:
680 UnityBuiltinProfilerCategory_ = 15;
681pub const UnityBuiltinProfilerCategory__kUnityProfilerCategoryOther: UnityBuiltinProfilerCategory_ =
682 16;
683pub const UnityBuiltinProfilerCategory__kUnityProfilerCategoryGC: UnityBuiltinProfilerCategory_ =
684 17;
685pub const UnityBuiltinProfilerCategory__kUnityProfilerCategoryVSync: UnityBuiltinProfilerCategory_ =
686 18;
687pub const UnityBuiltinProfilerCategory__kUnityProfilerCategoryOverhead:
688 UnityBuiltinProfilerCategory_ = 19;
689pub const UnityBuiltinProfilerCategory__kUnityProfilerCategoryPlayerLoop:
690 UnityBuiltinProfilerCategory_ = 20;
691pub const UnityBuiltinProfilerCategory__kUnityProfilerCategoryDirector:
692 UnityBuiltinProfilerCategory_ = 21;
693pub const UnityBuiltinProfilerCategory__kUnityProfilerCategoryVR: UnityBuiltinProfilerCategory_ =
694 22;
695pub const UnityBuiltinProfilerCategory__kUnityProfilerCategoryAllocation:
696 UnityBuiltinProfilerCategory_ = 23;
697pub const UnityBuiltinProfilerCategory__kUnityProfilerCategoryMemory:
698 UnityBuiltinProfilerCategory_ = 23;
699pub const UnityBuiltinProfilerCategory__kUnityProfilerCategoryInternal:
700 UnityBuiltinProfilerCategory_ = 24;
701pub const UnityBuiltinProfilerCategory__kUnityProfilerCategoryFileIO:
702 UnityBuiltinProfilerCategory_ = 25;
703pub const UnityBuiltinProfilerCategory__kUnityProfilerCategoryUISystemLayout:
704 UnityBuiltinProfilerCategory_ = 26;
705pub const UnityBuiltinProfilerCategory__kUnityProfilerCategoryUISystemRender:
706 UnityBuiltinProfilerCategory_ = 27;
707pub const UnityBuiltinProfilerCategory__kUnityProfilerCategoryVFX: UnityBuiltinProfilerCategory_ =
708 28;
709pub const UnityBuiltinProfilerCategory__kUnityProfilerCategoryBuildInterface:
710 UnityBuiltinProfilerCategory_ = 29;
711pub const UnityBuiltinProfilerCategory__kUnityProfilerCategoryInput: UnityBuiltinProfilerCategory_ =
712 30;
713pub const UnityBuiltinProfilerCategory__kUnityProfilerCategoryVirtualTexturing:
714 UnityBuiltinProfilerCategory_ = 31;
715pub const UnityBuiltinProfilerCategory__kUnityProfilerCategoryGPU: UnityBuiltinProfilerCategory_ =
716 32;
717pub const UnityBuiltinProfilerCategory__kUnityProfilerCategoryPhysics2D:
718 UnityBuiltinProfilerCategory_ = 33;
719pub const UnityBuiltinProfilerCategory__kUnityProfilerCategoryNetworkOperations:
720 UnityBuiltinProfilerCategory_ = 34;
721pub const UnityBuiltinProfilerCategory__kUnityProfilerCategoryUIDetails:
722 UnityBuiltinProfilerCategory_ = 35;
723pub const UnityBuiltinProfilerCategory__kUnityProfilerCategoryDebug: UnityBuiltinProfilerCategory_ =
724 36;
725pub const UnityBuiltinProfilerCategory__kUnityProfilerCategoryJobs: UnityBuiltinProfilerCategory_ =
726 37;
727pub const UnityBuiltinProfilerCategory__kUnityProfilerCategoryText: UnityBuiltinProfilerCategory_ =
728 38;
729pub type UnityBuiltinProfilerCategory_ = ::std::os::raw::c_uint;
730pub type UnityProfilerCategoryId = u16;
731#[repr(C)]
732#[derive(Copy, Clone)]
733pub struct UnityProfilerCategoryDesc {
734 pub id: UnityProfilerCategoryId,
735 pub reserved0: u16,
736 pub rgbaColor: u32,
737 pub name: *const ::std::os::raw::c_char,
738}
739#[allow(clippy::unnecessary_operation, clippy::identity_op)]
740const _: () = {
741 ["Size of UnityProfilerCategoryDesc"]
742 [::std::mem::size_of::<UnityProfilerCategoryDesc>() - 16usize];
743 ["Alignment of UnityProfilerCategoryDesc"]
744 [::std::mem::align_of::<UnityProfilerCategoryDesc>() - 8usize];
745 ["Offset of field: UnityProfilerCategoryDesc::id"]
746 [::std::mem::offset_of!(UnityProfilerCategoryDesc, id) - 0usize];
747 ["Offset of field: UnityProfilerCategoryDesc::reserved0"]
748 [::std::mem::offset_of!(UnityProfilerCategoryDesc, reserved0) - 2usize];
749 ["Offset of field: UnityProfilerCategoryDesc::rgbaColor"]
750 [::std::mem::offset_of!(UnityProfilerCategoryDesc, rgbaColor) - 4usize];
751 ["Offset of field: UnityProfilerCategoryDesc::name"]
752 [::std::mem::offset_of!(UnityProfilerCategoryDesc, name) - 8usize];
753};
754impl Default for UnityProfilerCategoryDesc {
755 fn default() -> Self {
756 let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
757 unsafe {
758 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
759 s.assume_init()
760 }
761 }
762}
763pub const UnityProfilerMarkerFlag__kUnityProfilerMarkerFlagDefault: UnityProfilerMarkerFlag_ = 0;
764pub const UnityProfilerMarkerFlag__kUnityProfilerMarkerFlagScriptUser: UnityProfilerMarkerFlag_ = 2;
765pub const UnityProfilerMarkerFlag__kUnityProfilerMarkerFlagScriptInvoke: UnityProfilerMarkerFlag_ =
766 32;
767pub const UnityProfilerMarkerFlag__kUnityProfilerMarkerFlagScriptEnterLeave:
768 UnityProfilerMarkerFlag_ = 64;
769pub const UnityProfilerMarkerFlag__kUnityProfilerMarkerFlagAvailabilityEditor:
770 UnityProfilerMarkerFlag_ = 4;
771pub const UnityProfilerMarkerFlag__kUnityProfilerMarkerFlagAvailabilityNonDev:
772 UnityProfilerMarkerFlag_ = 8;
773pub const UnityProfilerMarkerFlag__kUnityProfilerMarkerFlagWarning: UnityProfilerMarkerFlag_ = 16;
774pub const UnityProfilerMarkerFlag__kUnityProfilerMarkerFlagCounter: UnityProfilerMarkerFlag_ = 128;
775pub const UnityProfilerMarkerFlag__kUnityProfilerMarkerFlagSampleGPU: UnityProfilerMarkerFlag_ =
776 256;
777pub const UnityProfilerMarkerFlag__kUnityProfilerMarkerFlagVerbosityDebug:
778 UnityProfilerMarkerFlag_ = 1024;
779pub const UnityProfilerMarkerFlag__kUnityProfilerMarkerFlagVerbosityInternal:
780 UnityProfilerMarkerFlag_ = 2048;
781pub const UnityProfilerMarkerFlag__kUnityProfilerMarkerFlagVerbosityExternal:
782 UnityProfilerMarkerFlag_ = 3072;
783pub const UnityProfilerMarkerFlag__kUnityProfilerMarkerFlagVerbosityAdvanced:
784 UnityProfilerMarkerFlag_ = 4096;
785pub const UnityProfilerMarkerFlag__kUnityProfilerMarkerFlagPrecreated: UnityProfilerMarkerFlag_ =
786 32768;
787pub type UnityProfilerMarkerFlag_ = ::std::os::raw::c_uint;
788pub type UnityProfilerMarkerFlags = u16;
789pub const UnityProfilerMarkerEventType__kUnityProfilerMarkerEventTypeBegin:
790 UnityProfilerMarkerEventType_ = 0;
791pub const UnityProfilerMarkerEventType__kUnityProfilerMarkerEventTypeEnd:
792 UnityProfilerMarkerEventType_ = 1;
793pub const UnityProfilerMarkerEventType__kUnityProfilerMarkerEventTypeSingle:
794 UnityProfilerMarkerEventType_ = 2;
795pub type UnityProfilerMarkerEventType_ = ::std::os::raw::c_uint;
796pub type UnityProfilerMarkerEventType = u16;
797#[repr(C)]
798#[derive(Copy, Clone)]
799pub struct UnityProfilerMarkerDesc {
800 pub callback: *const ::std::os::raw::c_void,
801 pub id: UnityProfilerMarkerId,
802 pub flags: UnityProfilerMarkerFlags,
803 pub categoryId: UnityProfilerCategoryId,
804 pub name: *const ::std::os::raw::c_char,
805 pub metaDataDesc: *const ::std::os::raw::c_void,
806}
807#[allow(clippy::unnecessary_operation, clippy::identity_op)]
808const _: () = {
809 ["Size of UnityProfilerMarkerDesc"][::std::mem::size_of::<UnityProfilerMarkerDesc>() - 32usize];
810 ["Alignment of UnityProfilerMarkerDesc"]
811 [::std::mem::align_of::<UnityProfilerMarkerDesc>() - 8usize];
812 ["Offset of field: UnityProfilerMarkerDesc::callback"]
813 [::std::mem::offset_of!(UnityProfilerMarkerDesc, callback) - 0usize];
814 ["Offset of field: UnityProfilerMarkerDesc::id"]
815 [::std::mem::offset_of!(UnityProfilerMarkerDesc, id) - 8usize];
816 ["Offset of field: UnityProfilerMarkerDesc::flags"]
817 [::std::mem::offset_of!(UnityProfilerMarkerDesc, flags) - 12usize];
818 ["Offset of field: UnityProfilerMarkerDesc::categoryId"]
819 [::std::mem::offset_of!(UnityProfilerMarkerDesc, categoryId) - 14usize];
820 ["Offset of field: UnityProfilerMarkerDesc::name"]
821 [::std::mem::offset_of!(UnityProfilerMarkerDesc, name) - 16usize];
822 ["Offset of field: UnityProfilerMarkerDesc::metaDataDesc"]
823 [::std::mem::offset_of!(UnityProfilerMarkerDesc, metaDataDesc) - 24usize];
824};
825impl Default for UnityProfilerMarkerDesc {
826 fn default() -> Self {
827 let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
828 unsafe {
829 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
830 s.assume_init()
831 }
832 }
833}
834pub const UnityProfilerMarkerDataType__kUnityProfilerMarkerDataTypeNone:
835 UnityProfilerMarkerDataType_ = 0;
836pub const UnityProfilerMarkerDataType__kUnityProfilerMarkerDataTypeInstanceId:
837 UnityProfilerMarkerDataType_ = 1;
838pub const UnityProfilerMarkerDataType__kUnityProfilerMarkerDataTypeInt32:
839 UnityProfilerMarkerDataType_ = 2;
840pub const UnityProfilerMarkerDataType__kUnityProfilerMarkerDataTypeUInt32:
841 UnityProfilerMarkerDataType_ = 3;
842pub const UnityProfilerMarkerDataType__kUnityProfilerMarkerDataTypeInt64:
843 UnityProfilerMarkerDataType_ = 4;
844pub const UnityProfilerMarkerDataType__kUnityProfilerMarkerDataTypeUInt64:
845 UnityProfilerMarkerDataType_ = 5;
846pub const UnityProfilerMarkerDataType__kUnityProfilerMarkerDataTypeFloat:
847 UnityProfilerMarkerDataType_ = 6;
848pub const UnityProfilerMarkerDataType__kUnityProfilerMarkerDataTypeDouble:
849 UnityProfilerMarkerDataType_ = 7;
850pub const UnityProfilerMarkerDataType__kUnityProfilerMarkerDataTypeString:
851 UnityProfilerMarkerDataType_ = 8;
852pub const UnityProfilerMarkerDataType__kUnityProfilerMarkerDataTypeString16:
853 UnityProfilerMarkerDataType_ = 9;
854pub const UnityProfilerMarkerDataType__kUnityProfilerMarkerDataTypeBlob8:
855 UnityProfilerMarkerDataType_ = 11;
856pub const UnityProfilerMarkerDataType__kUnityProfilerMarkerDataTypeGfxResourceId:
857 UnityProfilerMarkerDataType_ = 12;
858pub const UnityProfilerMarkerDataType__kUnityProfilerMarkerDataTypeCount:
859 UnityProfilerMarkerDataType_ = 13;
860pub type UnityProfilerMarkerDataType_ = ::std::os::raw::c_uint;
861pub type UnityProfilerMarkerDataType = u8;
862pub const UnityProfilerMarkerDataUnit__kUnityProfilerMarkerDataUnitUndefined:
863 UnityProfilerMarkerDataUnit_ = 0;
864pub const UnityProfilerMarkerDataUnit__kUnityProfilerMarkerDataUnitTimeNanoseconds:
865 UnityProfilerMarkerDataUnit_ = 1;
866pub const UnityProfilerMarkerDataUnit__kUnityProfilerMarkerDataUnitBytes:
867 UnityProfilerMarkerDataUnit_ = 2;
868pub const UnityProfilerMarkerDataUnit__kUnityProfilerMarkerDataUnitCount:
869 UnityProfilerMarkerDataUnit_ = 3;
870pub const UnityProfilerMarkerDataUnit__kUnityProfilerMarkerDataUnitPercent:
871 UnityProfilerMarkerDataUnit_ = 4;
872pub const UnityProfilerMarkerDataUnit__kUnityProfilerMarkerDataUnitFrequencyHz:
873 UnityProfilerMarkerDataUnit_ = 5;
874pub type UnityProfilerMarkerDataUnit_ = ::std::os::raw::c_uint;
875pub type UnityProfilerMarkerDataUnit = u8;
876#[repr(C)]
877#[derive(Copy, Clone)]
878pub struct UnityProfilerMarkerData {
879 pub type_: UnityProfilerMarkerDataType,
880 pub reserved0: u8,
881 pub reserved1: u16,
882 pub size: u32,
883 pub ptr: *const ::std::os::raw::c_void,
884}
885#[allow(clippy::unnecessary_operation, clippy::identity_op)]
886const _: () = {
887 ["Size of UnityProfilerMarkerData"][::std::mem::size_of::<UnityProfilerMarkerData>() - 16usize];
888 ["Alignment of UnityProfilerMarkerData"]
889 [::std::mem::align_of::<UnityProfilerMarkerData>() - 8usize];
890 ["Offset of field: UnityProfilerMarkerData::type_"]
891 [::std::mem::offset_of!(UnityProfilerMarkerData, type_) - 0usize];
892 ["Offset of field: UnityProfilerMarkerData::reserved0"]
893 [::std::mem::offset_of!(UnityProfilerMarkerData, reserved0) - 1usize];
894 ["Offset of field: UnityProfilerMarkerData::reserved1"]
895 [::std::mem::offset_of!(UnityProfilerMarkerData, reserved1) - 2usize];
896 ["Offset of field: UnityProfilerMarkerData::size"]
897 [::std::mem::offset_of!(UnityProfilerMarkerData, size) - 4usize];
898 ["Offset of field: UnityProfilerMarkerData::ptr"]
899 [::std::mem::offset_of!(UnityProfilerMarkerData, ptr) - 8usize];
900};
901impl Default for UnityProfilerMarkerData {
902 fn default() -> Self {
903 let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
904 unsafe {
905 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
906 s.assume_init()
907 }
908 }
909}
910pub const UnityProfilerFlowEventType__kUnityProfilerFlowEventTypeBegin:
911 UnityProfilerFlowEventType_ = 0;
912pub const UnityProfilerFlowEventType__kUnityProfilerFlowEventTypeParallelNext:
913 UnityProfilerFlowEventType_ = 1;
914pub const UnityProfilerFlowEventType__kUnityProfilerFlowEventTypeEnd: UnityProfilerFlowEventType_ =
915 2;
916pub const UnityProfilerFlowEventType__kUnityProfilerFlowEventTypeNext: UnityProfilerFlowEventType_ =
917 3;
918pub type UnityProfilerFlowEventType_ = ::std::os::raw::c_uint;
919pub type UnityProfilerFlowEventType = u8;
920pub const UnityProfilerCounterFlags__kUnityProfilerCounterFlagNone: UnityProfilerCounterFlags_ = 0;
921pub const UnityProfilerCounterFlags__kUnityProfilerCounterFlushOnEndOfFrame:
922 UnityProfilerCounterFlags_ = 2;
923pub const UnityProfilerCounterFlags__kUnityProfilerCounterFlagResetToZeroOnFlush:
924 UnityProfilerCounterFlags_ = 4;
925pub const UnityProfilerCounterFlags__kUnityProfilerCounterFlagAtomic: UnityProfilerCounterFlags_ =
926 8;
927pub const UnityProfilerCounterFlags__kUnityProfilerCounterFlagGetter: UnityProfilerCounterFlags_ =
928 16;
929pub type UnityProfilerCounterFlags_ = ::std::os::raw::c_uint;
930pub type UnityProfilerCounterFlags = u16;
931pub type UnityProfilerThreadId = u64;
932pub type UnityProfilerCounterStatePtrCallback =
933 ::std::option::Option<unsafe extern "system" fn(userData: *mut ::std::os::raw::c_void)>;
934#[repr(C)]
935#[derive(Default, Copy, Clone)]
936pub struct UnityProfilerDataUnitHelper {
937 pub _address: u8,
938}
939#[allow(clippy::unnecessary_operation, clippy::identity_op)]
940const _: () = {
941 ["Size of template specialization: UnityProfilerDataUnitHelper_open0_int_close0"]
942 [::std::mem::size_of::<UnityProfilerDataUnitHelper>() - 1usize];
943 ["Align of template specialization: UnityProfilerDataUnitHelper_open0_int_close0"]
944 [::std::mem::align_of::<UnityProfilerDataUnitHelper>() - 1usize];
945};
946#[allow(clippy::unnecessary_operation, clippy::identity_op)]
947const _: () = {
948 ["Size of template specialization: UnityProfilerDataUnitHelper_open0_unsigned_int_close0"]
949 [::std::mem::size_of::<UnityProfilerDataUnitHelper>() - 1usize];
950 ["Align of template specialization: UnityProfilerDataUnitHelper_open0_unsigned_int_close0"]
951 [::std::mem::align_of::<UnityProfilerDataUnitHelper>() - 1usize];
952};
953#[allow(clippy::unnecessary_operation, clippy::identity_op)]
954const _: () = {
955 ["Size of template specialization: UnityProfilerDataUnitHelper_open0_long_long_close0"]
956 [::std::mem::size_of::<UnityProfilerDataUnitHelper>() - 1usize];
957 ["Align of template specialization: UnityProfilerDataUnitHelper_open0_long_long_close0"]
958 [::std::mem::align_of::<UnityProfilerDataUnitHelper>() - 1usize];
959};
960#[allow(clippy::unnecessary_operation, clippy::identity_op)]
961const _: () = {
962 ["Size of template specialization: UnityProfilerDataUnitHelper_open0_unsigned_long_long_close0"] [:: std :: mem :: size_of :: < UnityProfilerDataUnitHelper > () - 1usize] ;
963 ["Align of template specialization: UnityProfilerDataUnitHelper_open0_unsigned_long_long_close0"] [:: std :: mem :: align_of :: < UnityProfilerDataUnitHelper > () - 1usize] ;
964};
965#[allow(clippy::unnecessary_operation, clippy::identity_op)]
966const _: () = {
967 ["Size of template specialization: UnityProfilerDataUnitHelper_open0_float_close0"]
968 [::std::mem::size_of::<UnityProfilerDataUnitHelper>() - 1usize];
969 ["Align of template specialization: UnityProfilerDataUnitHelper_open0_float_close0"]
970 [::std::mem::align_of::<UnityProfilerDataUnitHelper>() - 1usize];
971};
972#[allow(clippy::unnecessary_operation, clippy::identity_op)]
973const _: () = {
974 ["Size of template specialization: UnityProfilerDataUnitHelper_open0_double_close0"]
975 [::std::mem::size_of::<UnityProfilerDataUnitHelper>() - 1usize];
976 ["Align of template specialization: UnityProfilerDataUnitHelper_open0_double_close0"]
977 [::std::mem::align_of::<UnityProfilerDataUnitHelper>() - 1usize];
978};
979#[repr(C)]
980#[derive(Default, Copy, Clone)]
981pub struct IUnityProfilerV2 {
982 pub EmitEvent: ::std::option::Option<
983 unsafe extern "system" fn(
984 markerDesc: *const UnityProfilerMarkerDesc,
985 eventType: UnityProfilerMarkerEventType,
986 eventDataCount: u16,
987 eventData: *const UnityProfilerMarkerData,
988 ),
989 >,
990 pub IsEnabled: ::std::option::Option<unsafe extern "system" fn() -> ::std::os::raw::c_int>,
991 pub IsAvailable: ::std::option::Option<unsafe extern "system" fn() -> ::std::os::raw::c_int>,
992 pub CreateMarker: ::std::option::Option<
993 unsafe extern "system" fn(
994 desc: *mut *const UnityProfilerMarkerDesc,
995 name: *const ::std::os::raw::c_char,
996 category: UnityProfilerCategoryId,
997 flags: UnityProfilerMarkerFlags,
998 eventDataCount: ::std::os::raw::c_int,
999 ) -> ::std::os::raw::c_int,
1000 >,
1001 pub SetMarkerMetadataName: ::std::option::Option<
1002 unsafe extern "system" fn(
1003 desc: *const UnityProfilerMarkerDesc,
1004 index: ::std::os::raw::c_int,
1005 metadataName: *const ::std::os::raw::c_char,
1006 metadataType: UnityProfilerMarkerDataType,
1007 metadataUnit: UnityProfilerMarkerDataUnit,
1008 ) -> ::std::os::raw::c_int,
1009 >,
1010 pub CreateCategory: ::std::option::Option<
1011 unsafe extern "system" fn(
1012 category: *mut UnityProfilerCategoryId,
1013 name: *const ::std::os::raw::c_char,
1014 unused: u32,
1015 ) -> ::std::os::raw::c_int,
1016 >,
1017 pub RegisterThread: ::std::option::Option<
1018 unsafe extern "system" fn(
1019 threadId: *mut UnityProfilerThreadId,
1020 groupName: *const ::std::os::raw::c_char,
1021 name: *const ::std::os::raw::c_char,
1022 ) -> ::std::os::raw::c_int,
1023 >,
1024 pub UnregisterThread: ::std::option::Option<
1025 unsafe extern "system" fn(threadId: UnityProfilerThreadId) -> ::std::os::raw::c_int,
1026 >,
1027 pub CreateCounterValue: ::std::option::Option<
1028 unsafe extern "system" fn(
1029 category: UnityProfilerCategoryId,
1030 name: *const ::std::os::raw::c_char,
1031 flags: UnityProfilerMarkerFlags,
1032 valueType: UnityProfilerMarkerDataType,
1033 valueUnit: UnityProfilerMarkerDataUnit,
1034 valueSize: usize,
1035 counterFlags: UnityProfilerCounterFlags,
1036 activateFunc: UnityProfilerCounterStatePtrCallback,
1037 deactivateFunc: UnityProfilerCounterStatePtrCallback,
1038 userData: *mut ::std::os::raw::c_void,
1039 ) -> *mut ::std::os::raw::c_void,
1040 >,
1041 pub FlushCounterValue:
1042 ::std::option::Option<unsafe extern "system" fn(counter: *mut ::std::os::raw::c_void)>,
1043}
1044#[allow(clippy::unnecessary_operation, clippy::identity_op)]
1045const _: () = {
1046 ["Size of IUnityProfilerV2"][::std::mem::size_of::<IUnityProfilerV2>() - 80usize];
1047 ["Alignment of IUnityProfilerV2"][::std::mem::align_of::<IUnityProfilerV2>() - 8usize];
1048 ["Offset of field: IUnityProfilerV2::EmitEvent"]
1049 [::std::mem::offset_of!(IUnityProfilerV2, EmitEvent) - 0usize];
1050 ["Offset of field: IUnityProfilerV2::IsEnabled"]
1051 [::std::mem::offset_of!(IUnityProfilerV2, IsEnabled) - 8usize];
1052 ["Offset of field: IUnityProfilerV2::IsAvailable"]
1053 [::std::mem::offset_of!(IUnityProfilerV2, IsAvailable) - 16usize];
1054 ["Offset of field: IUnityProfilerV2::CreateMarker"]
1055 [::std::mem::offset_of!(IUnityProfilerV2, CreateMarker) - 24usize];
1056 ["Offset of field: IUnityProfilerV2::SetMarkerMetadataName"]
1057 [::std::mem::offset_of!(IUnityProfilerV2, SetMarkerMetadataName) - 32usize];
1058 ["Offset of field: IUnityProfilerV2::CreateCategory"]
1059 [::std::mem::offset_of!(IUnityProfilerV2, CreateCategory) - 40usize];
1060 ["Offset of field: IUnityProfilerV2::RegisterThread"]
1061 [::std::mem::offset_of!(IUnityProfilerV2, RegisterThread) - 48usize];
1062 ["Offset of field: IUnityProfilerV2::UnregisterThread"]
1063 [::std::mem::offset_of!(IUnityProfilerV2, UnregisterThread) - 56usize];
1064 ["Offset of field: IUnityProfilerV2::CreateCounterValue"]
1065 [::std::mem::offset_of!(IUnityProfilerV2, CreateCounterValue) - 64usize];
1066 ["Offset of field: IUnityProfilerV2::FlushCounterValue"]
1067 [::std::mem::offset_of!(IUnityProfilerV2, FlushCounterValue) - 72usize];
1068};
1069#[repr(C)]
1070#[derive(Copy, Clone)]
1071pub struct UnityProfilerCounterValue {
1072 pub m_Value: *mut ::std::os::raw::c_void,
1073 pub m_Profiler: *mut IUnityProfilerV2,
1074}
1075#[allow(clippy::unnecessary_operation, clippy::identity_op)]
1076const _: () = {
1077 ["Size of UnityProfilerCounterValue"]
1078 [::std::mem::size_of::<UnityProfilerCounterValue>() - 16usize];
1079 ["Alignment of UnityProfilerCounterValue"]
1080 [::std::mem::align_of::<UnityProfilerCounterValue>() - 8usize];
1081 ["Offset of field: UnityProfilerCounterValue::m_Value"]
1082 [::std::mem::offset_of!(UnityProfilerCounterValue, m_Value) - 0usize];
1083 ["Offset of field: UnityProfilerCounterValue::m_Profiler"]
1084 [::std::mem::offset_of!(UnityProfilerCounterValue, m_Profiler) - 8usize];
1085};
1086impl Default for UnityProfilerCounterValue {
1087 fn default() -> Self {
1088 let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
1089 unsafe {
1090 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
1091 s.assume_init()
1092 }
1093 }
1094}
1095#[repr(C)]
1096#[derive(Copy, Clone)]
1097pub struct UnityProfilerCounter {
1098 pub _base: UnityProfilerCounterValue,
1099}
1100impl Default for UnityProfilerCounter {
1101 fn default() -> Self {
1102 let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
1103 unsafe {
1104 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
1105 s.assume_init()
1106 }
1107 }
1108}
1109#[repr(C)]
1110#[derive(Default, Copy, Clone)]
1111pub struct IUnityProfiler {
1112 pub EmitEvent: ::std::option::Option<
1113 unsafe extern "system" fn(
1114 markerDesc: *const UnityProfilerMarkerDesc,
1115 eventType: UnityProfilerMarkerEventType,
1116 eventDataCount: u16,
1117 eventData: *const UnityProfilerMarkerData,
1118 ),
1119 >,
1120 pub IsEnabled: ::std::option::Option<unsafe extern "system" fn() -> ::std::os::raw::c_int>,
1121 pub IsAvailable: ::std::option::Option<unsafe extern "system" fn() -> ::std::os::raw::c_int>,
1122 pub CreateMarker: ::std::option::Option<
1123 unsafe extern "system" fn(
1124 desc: *mut *const UnityProfilerMarkerDesc,
1125 name: *const ::std::os::raw::c_char,
1126 category: UnityProfilerCategoryId,
1127 flags: UnityProfilerMarkerFlags,
1128 eventDataCount: ::std::os::raw::c_int,
1129 ) -> ::std::os::raw::c_int,
1130 >,
1131 pub SetMarkerMetadataName: ::std::option::Option<
1132 unsafe extern "system" fn(
1133 desc: *const UnityProfilerMarkerDesc,
1134 index: ::std::os::raw::c_int,
1135 metadataName: *const ::std::os::raw::c_char,
1136 metadataType: UnityProfilerMarkerDataType,
1137 metadataUnit: UnityProfilerMarkerDataUnit,
1138 ) -> ::std::os::raw::c_int,
1139 >,
1140 pub RegisterThread: ::std::option::Option<
1141 unsafe extern "system" fn(
1142 threadId: *mut UnityProfilerThreadId,
1143 groupName: *const ::std::os::raw::c_char,
1144 name: *const ::std::os::raw::c_char,
1145 ) -> ::std::os::raw::c_int,
1146 >,
1147 pub UnregisterThread: ::std::option::Option<
1148 unsafe extern "system" fn(threadId: UnityProfilerThreadId) -> ::std::os::raw::c_int,
1149 >,
1150}
1151#[allow(clippy::unnecessary_operation, clippy::identity_op)]
1152const _: () = {
1153 ["Size of IUnityProfiler"][::std::mem::size_of::<IUnityProfiler>() - 56usize];
1154 ["Alignment of IUnityProfiler"][::std::mem::align_of::<IUnityProfiler>() - 8usize];
1155 ["Offset of field: IUnityProfiler::EmitEvent"]
1156 [::std::mem::offset_of!(IUnityProfiler, EmitEvent) - 0usize];
1157 ["Offset of field: IUnityProfiler::IsEnabled"]
1158 [::std::mem::offset_of!(IUnityProfiler, IsEnabled) - 8usize];
1159 ["Offset of field: IUnityProfiler::IsAvailable"]
1160 [::std::mem::offset_of!(IUnityProfiler, IsAvailable) - 16usize];
1161 ["Offset of field: IUnityProfiler::CreateMarker"]
1162 [::std::mem::offset_of!(IUnityProfiler, CreateMarker) - 24usize];
1163 ["Offset of field: IUnityProfiler::SetMarkerMetadataName"]
1164 [::std::mem::offset_of!(IUnityProfiler, SetMarkerMetadataName) - 32usize];
1165 ["Offset of field: IUnityProfiler::RegisterThread"]
1166 [::std::mem::offset_of!(IUnityProfiler, RegisterThread) - 40usize];
1167 ["Offset of field: IUnityProfiler::UnregisterThread"]
1168 [::std::mem::offset_of!(IUnityProfiler, UnregisterThread) - 48usize];
1169};
1170#[repr(C)]
1171#[derive(Copy, Clone)]
1172pub struct UnityProfilerThreadDesc {
1173 pub threadId: UnityProfilerThreadId,
1174 pub groupName: *const ::std::os::raw::c_char,
1175 pub name: *const ::std::os::raw::c_char,
1176}
1177#[allow(clippy::unnecessary_operation, clippy::identity_op)]
1178const _: () = {
1179 ["Size of UnityProfilerThreadDesc"][::std::mem::size_of::<UnityProfilerThreadDesc>() - 24usize];
1180 ["Alignment of UnityProfilerThreadDesc"]
1181 [::std::mem::align_of::<UnityProfilerThreadDesc>() - 8usize];
1182 ["Offset of field: UnityProfilerThreadDesc::threadId"]
1183 [::std::mem::offset_of!(UnityProfilerThreadDesc, threadId) - 0usize];
1184 ["Offset of field: UnityProfilerThreadDesc::groupName"]
1185 [::std::mem::offset_of!(UnityProfilerThreadDesc, groupName) - 8usize];
1186 ["Offset of field: UnityProfilerThreadDesc::name"]
1187 [::std::mem::offset_of!(UnityProfilerThreadDesc, name) - 16usize];
1188};
1189impl Default for UnityProfilerThreadDesc {
1190 fn default() -> Self {
1191 let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
1192 unsafe {
1193 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
1194 s.assume_init()
1195 }
1196 }
1197}
1198pub type IUnityProfilerCreateCategoryCallback = ::std::option::Option<
1199 unsafe extern "system" fn(
1200 categoryDesc: *const UnityProfilerCategoryDesc,
1201 userData: *mut ::std::os::raw::c_void,
1202 ),
1203>;
1204pub type IUnityProfilerCreateMarkerCallback = ::std::option::Option<
1205 unsafe extern "system" fn(
1206 markerDesc: *const UnityProfilerMarkerDesc,
1207 userData: *mut ::std::os::raw::c_void,
1208 ),
1209>;
1210pub type IUnityProfilerMarkerEventCallback = ::std::option::Option<
1211 unsafe extern "system" fn(
1212 markerDesc: *const UnityProfilerMarkerDesc,
1213 eventType: UnityProfilerMarkerEventType,
1214 eventDataCount: u16,
1215 eventData: *const UnityProfilerMarkerData,
1216 userData: *mut ::std::os::raw::c_void,
1217 ),
1218>;
1219pub type IUnityProfilerBulkCounterDataEventCallback = ::std::option::Option<
1220 unsafe extern "system" fn(
1221 counterGroup: ::std::os::raw::c_int,
1222 size: usize,
1223 data: *mut ::std::os::raw::c_void,
1224 userData: *mut ::std::os::raw::c_void,
1225 ),
1226>;
1227pub type IUnityProfilerFrameCallback =
1228 ::std::option::Option<unsafe extern "system" fn(userData: *mut ::std::os::raw::c_void)>;
1229pub type IUnityProfilerThreadCallback = ::std::option::Option<
1230 unsafe extern "system" fn(
1231 threadDesc: *const UnityProfilerThreadDesc,
1232 userData: *mut ::std::os::raw::c_void,
1233 ),
1234>;
1235pub type IUnityProfilerFlowEventCallback = ::std::option::Option<
1236 unsafe extern "system" fn(
1237 flowEventType: UnityProfilerFlowEventType,
1238 flowId: u32,
1239 userData: *mut ::std::os::raw::c_void,
1240 ),
1241>;
1242#[repr(C)]
1243#[derive(Default, Copy, Clone)]
1244pub struct IUnityProfilerCallbacksV2 {
1245 pub RegisterCreateCategoryCallback: ::std::option::Option<
1246 unsafe extern "system" fn(
1247 callback: IUnityProfilerCreateCategoryCallback,
1248 userData: *mut ::std::os::raw::c_void,
1249 ) -> ::std::os::raw::c_int,
1250 >,
1251 pub UnregisterCreateCategoryCallback: ::std::option::Option<
1252 unsafe extern "system" fn(
1253 callback: IUnityProfilerCreateCategoryCallback,
1254 userData: *mut ::std::os::raw::c_void,
1255 ) -> ::std::os::raw::c_int,
1256 >,
1257 pub RegisterCreateMarkerCallback: ::std::option::Option<
1258 unsafe extern "system" fn(
1259 callback: IUnityProfilerCreateMarkerCallback,
1260 userData: *mut ::std::os::raw::c_void,
1261 ) -> ::std::os::raw::c_int,
1262 >,
1263 pub UnregisterCreateMarkerCallback: ::std::option::Option<
1264 unsafe extern "system" fn(
1265 callback: IUnityProfilerCreateMarkerCallback,
1266 userData: *mut ::std::os::raw::c_void,
1267 ) -> ::std::os::raw::c_int,
1268 >,
1269 pub RegisterMarkerEventCallback: ::std::option::Option<
1270 unsafe extern "system" fn(
1271 markerDesc: *const UnityProfilerMarkerDesc,
1272 callback: IUnityProfilerMarkerEventCallback,
1273 userData: *mut ::std::os::raw::c_void,
1274 ) -> ::std::os::raw::c_int,
1275 >,
1276 pub UnregisterMarkerEventCallback: ::std::option::Option<
1277 unsafe extern "system" fn(
1278 markerDesc: *const UnityProfilerMarkerDesc,
1279 callback: IUnityProfilerMarkerEventCallback,
1280 userData: *mut ::std::os::raw::c_void,
1281 ) -> ::std::os::raw::c_int,
1282 >,
1283 pub RegisterFrameCallback: ::std::option::Option<
1284 unsafe extern "system" fn(
1285 callback: IUnityProfilerFrameCallback,
1286 userData: *mut ::std::os::raw::c_void,
1287 ) -> ::std::os::raw::c_int,
1288 >,
1289 pub UnregisterFrameCallback: ::std::option::Option<
1290 unsafe extern "system" fn(
1291 callback: IUnityProfilerFrameCallback,
1292 userData: *mut ::std::os::raw::c_void,
1293 ) -> ::std::os::raw::c_int,
1294 >,
1295 pub RegisterCreateThreadCallback: ::std::option::Option<
1296 unsafe extern "system" fn(
1297 callback: IUnityProfilerThreadCallback,
1298 userData: *mut ::std::os::raw::c_void,
1299 ) -> ::std::os::raw::c_int,
1300 >,
1301 pub UnregisterCreateThreadCallback: ::std::option::Option<
1302 unsafe extern "system" fn(
1303 callback: IUnityProfilerThreadCallback,
1304 userData: *mut ::std::os::raw::c_void,
1305 ) -> ::std::os::raw::c_int,
1306 >,
1307 pub RegisterFlowEventCallback: ::std::option::Option<
1308 unsafe extern "system" fn(
1309 callback: IUnityProfilerFlowEventCallback,
1310 userData: *mut ::std::os::raw::c_void,
1311 ) -> ::std::os::raw::c_int,
1312 >,
1313 pub UnregisterFlowEventCallback: ::std::option::Option<
1314 unsafe extern "system" fn(
1315 callback: IUnityProfilerFlowEventCallback,
1316 userData: *mut ::std::os::raw::c_void,
1317 ) -> ::std::os::raw::c_int,
1318 >,
1319}
1320#[allow(clippy::unnecessary_operation, clippy::identity_op)]
1321const _: () = {
1322 ["Size of IUnityProfilerCallbacksV2"]
1323 [::std::mem::size_of::<IUnityProfilerCallbacksV2>() - 96usize];
1324 ["Alignment of IUnityProfilerCallbacksV2"]
1325 [::std::mem::align_of::<IUnityProfilerCallbacksV2>() - 8usize];
1326 ["Offset of field: IUnityProfilerCallbacksV2::RegisterCreateCategoryCallback"][::std::mem::offset_of!(
1327 IUnityProfilerCallbacksV2,
1328 RegisterCreateCategoryCallback
1329 ) - 0usize];
1330 ["Offset of field: IUnityProfilerCallbacksV2::UnregisterCreateCategoryCallback"][::std::mem::offset_of!(
1331 IUnityProfilerCallbacksV2,
1332 UnregisterCreateCategoryCallback
1333 ) - 8usize];
1334 ["Offset of field: IUnityProfilerCallbacksV2::RegisterCreateMarkerCallback"]
1335 [::std::mem::offset_of!(IUnityProfilerCallbacksV2, RegisterCreateMarkerCallback) - 16usize];
1336 ["Offset of field: IUnityProfilerCallbacksV2::UnregisterCreateMarkerCallback"][::std::mem::offset_of!(
1337 IUnityProfilerCallbacksV2,
1338 UnregisterCreateMarkerCallback
1339 ) - 24usize];
1340 ["Offset of field: IUnityProfilerCallbacksV2::RegisterMarkerEventCallback"]
1341 [::std::mem::offset_of!(IUnityProfilerCallbacksV2, RegisterMarkerEventCallback) - 32usize];
1342 ["Offset of field: IUnityProfilerCallbacksV2::UnregisterMarkerEventCallback"][::std::mem::offset_of!(
1343 IUnityProfilerCallbacksV2,
1344 UnregisterMarkerEventCallback
1345 ) - 40usize];
1346 ["Offset of field: IUnityProfilerCallbacksV2::RegisterFrameCallback"]
1347 [::std::mem::offset_of!(IUnityProfilerCallbacksV2, RegisterFrameCallback) - 48usize];
1348 ["Offset of field: IUnityProfilerCallbacksV2::UnregisterFrameCallback"]
1349 [::std::mem::offset_of!(IUnityProfilerCallbacksV2, UnregisterFrameCallback) - 56usize];
1350 ["Offset of field: IUnityProfilerCallbacksV2::RegisterCreateThreadCallback"]
1351 [::std::mem::offset_of!(IUnityProfilerCallbacksV2, RegisterCreateThreadCallback) - 64usize];
1352 ["Offset of field: IUnityProfilerCallbacksV2::UnregisterCreateThreadCallback"][::std::mem::offset_of!(
1353 IUnityProfilerCallbacksV2,
1354 UnregisterCreateThreadCallback
1355 ) - 72usize];
1356 ["Offset of field: IUnityProfilerCallbacksV2::RegisterFlowEventCallback"]
1357 [::std::mem::offset_of!(IUnityProfilerCallbacksV2, RegisterFlowEventCallback) - 80usize];
1358 ["Offset of field: IUnityProfilerCallbacksV2::UnregisterFlowEventCallback"]
1359 [::std::mem::offset_of!(IUnityProfilerCallbacksV2, UnregisterFlowEventCallback) - 88usize];
1360};
1361#[repr(C)]
1362#[derive(Default, Copy, Clone)]
1363pub struct IUnityProfilerCallbacks {
1364 pub RegisterCreateCategoryCallback: ::std::option::Option<
1365 unsafe extern "system" fn(
1366 callback: IUnityProfilerCreateCategoryCallback,
1367 userData: *mut ::std::os::raw::c_void,
1368 ) -> ::std::os::raw::c_int,
1369 >,
1370 pub UnregisterCreateCategoryCallback: ::std::option::Option<
1371 unsafe extern "system" fn(
1372 callback: IUnityProfilerCreateCategoryCallback,
1373 userData: *mut ::std::os::raw::c_void,
1374 ) -> ::std::os::raw::c_int,
1375 >,
1376 pub RegisterCreateMarkerCallback: ::std::option::Option<
1377 unsafe extern "system" fn(
1378 callback: IUnityProfilerCreateMarkerCallback,
1379 userData: *mut ::std::os::raw::c_void,
1380 ) -> ::std::os::raw::c_int,
1381 >,
1382 pub UnregisterCreateMarkerCallback: ::std::option::Option<
1383 unsafe extern "system" fn(
1384 callback: IUnityProfilerCreateMarkerCallback,
1385 userData: *mut ::std::os::raw::c_void,
1386 ) -> ::std::os::raw::c_int,
1387 >,
1388 pub RegisterMarkerEventCallback: ::std::option::Option<
1389 unsafe extern "system" fn(
1390 markerDesc: *const UnityProfilerMarkerDesc,
1391 callback: IUnityProfilerMarkerEventCallback,
1392 userData: *mut ::std::os::raw::c_void,
1393 ) -> ::std::os::raw::c_int,
1394 >,
1395 pub UnregisterMarkerEventCallback: ::std::option::Option<
1396 unsafe extern "system" fn(
1397 markerDesc: *const UnityProfilerMarkerDesc,
1398 callback: IUnityProfilerMarkerEventCallback,
1399 userData: *mut ::std::os::raw::c_void,
1400 ) -> ::std::os::raw::c_int,
1401 >,
1402 pub RegisterFrameCallback: ::std::option::Option<
1403 unsafe extern "system" fn(
1404 callback: IUnityProfilerFrameCallback,
1405 userData: *mut ::std::os::raw::c_void,
1406 ) -> ::std::os::raw::c_int,
1407 >,
1408 pub UnregisterFrameCallback: ::std::option::Option<
1409 unsafe extern "system" fn(
1410 callback: IUnityProfilerFrameCallback,
1411 userData: *mut ::std::os::raw::c_void,
1412 ) -> ::std::os::raw::c_int,
1413 >,
1414 pub RegisterCreateThreadCallback: ::std::option::Option<
1415 unsafe extern "system" fn(
1416 callback: IUnityProfilerThreadCallback,
1417 userData: *mut ::std::os::raw::c_void,
1418 ) -> ::std::os::raw::c_int,
1419 >,
1420 pub UnregisterCreateThreadCallback: ::std::option::Option<
1421 unsafe extern "system" fn(
1422 callback: IUnityProfilerThreadCallback,
1423 userData: *mut ::std::os::raw::c_void,
1424 ) -> ::std::os::raw::c_int,
1425 >,
1426}
1427#[allow(clippy::unnecessary_operation, clippy::identity_op)]
1428const _: () = {
1429 ["Size of IUnityProfilerCallbacks"][::std::mem::size_of::<IUnityProfilerCallbacks>() - 80usize];
1430 ["Alignment of IUnityProfilerCallbacks"]
1431 [::std::mem::align_of::<IUnityProfilerCallbacks>() - 8usize];
1432 ["Offset of field: IUnityProfilerCallbacks::RegisterCreateCategoryCallback"]
1433 [::std::mem::offset_of!(IUnityProfilerCallbacks, RegisterCreateCategoryCallback) - 0usize];
1434 ["Offset of field: IUnityProfilerCallbacks::UnregisterCreateCategoryCallback"][::std::mem::offset_of!(
1435 IUnityProfilerCallbacks,
1436 UnregisterCreateCategoryCallback
1437 ) - 8usize];
1438 ["Offset of field: IUnityProfilerCallbacks::RegisterCreateMarkerCallback"]
1439 [::std::mem::offset_of!(IUnityProfilerCallbacks, RegisterCreateMarkerCallback) - 16usize];
1440 ["Offset of field: IUnityProfilerCallbacks::UnregisterCreateMarkerCallback"]
1441 [::std::mem::offset_of!(IUnityProfilerCallbacks, UnregisterCreateMarkerCallback) - 24usize];
1442 ["Offset of field: IUnityProfilerCallbacks::RegisterMarkerEventCallback"]
1443 [::std::mem::offset_of!(IUnityProfilerCallbacks, RegisterMarkerEventCallback) - 32usize];
1444 ["Offset of field: IUnityProfilerCallbacks::UnregisterMarkerEventCallback"]
1445 [::std::mem::offset_of!(IUnityProfilerCallbacks, UnregisterMarkerEventCallback) - 40usize];
1446 ["Offset of field: IUnityProfilerCallbacks::RegisterFrameCallback"]
1447 [::std::mem::offset_of!(IUnityProfilerCallbacks, RegisterFrameCallback) - 48usize];
1448 ["Offset of field: IUnityProfilerCallbacks::UnregisterFrameCallback"]
1449 [::std::mem::offset_of!(IUnityProfilerCallbacks, UnregisterFrameCallback) - 56usize];
1450 ["Offset of field: IUnityProfilerCallbacks::RegisterCreateThreadCallback"]
1451 [::std::mem::offset_of!(IUnityProfilerCallbacks, RegisterCreateThreadCallback) - 64usize];
1452 ["Offset of field: IUnityProfilerCallbacks::UnregisterCreateThreadCallback"]
1453 [::std::mem::offset_of!(IUnityProfilerCallbacks, UnregisterCreateThreadCallback) - 72usize];
1454};
1455#[repr(C)]
1456#[derive(Copy, Clone)]
1457pub struct PluginAllocator {
1458 _unused: [u8; 0],
1459}
1460pub type UnityAllocator = PluginAllocator;
1461#[repr(C)]
1462#[derive(Default, Copy, Clone)]
1463pub struct IUnityMemoryManager {
1464 pub CreateAllocator: ::std::option::Option<
1465 unsafe extern "system" fn(
1466 areaName: *const ::std::os::raw::c_char,
1467 objectName: *const ::std::os::raw::c_char,
1468 ) -> *mut UnityAllocator,
1469 >,
1470 pub DestroyAllocator:
1471 ::std::option::Option<unsafe extern "system" fn(allocator: *mut UnityAllocator)>,
1472 pub Allocate: ::std::option::Option<
1473 unsafe extern "system" fn(
1474 allocator: *mut UnityAllocator,
1475 size: usize,
1476 align: usize,
1477 file: *const ::std::os::raw::c_char,
1478 line: i32,
1479 ) -> *mut ::std::os::raw::c_void,
1480 >,
1481 pub Deallocate: ::std::option::Option<
1482 unsafe extern "system" fn(
1483 allocator: *mut UnityAllocator,
1484 ptr: *mut ::std::os::raw::c_void,
1485 file: *const ::std::os::raw::c_char,
1486 line: i32,
1487 ),
1488 >,
1489 pub Reallocate: ::std::option::Option<
1490 unsafe extern "system" fn(
1491 allocator: *mut UnityAllocator,
1492 ptr: *mut ::std::os::raw::c_void,
1493 size: usize,
1494 align: usize,
1495 file: *const ::std::os::raw::c_char,
1496 line: i32,
1497 ) -> *mut ::std::os::raw::c_void,
1498 >,
1499}
1500#[allow(clippy::unnecessary_operation, clippy::identity_op)]
1501const _: () = {
1502 ["Size of IUnityMemoryManager"][::std::mem::size_of::<IUnityMemoryManager>() - 40usize];
1503 ["Alignment of IUnityMemoryManager"][::std::mem::align_of::<IUnityMemoryManager>() - 8usize];
1504 ["Offset of field: IUnityMemoryManager::CreateAllocator"]
1505 [::std::mem::offset_of!(IUnityMemoryManager, CreateAllocator) - 0usize];
1506 ["Offset of field: IUnityMemoryManager::DestroyAllocator"]
1507 [::std::mem::offset_of!(IUnityMemoryManager, DestroyAllocator) - 8usize];
1508 ["Offset of field: IUnityMemoryManager::Allocate"]
1509 [::std::mem::offset_of!(IUnityMemoryManager, Allocate) - 16usize];
1510 ["Offset of field: IUnityMemoryManager::Deallocate"]
1511 [::std::mem::offset_of!(IUnityMemoryManager, Deallocate) - 24usize];
1512 ["Offset of field: IUnityMemoryManager::Reallocate"]
1513 [::std::mem::offset_of!(IUnityMemoryManager, Reallocate) - 32usize];
1514};
1515#[repr(C)]
1516#[derive(Default, Copy, Clone)]
1517pub struct UnityEventQueue_EventId {
1518 pub mGUIDHigh: ::std::os::raw::c_ulonglong,
1519 pub mGUIDLow: ::std::os::raw::c_ulonglong,
1520}
1521#[allow(clippy::unnecessary_operation, clippy::identity_op)]
1522const _: () = {
1523 ["Size of UnityEventQueue_EventId"][::std::mem::size_of::<UnityEventQueue_EventId>() - 16usize];
1524 ["Alignment of UnityEventQueue_EventId"]
1525 [::std::mem::align_of::<UnityEventQueue_EventId>() - 8usize];
1526 ["Offset of field: UnityEventQueue_EventId::mGUIDHigh"]
1527 [::std::mem::offset_of!(UnityEventQueue_EventId, mGUIDHigh) - 0usize];
1528 ["Offset of field: UnityEventQueue_EventId::mGUIDLow"]
1529 [::std::mem::offset_of!(UnityEventQueue_EventId, mGUIDLow) - 8usize];
1530};
1531#[repr(C)]
1532#[derive(Copy, Clone)]
1533pub struct UnityEventQueue_EventQueue {
1534 _unused: [u8; 0],
1535}
1536#[repr(C)]
1537pub struct UnityEventQueue_EventHandler__bindgen_vtable(::std::os::raw::c_void);
1538#[repr(C)]
1539pub struct UnityEventQueue_EventHandler {
1540 pub vtable_: *const UnityEventQueue_EventHandler__bindgen_vtable,
1541 pub m_Next: *mut UnityEventQueue_EventHandler,
1542}
1543#[allow(clippy::unnecessary_operation, clippy::identity_op)]
1544const _: () = {
1545 ["Size of UnityEventQueue_EventHandler"]
1546 [::std::mem::size_of::<UnityEventQueue_EventHandler>() - 16usize];
1547 ["Alignment of UnityEventQueue_EventHandler"]
1548 [::std::mem::align_of::<UnityEventQueue_EventHandler>() - 8usize];
1549 ["Offset of field: UnityEventQueue_EventHandler::m_Next"]
1550 [::std::mem::offset_of!(UnityEventQueue_EventHandler, m_Next) - 8usize];
1551};
1552impl Default for UnityEventQueue_EventHandler {
1553 fn default() -> Self {
1554 let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
1555 unsafe {
1556 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
1557 s.assume_init()
1558 }
1559 }
1560}
1561#[repr(C)]
1562pub struct UnityEventQueue_ClassBasedEventHandler<OBJECTTYPE> {
1563 pub _phantom_0: ::std::marker::PhantomData<::std::cell::UnsafeCell<OBJECTTYPE>>,
1564 pub _base: UnityEventQueue_EventHandler,
1565 pub m_Handler: *mut OBJECTTYPE,
1566}
1567impl<OBJECTTYPE> Default for UnityEventQueue_ClassBasedEventHandler<OBJECTTYPE> {
1568 fn default() -> Self {
1569 let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
1570 unsafe {
1571 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
1572 s.assume_init()
1573 }
1574 }
1575}
1576#[repr(C)]
1577pub struct UnityEventQueue_StaticFunctionEventHandler<EVENTTYPE> {
1578 pub _phantom_0: ::std::marker::PhantomData<::std::cell::UnsafeCell<EVENTTYPE>>,
1579 pub _base: UnityEventQueue_EventHandler,
1580 pub m_Handler: UnityEventQueue_StaticFunctionEventHandler_HandlerFunction<EVENTTYPE>,
1581}
1582pub type UnityEventQueue_StaticFunctionEventHandler_HandlerFunction<EVENTTYPE> =
1583 ::std::option::Option<unsafe extern "system" fn(payload: *const EVENTTYPE)>;
1584impl<EVENTTYPE> Default for UnityEventQueue_StaticFunctionEventHandler<EVENTTYPE> {
1585 fn default() -> Self {
1586 let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
1587 unsafe {
1588 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
1589 s.assume_init()
1590 }
1591 }
1592}
1593#[repr(C)]
1594#[derive(Copy, Clone)]
1595pub struct UnityEventQueue_AddEventHandler {
1596 pub m_Handler: *mut UnityEventQueue_EventHandler,
1597}
1598#[allow(clippy::unnecessary_operation, clippy::identity_op)]
1599const _: () = {
1600 ["Size of UnityEventQueue_AddEventHandler"]
1601 [::std::mem::size_of::<UnityEventQueue_AddEventHandler>() - 8usize];
1602 ["Alignment of UnityEventQueue_AddEventHandler"]
1603 [::std::mem::align_of::<UnityEventQueue_AddEventHandler>() - 8usize];
1604 ["Offset of field: UnityEventQueue_AddEventHandler::m_Handler"]
1605 [::std::mem::offset_of!(UnityEventQueue_AddEventHandler, m_Handler) - 0usize];
1606};
1607impl Default for UnityEventQueue_AddEventHandler {
1608 fn default() -> Self {
1609 let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
1610 unsafe {
1611 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
1612 s.assume_init()
1613 }
1614 }
1615}
1616#[repr(C)]
1617#[derive(Copy, Clone)]
1618pub struct UnityEventQueue_RemoveEventHandler {
1619 pub m_Handler: *mut UnityEventQueue_EventHandler,
1620}
1621#[allow(clippy::unnecessary_operation, clippy::identity_op)]
1622const _: () = {
1623 ["Size of UnityEventQueue_RemoveEventHandler"]
1624 [::std::mem::size_of::<UnityEventQueue_RemoveEventHandler>() - 8usize];
1625 ["Alignment of UnityEventQueue_RemoveEventHandler"]
1626 [::std::mem::align_of::<UnityEventQueue_RemoveEventHandler>() - 8usize];
1627 ["Offset of field: UnityEventQueue_RemoveEventHandler::m_Handler"]
1628 [::std::mem::offset_of!(UnityEventQueue_RemoveEventHandler, m_Handler) - 0usize];
1629};
1630impl Default for UnityEventQueue_RemoveEventHandler {
1631 fn default() -> Self {
1632 let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
1633 unsafe {
1634 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
1635 s.assume_init()
1636 }
1637 }
1638}
1639#[repr(C)]
1640pub struct UnityEventQueue_IUnityEventQueue__bindgen_vtable(::std::os::raw::c_void);
1641#[repr(C)]
1642pub struct UnityEventQueue_IUnityEventQueue {
1643 pub vtable_: *const UnityEventQueue_IUnityEventQueue__bindgen_vtable,
1644}
1645#[allow(clippy::unnecessary_operation, clippy::identity_op)]
1646const _: () = {
1647 ["Size of UnityEventQueue_IUnityEventQueue"]
1648 [::std::mem::size_of::<UnityEventQueue_IUnityEventQueue>() - 8usize];
1649 ["Alignment of UnityEventQueue_IUnityEventQueue"]
1650 [::std::mem::align_of::<UnityEventQueue_IUnityEventQueue>() - 8usize];
1651};
1652impl Default for UnityEventQueue_IUnityEventQueue {
1653 fn default() -> Self {
1654 let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
1655 unsafe {
1656 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
1657 s.assume_init()
1658 }
1659 }
1660}
1661unsafe extern "system" {
1662 #[link_name = "\u{1}__ZL21IUnityEventQueue_GUID"]
1663 pub static IUnityEventQueue_GUID: UnityInterfaceGUID;
1664}
1665#[doc = " UnityLogType used for Errors."]
1666pub const UnityLogType_kUnityLogTypeError: UnityLogType = 0;
1667#[doc = " UnityLogType used for Warnings."]
1668pub const UnityLogType_kUnityLogTypeWarning: UnityLogType = 2;
1669#[doc = " UnityLogType used for regular log messages."]
1670pub const UnityLogType_kUnityLogTypeLog: UnityLogType = 3;
1671#[doc = " UnityLogType used for Exceptions."]
1672pub const UnityLogType_kUnityLogTypeException: UnityLogType = 4;
1673#[doc = " The type of the log message"]
1674pub type UnityLogType = ::std::os::raw::c_uint;
1675#[repr(C)]
1676#[derive(Default, Copy, Clone)]
1677pub struct IUnityLog {
1678 pub Log: ::std::option::Option<
1679 unsafe extern "system" fn(
1680 type_: UnityLogType,
1681 message: *const ::std::os::raw::c_char,
1682 fileName: *const ::std::os::raw::c_char,
1683 fileLine: ::std::os::raw::c_int,
1684 ),
1685 >,
1686}
1687#[allow(clippy::unnecessary_operation, clippy::identity_op)]
1688const _: () = {
1689 ["Size of IUnityLog"][::std::mem::size_of::<IUnityLog>() - 8usize];
1690 ["Alignment of IUnityLog"][::std::mem::align_of::<IUnityLog>() - 8usize];
1691 ["Offset of field: IUnityLog::Log"][::std::mem::offset_of!(IUnityLog, Log) - 0usize];
1692};
1693pub const UnityShaderCompilerExtCompilerPlatform_kUnityShaderCompilerExtCompPlatformUnused0:
1694 UnityShaderCompilerExtCompilerPlatform = 0;
1695pub const UnityShaderCompilerExtCompilerPlatform_kUnityShaderCompilerExtCompPlatformUnused1:
1696 UnityShaderCompilerExtCompilerPlatform = 1;
1697pub const UnityShaderCompilerExtCompilerPlatform_kUnityShaderCompilerExtCompPlatformUnused2:
1698 UnityShaderCompilerExtCompilerPlatform = 2;
1699pub const UnityShaderCompilerExtCompilerPlatform_kUnityShaderCompilerExtCompPlatformUnused3:
1700 UnityShaderCompilerExtCompilerPlatform = 3;
1701pub const UnityShaderCompilerExtCompilerPlatform_kUnityShaderCompilerExtCompPlatformD3D11:
1702 UnityShaderCompilerExtCompilerPlatform = 4;
1703pub const UnityShaderCompilerExtCompilerPlatform_kUnityShaderCompilerExtCompPlatformUnused5:
1704 UnityShaderCompilerExtCompilerPlatform = 5;
1705pub const UnityShaderCompilerExtCompilerPlatform_kUnityShaderCompilerExtCompPlatformUnused6:
1706 UnityShaderCompilerExtCompilerPlatform = 6;
1707pub const UnityShaderCompilerExtCompilerPlatform_kUnityShaderCompilerExtCompPlatformUnused7:
1708 UnityShaderCompilerExtCompilerPlatform = 7;
1709pub const UnityShaderCompilerExtCompilerPlatform_kUnityShaderCompilerExtCompPlatformUnused8:
1710 UnityShaderCompilerExtCompilerPlatform = 8;
1711pub const UnityShaderCompilerExtCompilerPlatform_kUnityShaderCompilerExtCompPlatformGLES3Plus:
1712 UnityShaderCompilerExtCompilerPlatform = 9;
1713pub const UnityShaderCompilerExtCompilerPlatform_kUnityShaderCompilerExtCompPlatformUnused10:
1714 UnityShaderCompilerExtCompilerPlatform = 10;
1715pub const UnityShaderCompilerExtCompilerPlatform_kUnityShaderCompilerExtCompPlatformPS4:
1716 UnityShaderCompilerExtCompilerPlatform = 11;
1717pub const UnityShaderCompilerExtCompilerPlatform_kUnityShaderCompilerExtCompPlatformXboxOne:
1718 UnityShaderCompilerExtCompilerPlatform = 12;
1719pub const UnityShaderCompilerExtCompilerPlatform_kUnityShaderCompilerExtCompPlatformUnused13:
1720 UnityShaderCompilerExtCompilerPlatform = 13;
1721pub const UnityShaderCompilerExtCompilerPlatform_kUnityShaderCompilerExtCompPlatformMetal:
1722 UnityShaderCompilerExtCompilerPlatform = 14;
1723pub const UnityShaderCompilerExtCompilerPlatform_kUnityShaderCompilerExtCompPlatformOpenGLCore:
1724 UnityShaderCompilerExtCompilerPlatform = 15;
1725pub const UnityShaderCompilerExtCompilerPlatform_kUnityShaderCompilerExtCompPlatformUnused16:
1726 UnityShaderCompilerExtCompilerPlatform = 16;
1727pub const UnityShaderCompilerExtCompilerPlatform_kUnityShaderCompilerExtCompPlatformUnused17:
1728 UnityShaderCompilerExtCompilerPlatform = 17;
1729pub const UnityShaderCompilerExtCompilerPlatform_kUnityShaderCompilerExtCompPlatformVulkan:
1730 UnityShaderCompilerExtCompilerPlatform = 18;
1731pub const UnityShaderCompilerExtCompilerPlatform_kUnityShaderCompilerExtCompPlatformSwitch:
1732 UnityShaderCompilerExtCompilerPlatform = 19;
1733pub const UnityShaderCompilerExtCompilerPlatform_kUnityShaderCompilerExtCompPlatformXboxOneD3D12:
1734 UnityShaderCompilerExtCompilerPlatform = 20;
1735pub const UnityShaderCompilerExtCompilerPlatform_kUnityShaderCompilerExtCompPlatformGameCoreXboxOne : UnityShaderCompilerExtCompilerPlatform = 21 ;
1736pub const UnityShaderCompilerExtCompilerPlatform_kUnityShaderCompilerExtCompPlatformGameCoreXboxSeries : UnityShaderCompilerExtCompilerPlatform = 22 ;
1737pub const UnityShaderCompilerExtCompilerPlatform_kUnityShaderCompilerExtCompPlatformPS5:
1738 UnityShaderCompilerExtCompilerPlatform = 23;
1739pub const UnityShaderCompilerExtCompilerPlatform_kUnityShaderCompilerExtCompPlatformPS5NGGC:
1740 UnityShaderCompilerExtCompilerPlatform = 24;
1741pub const UnityShaderCompilerExtCompilerPlatform_kUnityShaderCompilerExtCompPlatformUnused25:
1742 UnityShaderCompilerExtCompilerPlatform = 25;
1743pub const UnityShaderCompilerExtCompilerPlatform_kUnityShaderCompilerExtCompPlatformWebGPU:
1744 UnityShaderCompilerExtCompilerPlatform = 26;
1745pub const UnityShaderCompilerExtCompilerPlatform_kUnityShaderCompilerExtCompPlatformSwitch2:
1746 UnityShaderCompilerExtCompilerPlatform = 27;
1747pub const UnityShaderCompilerExtCompilerPlatform_kUnityShaderCompilerExtCompPlatformCount:
1748 UnityShaderCompilerExtCompilerPlatform = 28;
1749pub type UnityShaderCompilerExtCompilerPlatform = ::std::os::raw::c_uint;
1750pub const UnityShaderCompilerExtShaderType_kUnityShaderCompilerExtShaderNone:
1751 UnityShaderCompilerExtShaderType = 0;
1752pub const UnityShaderCompilerExtShaderType_kUnityShaderCompilerExtShaderVertex:
1753 UnityShaderCompilerExtShaderType = 1;
1754pub const UnityShaderCompilerExtShaderType_kUnityShaderCompilerExtShaderFragment:
1755 UnityShaderCompilerExtShaderType = 2;
1756pub const UnityShaderCompilerExtShaderType_kUnityShaderCompilerExtShaderGeometry:
1757 UnityShaderCompilerExtShaderType = 3;
1758pub const UnityShaderCompilerExtShaderType_kUnityShaderCompilerExtShaderHull:
1759 UnityShaderCompilerExtShaderType = 4;
1760pub const UnityShaderCompilerExtShaderType_kUnityShaderCompilerExtShaderDomain:
1761 UnityShaderCompilerExtShaderType = 5;
1762pub const UnityShaderCompilerExtShaderType_kUnityShaderCompilerExtShaderRayTracing:
1763 UnityShaderCompilerExtShaderType = 6;
1764pub const UnityShaderCompilerExtShaderType_kUnityShaderCompilerExtShaderTypeCount:
1765 UnityShaderCompilerExtShaderType = 7;
1766pub type UnityShaderCompilerExtShaderType = ::std::os::raw::c_uint;
1767pub const UnityShaderCompilerExtGPUProgramType_kUnityShaderCompilerExtGPUProgramTargetUnknown:
1768 UnityShaderCompilerExtGPUProgramType = 0;
1769pub const UnityShaderCompilerExtGPUProgramType_kUnityShaderCompilerExtGPUProgramTargetGLLegacy:
1770 UnityShaderCompilerExtGPUProgramType = 1;
1771pub const UnityShaderCompilerExtGPUProgramType_kUnityShaderCompilerExtGPUProgramTargetGLES31AEP:
1772 UnityShaderCompilerExtGPUProgramType = 2;
1773pub const UnityShaderCompilerExtGPUProgramType_kUnityShaderCompilerExtGPUProgramTargetGLES31:
1774 UnityShaderCompilerExtGPUProgramType = 3;
1775pub const UnityShaderCompilerExtGPUProgramType_kUnityShaderCompilerExtGPUProgramTargetGLES3:
1776 UnityShaderCompilerExtGPUProgramType = 4;
1777pub const UnityShaderCompilerExtGPUProgramType_kUnityShaderCompilerExtGPUProgramTargetGLES:
1778 UnityShaderCompilerExtGPUProgramType = 5;
1779pub const UnityShaderCompilerExtGPUProgramType_kUnityShaderCompilerExtGPUProgramTargetGLCore32:
1780 UnityShaderCompilerExtGPUProgramType = 6;
1781pub const UnityShaderCompilerExtGPUProgramType_kUnityShaderCompilerExtGPUProgramTargetGLCore41:
1782 UnityShaderCompilerExtGPUProgramType = 7;
1783pub const UnityShaderCompilerExtGPUProgramType_kUnityShaderCompilerExtGPUProgramTargetGLCore43:
1784 UnityShaderCompilerExtGPUProgramType = 8;
1785pub const UnityShaderCompilerExtGPUProgramType_kUnityShaderCompilerExtGPUProgramTargetDX9VertexSM20 : UnityShaderCompilerExtGPUProgramType = 9 ;
1786pub const UnityShaderCompilerExtGPUProgramType_kUnityShaderCompilerExtGPUProgramTargetDX9VertexSM30 : UnityShaderCompilerExtGPUProgramType = 10 ;
1787pub const UnityShaderCompilerExtGPUProgramType_kUnityShaderCompilerExtGPUProgramTargetDX9PixelSM20 : UnityShaderCompilerExtGPUProgramType = 11 ;
1788pub const UnityShaderCompilerExtGPUProgramType_kUnityShaderCompilerExtGPUProgramTargetDX9PixelSM30 : UnityShaderCompilerExtGPUProgramType = 12 ;
1789pub const UnityShaderCompilerExtGPUProgramType_kUnityShaderCompilerExtGPUProgramTargetDX10Level9Vertex : UnityShaderCompilerExtGPUProgramType = 13 ;
1790pub const UnityShaderCompilerExtGPUProgramType_kUnityShaderCompilerExtGPUProgramTargetDX10Level9Pixel : UnityShaderCompilerExtGPUProgramType = 14 ;
1791pub const UnityShaderCompilerExtGPUProgramType_kUnityShaderCompilerExtGPUProgramTargetDX11VertexSM40 : UnityShaderCompilerExtGPUProgramType = 15 ;
1792pub const UnityShaderCompilerExtGPUProgramType_kUnityShaderCompilerExtGPUProgramTargetDX11VertexSM50 : UnityShaderCompilerExtGPUProgramType = 16 ;
1793pub const UnityShaderCompilerExtGPUProgramType_kUnityShaderCompilerExtGPUProgramTargetDX11PixelSM40 : UnityShaderCompilerExtGPUProgramType = 17 ;
1794pub const UnityShaderCompilerExtGPUProgramType_kUnityShaderCompilerExtGPUProgramTargetDX11PixelSM50 : UnityShaderCompilerExtGPUProgramType = 18 ;
1795pub const UnityShaderCompilerExtGPUProgramType_kUnityShaderCompilerExtGPUProgramTargetDX11GeometrySM40 : UnityShaderCompilerExtGPUProgramType = 19 ;
1796pub const UnityShaderCompilerExtGPUProgramType_kUnityShaderCompilerExtGPUProgramTargetDX11GeometrySM50 : UnityShaderCompilerExtGPUProgramType = 20 ;
1797pub const UnityShaderCompilerExtGPUProgramType_kUnityShaderCompilerExtGPUProgramTargetDX11HullSM50 : UnityShaderCompilerExtGPUProgramType = 21 ;
1798pub const UnityShaderCompilerExtGPUProgramType_kUnityShaderCompilerExtGPUProgramTargetDX11DomainSM50 : UnityShaderCompilerExtGPUProgramType = 22 ;
1799pub const UnityShaderCompilerExtGPUProgramType_kUnityShaderCompilerExtGPUProgramTargetMetalVS:
1800 UnityShaderCompilerExtGPUProgramType = 23;
1801pub const UnityShaderCompilerExtGPUProgramType_kUnityShaderCompilerExtGPUProgramTargetMetalFS:
1802 UnityShaderCompilerExtGPUProgramType = 24;
1803pub const UnityShaderCompilerExtGPUProgramType_kUnityShaderCompilerExtGPUProgramTargetSPIRV:
1804 UnityShaderCompilerExtGPUProgramType = 25;
1805pub const UnityShaderCompilerExtGPUProgramType_kUnityShaderCompilerExtGPUProgramTargetUnused1:
1806 UnityShaderCompilerExtGPUProgramType = 26;
1807pub const UnityShaderCompilerExtGPUProgramType_kUnityShaderCompilerExtGPUProgramTargetUnused2:
1808 UnityShaderCompilerExtGPUProgramType = 27;
1809pub const UnityShaderCompilerExtGPUProgramType_kUnityShaderCompilerExtGPUProgramTargetUnused3:
1810 UnityShaderCompilerExtGPUProgramType = 28;
1811pub const UnityShaderCompilerExtGPUProgramType_kUnityShaderCompilerExtGPUProgramTargetUnused4:
1812 UnityShaderCompilerExtGPUProgramType = 29;
1813pub const UnityShaderCompilerExtGPUProgramType_kUnityShaderCompilerExtGPUProgramTargetUnused5:
1814 UnityShaderCompilerExtGPUProgramType = 30;
1815pub const UnityShaderCompilerExtGPUProgramType_kUnityShaderCompilerExtGPUProgramTargetRayTracing:
1816 UnityShaderCompilerExtGPUProgramType = 31;
1817pub const UnityShaderCompilerExtGPUProgramType_kUnityShaderCompilerExtGPUProgramTargetPS5NGGC:
1818 UnityShaderCompilerExtGPUProgramType = 32;
1819pub const UnityShaderCompilerExtGPUProgramType_kUnityShaderCompilerExtGPUProgramTargetWebGPU:
1820 UnityShaderCompilerExtGPUProgramType = 33;
1821pub const UnityShaderCompilerExtGPUProgramType_kUnityShaderCompilerExtGPUProgramTargetCount:
1822 UnityShaderCompilerExtGPUProgramType = 34;
1823pub type UnityShaderCompilerExtGPUProgramType = ::std::os::raw::c_uint;
1824pub const UnityShaderCompilerExtGPUProgram_kUnityShaderCompilerExtGPUProgramVS:
1825 UnityShaderCompilerExtGPUProgram = 2;
1826pub const UnityShaderCompilerExtGPUProgram_kUnityShaderCompilerExtGPUProgramPS:
1827 UnityShaderCompilerExtGPUProgram = 4;
1828pub const UnityShaderCompilerExtGPUProgram_kUnityShaderCompilerExtGPUProgramGS:
1829 UnityShaderCompilerExtGPUProgram = 8;
1830pub const UnityShaderCompilerExtGPUProgram_kUnityShaderCompilerExtGPUProgramHS:
1831 UnityShaderCompilerExtGPUProgram = 16;
1832pub const UnityShaderCompilerExtGPUProgram_kUnityShaderCompilerExtGPUProgramDS:
1833 UnityShaderCompilerExtGPUProgram = 32;
1834pub const UnityShaderCompilerExtGPUProgram_kUnityShaderCompilerExtGPUProgramCustom:
1835 UnityShaderCompilerExtGPUProgram = 128;
1836pub type UnityShaderCompilerExtGPUProgram = ::std::os::raw::c_uint;
1837pub const UnityShaderCompilerExtEventType_kUnityShaderCompilerExtEventCreateCustomSourceVariant:
1838 UnityShaderCompilerExtEventType = 0;
1839pub const UnityShaderCompilerExtEventType_kUnityShaderCompilerExtEventCreateCustomSourceVariantCleanup : UnityShaderCompilerExtEventType = 1 ;
1840pub const UnityShaderCompilerExtEventType_kUnityShaderCompilerExtEventCreateCustomBinaryVariant:
1841 UnityShaderCompilerExtEventType = 2;
1842pub const UnityShaderCompilerExtEventType_kUnityShaderCompilerExtEventCreateCustomBinaryVariantCleanup : UnityShaderCompilerExtEventType = 3 ;
1843pub const UnityShaderCompilerExtEventType_kUnityShaderCompilerExtEventPluginConfigure:
1844 UnityShaderCompilerExtEventType = 4;
1845pub const UnityShaderCompilerExtEventType_kUnityShaderCompilerExtEventCount:
1846 UnityShaderCompilerExtEventType = 5;
1847pub const UnityShaderCompilerExtEventType_kUnityShaderCompilerExtUserEventsStart:
1848 UnityShaderCompilerExtEventType = 5;
1849pub type UnityShaderCompilerExtEventType = ::std::os::raw::c_uint;
1850#[repr(C)]
1851#[derive(Copy, Clone)]
1852pub struct UnityShaderCompilerExtCustomSourceVariantParams {
1853 pub outputSnippet: *mut ::std::os::raw::c_char,
1854 pub outputKeywords: *mut ::std::os::raw::c_char,
1855 pub inputSnippet: *const ::std::os::raw::c_char,
1856 pub vr: bool,
1857 pub platform: UnityShaderCompilerExtCompilerPlatform,
1858 pub shaderType: UnityShaderCompilerExtShaderType,
1859}
1860#[allow(clippy::unnecessary_operation, clippy::identity_op)]
1861const _: () = {
1862 ["Size of UnityShaderCompilerExtCustomSourceVariantParams"]
1863 [::std::mem::size_of::<UnityShaderCompilerExtCustomSourceVariantParams>() - 40usize];
1864 ["Alignment of UnityShaderCompilerExtCustomSourceVariantParams"]
1865 [::std::mem::align_of::<UnityShaderCompilerExtCustomSourceVariantParams>() - 8usize];
1866 ["Offset of field: UnityShaderCompilerExtCustomSourceVariantParams::outputSnippet"][::std::mem::offset_of!(
1867 UnityShaderCompilerExtCustomSourceVariantParams,
1868 outputSnippet
1869 ) - 0usize];
1870 ["Offset of field: UnityShaderCompilerExtCustomSourceVariantParams::outputKeywords"][::std::mem::offset_of!(
1871 UnityShaderCompilerExtCustomSourceVariantParams,
1872 outputKeywords
1873 )
1874 - 8usize];
1875 ["Offset of field: UnityShaderCompilerExtCustomSourceVariantParams::inputSnippet"][::std::mem::offset_of!(
1876 UnityShaderCompilerExtCustomSourceVariantParams,
1877 inputSnippet
1878 ) - 16usize];
1879 ["Offset of field: UnityShaderCompilerExtCustomSourceVariantParams::vr"]
1880 [::std::mem::offset_of!(UnityShaderCompilerExtCustomSourceVariantParams, vr) - 24usize];
1881 ["Offset of field: UnityShaderCompilerExtCustomSourceVariantParams::platform"][::std::mem::offset_of!(
1882 UnityShaderCompilerExtCustomSourceVariantParams,
1883 platform
1884 ) - 28usize];
1885 ["Offset of field: UnityShaderCompilerExtCustomSourceVariantParams::shaderType"][::std::mem::offset_of!(
1886 UnityShaderCompilerExtCustomSourceVariantParams,
1887 shaderType
1888 ) - 32usize];
1889};
1890impl Default for UnityShaderCompilerExtCustomSourceVariantParams {
1891 fn default() -> Self {
1892 let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
1893 unsafe {
1894 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
1895 s.assume_init()
1896 }
1897 }
1898}
1899#[repr(C)]
1900#[derive(Copy, Clone)]
1901pub struct UnityShaderCompilerExtCustomBinaryVariantParams {
1902 pub outputBinaryShader: *mut *mut ::std::os::raw::c_void,
1903 pub inputByteCode: *const ::std::os::raw::c_uchar,
1904 pub inputByteCodeSize: ::std::os::raw::c_uint,
1905 pub programTypeMask: ::std::os::raw::c_uint,
1906 pub platform: UnityShaderCompilerExtCompilerPlatform,
1907}
1908#[allow(clippy::unnecessary_operation, clippy::identity_op)]
1909const _: () = {
1910 ["Size of UnityShaderCompilerExtCustomBinaryVariantParams"]
1911 [::std::mem::size_of::<UnityShaderCompilerExtCustomBinaryVariantParams>() - 32usize];
1912 ["Alignment of UnityShaderCompilerExtCustomBinaryVariantParams"]
1913 [::std::mem::align_of::<UnityShaderCompilerExtCustomBinaryVariantParams>() - 8usize];
1914 ["Offset of field: UnityShaderCompilerExtCustomBinaryVariantParams::outputBinaryShader"][::std::mem::offset_of!(
1915 UnityShaderCompilerExtCustomBinaryVariantParams,
1916 outputBinaryShader
1917 )
1918 - 0usize];
1919 ["Offset of field: UnityShaderCompilerExtCustomBinaryVariantParams::inputByteCode"][::std::mem::offset_of!(
1920 UnityShaderCompilerExtCustomBinaryVariantParams,
1921 inputByteCode
1922 ) - 8usize];
1923 ["Offset of field: UnityShaderCompilerExtCustomBinaryVariantParams::inputByteCodeSize"][::std::mem::offset_of!(
1924 UnityShaderCompilerExtCustomBinaryVariantParams,
1925 inputByteCodeSize
1926 )
1927 - 16usize];
1928 ["Offset of field: UnityShaderCompilerExtCustomBinaryVariantParams::programTypeMask"][::std::mem::offset_of!(
1929 UnityShaderCompilerExtCustomBinaryVariantParams,
1930 programTypeMask
1931 )
1932 - 20usize];
1933 ["Offset of field: UnityShaderCompilerExtCustomBinaryVariantParams::platform"][::std::mem::offset_of!(
1934 UnityShaderCompilerExtCustomBinaryVariantParams,
1935 platform
1936 ) - 24usize];
1937};
1938impl Default for UnityShaderCompilerExtCustomBinaryVariantParams {
1939 fn default() -> Self {
1940 let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
1941 unsafe {
1942 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
1943 s.assume_init()
1944 }
1945 }
1946}
1947#[repr(C)]
1948pub struct IUnityShaderCompilerExtPluginConfigure__bindgen_vtable(::std::os::raw::c_void);
1949#[repr(C)]
1950pub struct IUnityShaderCompilerExtPluginConfigure {
1951 pub vtable_: *const IUnityShaderCompilerExtPluginConfigure__bindgen_vtable,
1952}
1953#[allow(clippy::unnecessary_operation, clippy::identity_op)]
1954const _: () = {
1955 ["Size of IUnityShaderCompilerExtPluginConfigure"]
1956 [::std::mem::size_of::<IUnityShaderCompilerExtPluginConfigure>() - 8usize];
1957 ["Alignment of IUnityShaderCompilerExtPluginConfigure"]
1958 [::std::mem::align_of::<IUnityShaderCompilerExtPluginConfigure>() - 8usize];
1959};
1960impl Default for IUnityShaderCompilerExtPluginConfigure {
1961 fn default() -> Self {
1962 let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
1963 unsafe {
1964 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
1965 s.assume_init()
1966 }
1967 }
1968}
1969unsafe extern "system" {
1970 pub fn UnityShaderCompilerExtEvent(
1971 event: UnityShaderCompilerExtEventType,
1972 data: *mut ::std::os::raw::c_void,
1973 );
1974}