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
ConstructorsConstructorDescriptionPlatformInfo(long id, org.lwjgl.opencl.CLCapabilities capabilities, String profile, String version, String name, String vendor, VeilOpenCL.DeviceInfo[] devices) Creates an instance of aPlatformInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionorg.lwjgl.opencl.CLCapabilitiesReturns the value of thecapabilitiesrecord component.static VeilOpenCL.PlatformInfocreate(long platform, org.lwjgl.system.MemoryStack stack) devices()Returns the value of thedevicesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longid()Returns the value of theidrecord component.name()Returns the value of thenamerecord component.profile()Returns the value of theprofilerecord component.final StringtoString()Returns a string representation of this record class.vendor()Returns the value of thevendorrecord component.version()Returns the value of theversionrecord 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 aPlatformInforecord class.- Parameters:
id- the value for theidrecord componentcapabilities- the value for thecapabilitiesrecord componentprofile- the value for theprofilerecord componentversion- the value for theversionrecord componentname- the value for thenamerecord componentvendor- the value for thevendorrecord componentdevices- the value for thedevicesrecord 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 theidrecord component.- Returns:
- the value of the
idrecord component
-
capabilities
public org.lwjgl.opencl.CLCapabilities capabilities()Returns the value of thecapabilitiesrecord component.- Returns:
- the value of the
capabilitiesrecord component
-
profile
Returns the value of theprofilerecord component.- Returns:
- the value of the
profilerecord component
-
version
Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
vendor
Returns the value of thevendorrecord component.- Returns:
- the value of the
vendorrecord component
-
devices
Returns the value of thedevicesrecord component.- Returns:
- the value of the
devicesrecord component
-