38 lines
1.1 KiB
C#
38 lines
1.1 KiB
C#
|
|
using System;
|
||
|
|
using System.Runtime.InteropServices;
|
||
|
|
namespace X.Rendering.Feature
|
||
|
|
{
|
||
|
|
public static class RenderingPlugin
|
||
|
|
{
|
||
|
|
//#if (PLATFORM_IOS || PLATFORM_TVOS || PLATFORM_BRATWURST || PLATFORM_SWITCH) && !UNITY_EDITOR
|
||
|
|
// [DllImport("__Internal")]
|
||
|
|
//#else
|
||
|
|
// [DllImport("NativeRenderPlugin")]
|
||
|
|
//#endif
|
||
|
|
// public static extern void SetTimeFromUnity(float t);
|
||
|
|
|
||
|
|
//#if (PLATFORM_IOS || PLATFORM_TVOS || PLATFORM_BRATWURST || PLATFORM_SWITCH) && !UNITY_EDITOR
|
||
|
|
// [DllImport("__Internal")]
|
||
|
|
//#else
|
||
|
|
// [DllImport("NativeRenderPlugin")]
|
||
|
|
//#endif
|
||
|
|
// public static extern IntPtr GetRenderEventAndDataFunc();
|
||
|
|
|
||
|
|
public enum NativeRenderingEvent
|
||
|
|
{
|
||
|
|
EnableVRS = 1,
|
||
|
|
DisableVRS,
|
||
|
|
}
|
||
|
|
|
||
|
|
public enum VRSPluginShadingRate
|
||
|
|
{
|
||
|
|
X1_PER_PIXEL,
|
||
|
|
X1_PER_2X1_PIXELS,
|
||
|
|
X1_PER_1X2_PIXELS,
|
||
|
|
X1_PER_2X2_PIXELS,
|
||
|
|
X1_PER_4X2_PIXELS,
|
||
|
|
X1_PER_2X4_PIXELS,
|
||
|
|
X1_PER_4X4_PIXELS,
|
||
|
|
};
|
||
|
|
}
|
||
|
|
}
|