UnityEngine.VRModule.cpp 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250
  1. #include "pch-cpp.hpp"
  2. #ifndef _MSC_VER
  3. # include <alloca.h>
  4. #else
  5. # include <malloc.h>
  6. #endif
  7. #include <limits>
  8. struct Action_1_t6F9EB113EB3F16226AEF811A2744F4111C116C87;
  9. struct Action_1_t3CB5D1A819C3ED3F99E9E39F890F18633253949A;
  10. struct DelegateU5BU5D_tC5AB7E8F745616680F337909D3A8E6C722CDF771;
  11. struct Camera_tA92CC927D7439999BC82DBEDC0AA45B470F9E184;
  12. struct DelegateData_t9B286B493293CD2D23A5B2B5EF0E5B1324C2B77E;
  13. struct MethodInfo_t;
  14. struct String_t;
  15. struct Void_t4861ACF8F4594C3437BB48B6E56783494B843915;
  16. struct CameraCallback_t844E527BFE37BC0495E7F67993E43C07642DA9DD;
  17. IL2CPP_EXTERN_C RuntimeClass* XRDevice_tD076A68EFE413B3EEEEA362BE0364A488B58F194_il2cpp_TypeInfo_var;
  18. struct Delegate_t_marshaled_com;
  19. struct Delegate_t_marshaled_pinvoke;
  20. IL2CPP_EXTERN_C_BEGIN
  21. IL2CPP_EXTERN_C_END
  22. #ifdef __clang__
  23. #pragma clang diagnostic push
  24. #pragma clang diagnostic ignored "-Winvalid-offsetof"
  25. #pragma clang diagnostic ignored "-Wunused-variable"
  26. #endif
  27. struct U3CModuleU3E_t0F6AB019D77D717D42BE5AD848FFBD032B14CFFC
  28. {
  29. };
  30. struct String_t : public RuntimeObject
  31. {
  32. int32_t ____stringLength;
  33. Il2CppChar ____firstChar;
  34. };
  35. struct ValueType_t6D9B272BD21782F0A9A14F2E41F85A50E97A986F : public RuntimeObject
  36. {
  37. };
  38. struct ValueType_t6D9B272BD21782F0A9A14F2E41F85A50E97A986F_marshaled_pinvoke
  39. {
  40. };
  41. struct ValueType_t6D9B272BD21782F0A9A14F2E41F85A50E97A986F_marshaled_com
  42. {
  43. };
  44. struct XRDevice_tD076A68EFE413B3EEEEA362BE0364A488B58F194 : public RuntimeObject
  45. {
  46. };
  47. struct Boolean_t09A6377A54BE2F9E6985A8149F19234FD7DDFE22
  48. {
  49. bool ___m_value;
  50. };
  51. struct IntPtr_t
  52. {
  53. void* ___m_value;
  54. };
  55. struct Void_t4861ACF8F4594C3437BB48B6E56783494B843915
  56. {
  57. union
  58. {
  59. struct
  60. {
  61. };
  62. uint8_t Void_t4861ACF8F4594C3437BB48B6E56783494B843915__padding[1];
  63. };
  64. };
  65. struct Delegate_t : public RuntimeObject
  66. {
  67. intptr_t ___method_ptr;
  68. intptr_t ___invoke_impl;
  69. RuntimeObject* ___m_target;
  70. intptr_t ___method;
  71. intptr_t ___delegate_trampoline;
  72. intptr_t ___extra_arg;
  73. intptr_t ___method_code;
  74. intptr_t ___interp_method;
  75. intptr_t ___interp_invoke_impl;
  76. MethodInfo_t* ___method_info;
  77. MethodInfo_t* ___original_method_info;
  78. DelegateData_t9B286B493293CD2D23A5B2B5EF0E5B1324C2B77E* ___data;
  79. bool ___method_is_virtual;
  80. };
  81. struct Delegate_t_marshaled_pinvoke
  82. {
  83. intptr_t ___method_ptr;
  84. intptr_t ___invoke_impl;
  85. Il2CppIUnknown* ___m_target;
  86. intptr_t ___method;
  87. intptr_t ___delegate_trampoline;
  88. intptr_t ___extra_arg;
  89. intptr_t ___method_code;
  90. intptr_t ___interp_method;
  91. intptr_t ___interp_invoke_impl;
  92. MethodInfo_t* ___method_info;
  93. MethodInfo_t* ___original_method_info;
  94. DelegateData_t9B286B493293CD2D23A5B2B5EF0E5B1324C2B77E* ___data;
  95. int32_t ___method_is_virtual;
  96. };
  97. struct Delegate_t_marshaled_com
  98. {
  99. intptr_t ___method_ptr;
  100. intptr_t ___invoke_impl;
  101. Il2CppIUnknown* ___m_target;
  102. intptr_t ___method;
  103. intptr_t ___delegate_trampoline;
  104. intptr_t ___extra_arg;
  105. intptr_t ___method_code;
  106. intptr_t ___interp_method;
  107. intptr_t ___interp_invoke_impl;
  108. MethodInfo_t* ___method_info;
  109. MethodInfo_t* ___original_method_info;
  110. DelegateData_t9B286B493293CD2D23A5B2B5EF0E5B1324C2B77E* ___data;
  111. int32_t ___method_is_virtual;
  112. };
  113. struct Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C : public RuntimeObject
  114. {
  115. intptr_t ___m_CachedPtr;
  116. };
  117. struct Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C_marshaled_pinvoke
  118. {
  119. intptr_t ___m_CachedPtr;
  120. };
  121. struct Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C_marshaled_com
  122. {
  123. intptr_t ___m_CachedPtr;
  124. };
  125. struct Component_t39FBE53E5EFCF4409111FB22C15FF73717632EC3 : public Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C
  126. {
  127. };
  128. struct MulticastDelegate_t : public Delegate_t
  129. {
  130. DelegateU5BU5D_tC5AB7E8F745616680F337909D3A8E6C722CDF771* ___delegates;
  131. };
  132. struct MulticastDelegate_t_marshaled_pinvoke : public Delegate_t_marshaled_pinvoke
  133. {
  134. Delegate_t_marshaled_pinvoke** ___delegates;
  135. };
  136. struct MulticastDelegate_t_marshaled_com : public Delegate_t_marshaled_com
  137. {
  138. Delegate_t_marshaled_com** ___delegates;
  139. };
  140. struct Action_1_t6F9EB113EB3F16226AEF811A2744F4111C116C87 : public MulticastDelegate_t
  141. {
  142. };
  143. struct Action_1_t3CB5D1A819C3ED3F99E9E39F890F18633253949A : public MulticastDelegate_t
  144. {
  145. };
  146. struct Behaviour_t01970CFBBA658497AE30F311C447DB0440BAB7FA : public Component_t39FBE53E5EFCF4409111FB22C15FF73717632EC3
  147. {
  148. };
  149. struct Camera_tA92CC927D7439999BC82DBEDC0AA45B470F9E184 : public Behaviour_t01970CFBBA658497AE30F311C447DB0440BAB7FA
  150. {
  151. };
  152. struct String_t_StaticFields
  153. {
  154. String_t* ___Empty;
  155. };
  156. struct XRDevice_tD076A68EFE413B3EEEEA362BE0364A488B58F194_StaticFields
  157. {
  158. Action_1_t3CB5D1A819C3ED3F99E9E39F890F18633253949A* ___deviceLoaded;
  159. };
  160. struct Boolean_t09A6377A54BE2F9E6985A8149F19234FD7DDFE22_StaticFields
  161. {
  162. String_t* ___TrueString;
  163. String_t* ___FalseString;
  164. };
  165. struct Camera_tA92CC927D7439999BC82DBEDC0AA45B470F9E184_StaticFields
  166. {
  167. CameraCallback_t844E527BFE37BC0495E7F67993E43C07642DA9DD* ___onPreCull;
  168. CameraCallback_t844E527BFE37BC0495E7F67993E43C07642DA9DD* ___onPreRender;
  169. CameraCallback_t844E527BFE37BC0495E7F67993E43C07642DA9DD* ___onPostRender;
  170. };
  171. #ifdef __clang__
  172. #pragma clang diagnostic pop
  173. #endif
  174. IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR void Action_1_Invoke_mF2422B2DD29F74CE66F791C3F68E288EC7C3DB9E_gshared_inline (Action_1_t6F9EB113EB3F16226AEF811A2744F4111C116C87* __this, RuntimeObject* ___0_obj, const RuntimeMethod* method) ;
  175. inline void Action_1_Invoke_m690438AAE38F9762172E3AE0A33D0B42ACD35790_inline (Action_1_t3CB5D1A819C3ED3F99E9E39F890F18633253949A* __this, String_t* ___0_obj, const RuntimeMethod* method)
  176. {
  177. (( void (*) (Action_1_t3CB5D1A819C3ED3F99E9E39F890F18633253949A*, String_t*, const RuntimeMethod*))Action_1_Invoke_mF2422B2DD29F74CE66F791C3F68E288EC7C3DB9E_gshared_inline)(__this, ___0_obj, method);
  178. }
  179. #ifdef __clang__
  180. #pragma clang diagnostic push
  181. #pragma clang diagnostic ignored "-Winvalid-offsetof"
  182. #pragma clang diagnostic ignored "-Wunused-variable"
  183. #endif
  184. #ifdef __clang__
  185. #pragma clang diagnostic pop
  186. #endif
  187. #ifdef __clang__
  188. #pragma clang diagnostic push
  189. #pragma clang diagnostic ignored "-Winvalid-offsetof"
  190. #pragma clang diagnostic ignored "-Wunused-variable"
  191. #endif
  192. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void XRDevice_DisableAutoXRCameraTracking_m1243FCAD2AC9C4D5C2E551255A1B2BA266E12A52 (Camera_tA92CC927D7439999BC82DBEDC0AA45B470F9E184* ___0_camera, bool ___1_disabled, const RuntimeMethod* method)
  193. {
  194. typedef void (*XRDevice_DisableAutoXRCameraTracking_m1243FCAD2AC9C4D5C2E551255A1B2BA266E12A52_ftn) (Camera_tA92CC927D7439999BC82DBEDC0AA45B470F9E184*, bool);
  195. static XRDevice_DisableAutoXRCameraTracking_m1243FCAD2AC9C4D5C2E551255A1B2BA266E12A52_ftn _il2cpp_icall_func;
  196. if (!_il2cpp_icall_func)
  197. _il2cpp_icall_func = (XRDevice_DisableAutoXRCameraTracking_m1243FCAD2AC9C4D5C2E551255A1B2BA266E12A52_ftn)il2cpp_codegen_resolve_icall ("UnityEngine.XR.XRDevice::DisableAutoXRCameraTracking(UnityEngine.Camera,System.Boolean)");
  198. _il2cpp_icall_func(___0_camera, ___1_disabled);
  199. }
  200. IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void XRDevice_InvokeDeviceLoaded_mBE2198DE44A72E2F5059566C46B9907D82782790 (String_t* ___0_loadedDeviceName, const RuntimeMethod* method)
  201. {
  202. static bool s_Il2CppMethodInitialized;
  203. if (!s_Il2CppMethodInitialized)
  204. {
  205. il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&XRDevice_tD076A68EFE413B3EEEEA362BE0364A488B58F194_il2cpp_TypeInfo_var);
  206. s_Il2CppMethodInitialized = true;
  207. }
  208. bool V_0 = false;
  209. {
  210. Action_1_t3CB5D1A819C3ED3F99E9E39F890F18633253949A* L_0 = ((XRDevice_tD076A68EFE413B3EEEEA362BE0364A488B58F194_StaticFields*)il2cpp_codegen_static_fields_for(XRDevice_tD076A68EFE413B3EEEEA362BE0364A488B58F194_il2cpp_TypeInfo_var))->___deviceLoaded;
  211. V_0 = (bool)((!(((RuntimeObject*)(Action_1_t3CB5D1A819C3ED3F99E9E39F890F18633253949A*)L_0) <= ((RuntimeObject*)(RuntimeObject*)NULL)))? 1 : 0);
  212. bool L_1 = V_0;
  213. if (!L_1)
  214. {
  215. goto IL_001b;
  216. }
  217. }
  218. {
  219. Action_1_t3CB5D1A819C3ED3F99E9E39F890F18633253949A* L_2 = ((XRDevice_tD076A68EFE413B3EEEEA362BE0364A488B58F194_StaticFields*)il2cpp_codegen_static_fields_for(XRDevice_tD076A68EFE413B3EEEEA362BE0364A488B58F194_il2cpp_TypeInfo_var))->___deviceLoaded;
  220. String_t* L_3 = ___0_loadedDeviceName;
  221. NullCheck(L_2);
  222. Action_1_Invoke_m690438AAE38F9762172E3AE0A33D0B42ACD35790_inline(L_2, L_3, NULL);
  223. }
  224. IL_001b:
  225. {
  226. return;
  227. }
  228. }
  229. #ifdef __clang__
  230. #pragma clang diagnostic pop
  231. #endif
  232. IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR void Action_1_Invoke_mF2422B2DD29F74CE66F791C3F68E288EC7C3DB9E_gshared_inline (Action_1_t6F9EB113EB3F16226AEF811A2744F4111C116C87* __this, RuntimeObject* ___0_obj, const RuntimeMethod* method)
  233. {
  234. typedef void (*FunctionPointerType) (RuntimeObject*, RuntimeObject*, const RuntimeMethod*);
  235. ((FunctionPointerType)__this->___invoke_impl)((Il2CppObject*)__this->___method_code, ___0_obj, reinterpret_cast<RuntimeMethod*>(__this->___method));
  236. }