ScriptReference/SystemInfo.IsFormatSupported #150
Replies: 1 comment
-
|
Example code listing graphics format support for the current platform: StringBuilder stringBuilder = new StringBuilder();
foreach (var value in Enum.GetValues(typeof(GraphicsFormat)))
{
bool isFormatSupported = SystemInfo.IsFormatSupported((GraphicsFormat)value, FormatUsage.ReadPixels);
stringBuilder.AppendLine($"{value,-20} supported: {isFormatSupported}");
}
Debug.Log(stringBuilder);Switch the console to use a monospace font to see it with correct formatting. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
ScriptReference/SystemInfo.IsFormatSupported
https://docs.unity3d.com/ScriptReference/SystemInfo.IsFormatSupported.html
Beta Was this translation helpful? Give feedback.
All reactions