fix marco

This commit is contained in:
StarBeats 2024-12-17 20:17:56 +08:00
parent 3ccfaf4dc7
commit baca7740d4

View File

@ -7,35 +7,35 @@ namespace X.Rendering.Feature
{ {
public static class RenderingPlugin public static class RenderingPlugin
{ {
#if (PLATFORM_IOS || PLATFORM_TVOS || PLATFORM_BRATWURST || PLATFORM_SWITCH) && !UNITY_EDITOR #if (PLATFORM_IOS || PLATFORM_TVOS || PLATFORM_BRATWURST || UNITY_STANDALONE_OSX || UNITY_EDITOR_OSX) && !UNITY_EDITOR
[DllImport("__Internal")] [DllImport("__Internal")]
#else #else
[DllImport("GfxPluginNativeRender")] [DllImport("GfxPluginNativeRender")]
#endif #endif
public static extern void SetTimeFromUnity(float t); public static extern void SetTimeFromUnity(float t);
#if (PLATFORM_IOS || PLATFORM_TVOS || PLATFORM_BRATWURST || PLATFORM_SWITCH) && !UNITY_EDITOR #if (PLATFORM_IOS || PLATFORM_TVOS || PLATFORM_BRATWURST || UNITY_STANDALONE_OSX || UNITY_EDITOR_OSX) && !UNITY_EDITOR
[DllImport("__Internal")] [DllImport("__Internal")]
#else #else
[DllImport("GfxPluginNativeRender")] [DllImport("GfxPluginNativeRender")]
#endif #endif
public static extern IntPtr GetRenderEventAndDataFunc(); public static extern IntPtr GetRenderEventAndDataFunc();
#if (PLATFORM_IOS || PLATFORM_TVOS || PLATFORM_BRATWURST || PLATFORM_SWITCH) && !UNITY_EDITOR #if (PLATFORM_IOS || PLATFORM_TVOS || PLATFORM_BRATWURST || UNITY_STANDALONE_OSX || UNITY_EDITOR_OSX) && !UNITY_EDITOR
[DllImport("__Internal")] [DllImport("__Internal")]
#else #else
[DllImport("GfxPluginNativeRender")] [DllImport("GfxPluginNativeRender")]
#endif #endif
private static extern bool GetFeatureSupport(int feature); private static extern bool GetFeatureSupport(int feature);
#if (PLATFORM_IOS || PLATFORM_TVOS || PLATFORM_BRATWURST || PLATFORM_SWITCH) && !UNITY_EDITOR #if (PLATFORM_IOS || PLATFORM_TVOS || PLATFORM_BRATWURST || UNITY_STANDALONE_OSX || UNITY_EDITOR_OSX) && !UNITY_EDITOR
[DllImport("__Internal")] [DllImport("__Internal")]
#else #else
[DllImport("GfxPluginNativeRender")] [DllImport("GfxPluginNativeRender")]
#endif #endif
public static extern bool GetInputResolution(int outw, int outh, int quality,ref int width, ref int height); public static extern bool GetInputResolution(int outw, int outh, int quality, ref int width, ref int height);
//#if (PLATFORM_IOS || PLATFORM_TVOS || PLATFORM_BRATWURST || PLATFORM_SWITCH) && !UNITY_EDITOR //#if (PLATFORM_IOS || PLATFORM_TVOS || PLATFORM_BRATWURST || UNITY_STANDALONE_OSX) && !UNITY_EDITOR
// [DllImport("__Internal")] // [DllImport("__Internal")]
//#else //#else
// [DllImport("GfxPluginNativeRender")] // [DllImport("GfxPluginNativeRender")]