detect-gpu
Advanced tools
Comparing version 1.5.0 to 1.5.1
@@ -1,2 +0,14 @@ | ||
import { IGetGPUTier } from './types'; | ||
export interface IGetGPUTier { | ||
glContext?: WebGLRenderingContext | WebGL2RenderingContext; | ||
mobileBenchmarkPercentages?: number[]; | ||
desktopBenchmarkPercentages?: number[]; | ||
failIfMajorPerformanceCaveat?: boolean; | ||
forceRendererString?: string; | ||
forceMobile?: boolean; | ||
} | ||
export declare type TRank = [number, string] | [undefined, undefined]; | ||
export interface IRankWithDistance { | ||
rank: TRank; | ||
distance: number; | ||
} | ||
export declare const getGPUTier: ({ mobileBenchmarkPercentages, desktopBenchmarkPercentages, forceRendererString, forceMobile, glContext, failIfMajorPerformanceCaveat, }?: IGetGPUTier) => { | ||
@@ -3,0 +15,0 @@ tier: string; |
{ | ||
"name": "detect-gpu", | ||
"version": "1.5.0", | ||
"version": "1.5.1", | ||
"description": "Classify GPU's based on their benchmark score in order to provide an adaptive experience.", | ||
@@ -5,0 +5,0 @@ "main": "dist/detect-gpu.cjs.js", |
@@ -18,4 +18,17 @@ // Generated data | ||
// Types | ||
import { IGetGPUTier, TRank, IRankWithDistance } from './types'; | ||
export interface IGetGPUTier { | ||
glContext?: WebGLRenderingContext | WebGL2RenderingContext; | ||
mobileBenchmarkPercentages?: number[]; | ||
desktopBenchmarkPercentages?: number[]; | ||
failIfMajorPerformanceCaveat?: boolean; | ||
forceRendererString?: string; | ||
forceMobile?: boolean; | ||
} | ||
export type TRank = [number, string] | [undefined, undefined]; | ||
export interface IRankWithDistance { | ||
rank: TRank; | ||
distance: number; | ||
} | ||
export const getGPUTier = ({ | ||
@@ -22,0 +35,0 @@ mobileBenchmarkPercentages = [ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
472690
56
6110