Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/pmndrs/detect-gpu
/ functions
Functions
27 in github.com/pmndrs/detect-gpu
⨍
Functions
27
◇
Types & classes
3
↓ 15 callers
Function
filterByIOSVersion
( chipsets: T[], iOSVersion: number | undefined, isIpad: boolean )
src/internal/deobfuscateAppleGPU.ts:124
↓ 15 callers
Function
names
(chipsets: Chipset[])
test/deobfuscateAppleGPU.test.ts:49
↓ 12 callers
Function
getTier
(override: GetGPUTier['override'] = {})
test/utils.ts:3
↓ 9 callers
Function
parseIOSVersion
( userAgent: string, isAppleMobile: boolean )
src/internal/deviceInfo.ts:13
↓ 8 callers
Function
expectGPUResults
( expected: Partial<TierResult>, result: TierResult )
test/utils.ts:16
↓ 8 callers
Function
toResult
( tier: number, type: TierType, gpu?: string, fps?: number, device?: string )
src/index.ts:270
↓ 6 callers
Function
loadDeviceInfo
(overrides: { userAgent?: string; platform?: string; maxTouchPoints?: number; })
test/deviceInfo.test.ts:7
↓ 3 callers
Function
cleanRenderer
(renderer: string)
src/internal/cleanRenderer.ts:3
↓ 3 callers
Function
outputFile
( type: string, models: typeof devicesByGpu )
scripts/update_benchmarks.ts:153
↓ 2 callers
Function
getGPUVersion
(model: string)
src/internal/getGPUVersion.ts:1
↓ 2 callers
Function
tierForFps
(fps: number, tiers: number[])
src/index.ts:371
↓ 2 callers
Function
tokenizeForLevenshteinDistance
(str: string)
src/internal/getLevenshteinDistance.ts:90
↓ 1 callers
Function
calculateMagicPixelId
(gl: WebGLRenderingContext)
src/internal/deobfuscateAppleGPU.ts:143
↓ 1 callers
Function
createArchiveAndCleanup
()
scripts/update_benchmarks.ts:35
↓ 1 callers
Function
deobfuscateAppleGPU
( gl: WebGLRenderingContext, renderer: string, isMobileTier: boolean )
src/internal/deobfuscateAppleGPU.ts:19
↓ 1 callers
Function
deobfuscateRenderer
( gl: WebGLRenderingContext | WebGL2RenderingContext, renderer: string, isMobileTier: boolean )
src/internal/deobfuscateRenderer.ts:4
↓ 1 callers
Function
downloadCsvIfMissing
()
scripts/update_benchmarks.ts:219
↓ 1 callers
Function
ensureDirectories
()
scripts/update_benchmarks.ts:27
↓ 1 callers
Function
fetchBenchmarks
()
scripts/update_benchmarks.ts:236
↓ 1 callers
Function
getGPUTier
({ mobileTiers = [0, 15, 30, 60], desktopTiers = [0, 15, 30, 60], override = {}, glContext, failIfMa
src/index.ts:98
↓ 1 callers
Function
getGpuType
(renderer: string)
src/index.ts:139
↓ 1 callers
Function
getLevenshteinDistance
(left: string, right: string)
src/internal/getLevenshteinDistance.ts:8
↓ 1 callers
Function
getWebGLContext
( isSafari12?: boolean, failIfMajorPerformanceCaveat = false )
src/internal/getWebGLContext.ts:1
↓ 1 callers
Function
minimumAChip
(iOSVersion: number, isIpad: boolean)
src/internal/deobfuscateAppleGPU.ts:116
Function
exportBenchmarks
(isMobile: boolean)
scripts/update_benchmarks.ts:99
Function
isDefined
(val: T | undefined | null | void)
src/internal/util.ts:1
Function
queryBenchmarks
(renderer: string)
src/index.ts:166