This commit is contained in:
connan 2024-12-17 20:51:40 +08:00
parent 392791caf8
commit 33111148d2
5 changed files with 87 additions and 4 deletions

2
.gitignore vendored
View File

@ -56,3 +56,5 @@ crashlytics-build.properties
TJURP_BurstDebugInformation_DoNotShip/
UserSettings/
**/.DS_Store

8
Assets/Plugins/iOS.meta Normal file
View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: DigdsiypBntkIGjYWr/lNCnMHSLZ68PUXpepr1/9PL0GHp8HjiLc37A=
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

Binary file not shown.

View File

@ -0,0 +1,73 @@
fileFormatVersion: 2
guid: XHlJsC2uB38xAIi0lDpkCshxqvlTjn8VMSnmslbwsBuz6ljxkThu6So=
PluginImporter:
externalObjects: {}
serializedVersion: 2
iconMap: {}
executionOrder: {}
defineConstraints: []
isPreloaded: 1
isOverridable: 0
isExplicitlyReferenced: 0
validateReferences: 1
platformData:
- first:
: Any
second:
enabled: 0
settings:
Exclude Editor: 1
Exclude Linux64: 1
Exclude OSXUniversal: 1
Exclude Win: 1
Exclude Win64: 1
Exclude iOS: 0
- first:
Any:
second:
enabled: 0
settings: {}
- first:
Editor: Editor
second:
enabled: 0
settings:
CPU: AnyCPU
DefaultValueInitialized: true
OS: AnyOS
- first:
Standalone: Linux64
second:
enabled: 0
settings:
CPU: AnyCPU
- first:
Standalone: OSXUniversal
second:
enabled: 0
settings:
CPU: AnyCPU
- first:
Standalone: Win
second:
enabled: 0
settings:
CPU: AnyCPU
- first:
Standalone: Win64
second:
enabled: 0
settings:
CPU: AnyCPU
- first:
iPhone: iOS
second:
enabled: 1
settings:
AddToEmbeddedBinaries: false
CPU: ARM64
CompileFlags:
FrameworkDependencies:
userData:
assetBundleName:
assetBundleVariant:

View File

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