Enum Class GpuTimerArchitecture
java.lang.Object
java.lang.Enum<GpuTimerArchitecture>
com.victorvalentim.zividomelive.performance.GpuTimerArchitecture
- All Implemented Interfaces:
Serializable,Comparable<GpuTimerArchitecture>,Constable
Normalized host and renderer architecture recorded with experimental GPU measurements.
Capability checks and runtime qualification remain authoritative; architecture is diagnostic evidence rather than proof that a timer backend is safe.
API stability: Experimental.
- Since:
- 2.0.0
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionIntel Mac without an Apple Silicon renderer identity.Native or renderer-identified Apple Silicon host.Linux on a 64-bit ARM JVM.Linux on an x86-64 JVM.Host whose OS/architecture pair is not recognized.Windows on a 64-bit ARM JVM.Windows on an x86-64 JVM. -
Method Summary
Modifier and TypeMethodDescriptionstatic GpuTimerArchitectureDetects a normalized architecture from JVM and active OpenGL identity strings.static GpuTimerArchitectureReturns the enum constant of this class with the specified name.static GpuTimerArchitecture[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
APPLE_SILICON
Native or renderer-identified Apple Silicon host. -
APPLE_INTEL
Intel Mac without an Apple Silicon renderer identity. -
WINDOWS_ARM64
Windows on a 64-bit ARM JVM. -
WINDOWS_X86_64
Windows on an x86-64 JVM. -
LINUX_ARM64
Linux on a 64-bit ARM JVM. -
LINUX_X86_64
Linux on an x86-64 JVM. -
OTHER
Host whose OS/architecture pair is not recognized.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
detect
public static GpuTimerArchitecture detect(String osName, String osArchitecture, String glVendor, String glRenderer) Detects a normalized architecture from JVM and active OpenGL identity strings.- Parameters:
osName- JVM operating-system nameosArchitecture- JVM architecture nameglVendor- active OpenGL vendorglRenderer- active OpenGL renderer- Returns:
- normalized benchmark architecture
-