public static bool SupportsTextureFormat(TextureFormat format) { bool flag = !EditorSystemInfo.IsValidEnumValue(format); if (flag) { throw new ArgumentException("Failed SupportsTextureFormat; format is not a valid TextureFormat"); } return(EditorSystemInfo.SupportsTextureFormatNative(format)); }
public static bool SupportsVertexAttributeFormat(VertexAttributeFormat format, int dimension) { bool flag = !EditorSystemInfo.IsValidEnumValue(format); if (flag) { throw new ArgumentException("Failed SupportsVertexAttributeFormat; format is not a valid VertexAttributeFormat"); } bool flag2 = dimension < 1 || dimension > 4; if (flag2) { throw new ArgumentException("Failed SupportsVertexAttributeFormat; dimension must be in 1..4 range"); } return(EditorSystemInfo.SupportsVertexAttributeFormatNative(format, dimension)); }
private static bool IsValidEnumValue(Enum value) { bool flag = !Enum.IsDefined(value.GetType(), value); bool result; if (flag) { result = false; } else { bool flag2 = EditorSystemInfo.IsEnumValueObsolete(value); result = !flag2; } return(result); }
public static int GetRenderTextureSupportedMSAASampleCount(RenderTextureDescriptor desc) { return(EditorSystemInfo.GetRenderTextureSupportedMSAASampleCount_Injected(ref desc)); }
public virtual GraphicsFormat GetCompatibleFormat(GraphicsFormat format, FormatUsage usage) { return(EditorSystemInfo.GetCompatibleFormat(format, usage)); }
public virtual GraphicsFormat GetGraphicsFormat(DefaultFormat format) { return(EditorSystemInfo.GetGraphicsFormat(format)); }
public virtual bool IsFormatSupported(GraphicsFormat format, FormatUsage usage) { return(EditorSystemInfo.IsFormatSupported(format, usage)); }
public virtual bool SupportsVertexAttributeFormat(VertexAttributeFormat format, int dimension) { return(EditorSystemInfo.SupportsVertexAttributeFormat(format, dimension)); }
public virtual bool SupportsTextureFormat(TextureFormat format) { return(EditorSystemInfo.SupportsTextureFormat(format)); }
public virtual bool SupportsBlendingOnRenderTextureFormat(RenderTextureFormat format) { return(EditorSystemInfo.SupportsBlendingOnRenderTextureFormat(format)); }
public virtual int GetRenderTextureSupportedMSAASampleCount(RenderTextureDescriptor desc) { return(EditorSystemInfo.GetRenderTextureSupportedMSAASampleCount(desc)); }