Package foundry.veil.api.opencl
Record Class VeilOpenCL.PlatformInfo
java.lang.Object
java.lang.Record
foundry.veil.api.opencl.VeilOpenCL.PlatformInfo
- Record Components:
id
- The id of this platformcapabilities
- The capabilities supported on this platformprofile
- The profile name supported by the implementationversion
- OpenCL version stringname
- Platform name stringvendor
- Platform vendor stringdevices
- The list of devices available on this platform
- Enclosing class:
VeilOpenCL
public static record VeilOpenCL.PlatformInfo(long id, org.lwjgl.opencl.CLCapabilities capabilities, String profile, String version, String name, String vendor, VeilOpenCL.DeviceInfo[] devices)
extends Record
Information about a platform that can run OpenCL.
-
Constructor Summary
ConstructorDescriptionPlatformInfo
(long id, org.lwjgl.opencl.CLCapabilities capabilities, String profile, String version, String name, String vendor, VeilOpenCL.DeviceInfo[] devices) Creates an instance of aPlatformInfo
record class. -
Method Summary
Modifier and TypeMethodDescriptionorg.lwjgl.opencl.CLCapabilities
Returns the value of thecapabilities
record component.static VeilOpenCL.PlatformInfo
create
(long platform, org.lwjgl.system.MemoryStack stack) devices()
Returns the value of thedevices
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.long
id()
Returns the value of theid
record component.name()
Returns the value of thename
record component.profile()
Returns the value of theprofile
record component.final String
toString()
Returns a string representation of this record class.vendor()
Returns the value of thevendor
record component.version()
Returns the value of theversion
record component.
-
Constructor Details
-
PlatformInfo
public PlatformInfo(long id, org.lwjgl.opencl.CLCapabilities capabilities, String profile, String version, String name, String vendor, VeilOpenCL.DeviceInfo[] devices) Creates an instance of aPlatformInfo
record class.- Parameters:
id
- the value for theid
record componentcapabilities
- the value for thecapabilities
record componentprofile
- the value for theprofile
record componentversion
- the value for theversion
record componentname
- the value for thename
record componentvendor
- the value for thevendor
record componentdevices
- the value for thedevices
record component
-
-
Method Details
-
create
public static VeilOpenCL.PlatformInfo create(long platform, org.lwjgl.system.MemoryStack stack) throws CLException - Throws:
CLException
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
id
public long id()Returns the value of theid
record component.- Returns:
- the value of the
id
record component
-
capabilities
public org.lwjgl.opencl.CLCapabilities capabilities()Returns the value of thecapabilities
record component.- Returns:
- the value of the
capabilities
record component
-
profile
Returns the value of theprofile
record component.- Returns:
- the value of the
profile
record component
-
version
Returns the value of theversion
record component.- Returns:
- the value of the
version
record component
-
name
Returns the value of thename
record component.- Returns:
- the value of the
name
record component
-
vendor
Returns the value of thevendor
record component.- Returns:
- the value of the
vendor
record component
-
devices
Returns the value of thedevices
record component.- Returns:
- the value of the
devices
record component
-