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)); }