Top Description Fields Constructors Methods
org.lwjgl.opencl

public final Class CLDevice

extends CLObjectChild<CLDevice>
Class Inheritance
Imports
org.lwjgl.PointerBuffer

This class is a wrapper around a cl_device_id pointer.
Author
Spasi

Field Summary

Modifier and TypeField and Description
private Object
private final CLPlatform
private final CLObjectRegistry<CLDevice>
private static final InfoUtil<CLDevice>

Constructor Summary

AccessConstructor and Description
pack-priv
CLDevice(final long pointer, final CLPlatform platform)

pack-priv
CLDevice(final long
the sub-device pointer
pointer
,
final CLDevice
the parent CLDevice
parent
)

EXT_device_fission constructor.

pack-priv
CLDevice(final long pointer, final CLDevice parent, final CLPlatform platform)

Method Summary

Modifier and TypeMethod and Description
pack-priv Object
public boolean

Returns:

the parameter value
getInfoBoolean
(int
the parameter
param_name
)

Returns the boolean value of the specified parameter.

public int

Returns:

the parameter value
getInfoInt
(int
the parameter
param_name
)

Returns the integer value of the specified parameter.

public long

Returns:

the parameter value
getInfoLong
(int
the parameter
param_name
)

Returns the long value of the specified parameter.

public long

Returns:

the parameter value
getInfoSize
(int
the parameter
param_name
)

Returns the size_t value of the specified parameter.

public long[]

Returns:

the parameter values
getInfoSizeArray
(int
the parameter
param_name
)

Returns an array of size_t values of the specified parameter.

public String

Returns:

the parameter value
getInfoString
(int
the parameter
param_name
)

Returns the value of the specified String parameter.

public CLPlatform
public CLDevice

Returns:

the CLDevice object
getSubCLDevice
(final long
the sub-device object id
id
)

Returns a sub-device of this device.

pack-priv CLObjectRegistry<CLDevice>
pack-priv void
registerSubCLDevices(final PointerBuffer
a buffer containing CLDevice pointers.
devices
)

Called from clCreateSubDevicesEXT to register new sub-devices.

pack-priv int
pack-priv int
pack-priv void
setCapabilities(final Object caps)

Inherited from org.lwjgl.opencl.CLObjectChild:
getParent

Field Detail

capsback to summary
private Object caps
platformback to summary
private final CLPlatform platform
subCLDevicesback to summary
private final CLObjectRegistry<CLDevice> subCLDevices
utilback to summary
private static final InfoUtil<CLDevice> util

Constructor Detail

CLDeviceback to summary
pack-priv CLDevice(final long pointer, final CLPlatform platform)
CLDeviceback to summary
pack-priv CLDevice(final long pointer, final CLDevice parent)

EXT_device_fission constructor.

Parameters
pointer:long

the sub-device pointer

parent:CLDevice

the parent CLDevice

CLDeviceback to summary
pack-priv CLDevice(final long pointer, final CLDevice parent, final CLPlatform platform)

Method Detail

getCapabilitiesback to summary
pack-priv Object getCapabilities()
getInfoBooleanback to summary
public boolean getInfoBoolean(int param_name)

Returns the boolean value of the specified parameter.

Parameters
param_name:int

the parameter

Returns:boolean

the parameter value

getInfoIntback to summary
public int getInfoInt(int param_name)

Returns the integer value of the specified parameter.

Parameters
param_name:int

the parameter

Returns:int

the parameter value

getInfoLongback to summary
public long getInfoLong(int param_name)

Returns the long value of the specified parameter. Can be used for both cl_ulong and cl_bitfield parameters.

Parameters
param_name:int

the parameter

Returns:long

the parameter value

getInfoSizeback to summary
public long getInfoSize(int param_name)

Returns the size_t value of the specified parameter.

Parameters
param_name:int

the parameter

Returns:long

the parameter value

getInfoSizeArrayback to summary
public long[] getInfoSizeArray(int param_name)

Returns an array of size_t values of the specified parameter.

Parameters
param_name:int

the parameter

Returns:long[]

the parameter values

getInfoStringback to summary
public String getInfoString(int param_name)

Returns the value of the specified String parameter.

Parameters
param_name:int

the parameter

Returns:String

the parameter value

getPlatformback to summary
public CLPlatform getPlatform()
getSubCLDeviceback to summary
public CLDevice getSubCLDevice(final long id)

Returns a sub-device of this device.

Parameters
id:long

the sub-device object id

Returns:CLDevice

the CLDevice object

getSubCLDeviceRegistryback to summary
pack-priv CLObjectRegistry<CLDevice> getSubCLDeviceRegistry()
registerSubCLDevicesback to summary
pack-priv void registerSubCLDevices(final PointerBuffer devices)

Called from clCreateSubDevicesEXT to register new sub-devices.

Parameters
devices:PointerBuffer

a buffer containing CLDevice pointers.

releaseback to summary
pack-priv int release()

Overrides org.lwjgl.opencl.CLObjectRetainable.release.

retainback to summary
pack-priv int retain()

Overrides org.lwjgl.opencl.CLObjectRetainable.retain.

setCapabilitiesback to summary
pack-priv void setCapabilities(final Object caps)