Device.DeviceType| Constructor and Description |
|---|
LwjglDevice(org.lwjgl.opencl.CLDevice device,
LwjglPlatform platform) |
| Modifier and Type | Method and Description |
|---|---|
int |
getAddressBits()
Returns the default compute device address space
size specified as an unsigned integer value
in bits.
|
int |
getClockFrequency() |
java.lang.String |
getCompilerVersion()
OpenCL C version string.
|
int |
getCompilerVersionMajor()
Extracts the major version from the compiler version
|
int |
getCompilerVersionMinor()
Extracts the minor version from the compiler version
|
int |
getComputeUnits()
Returns the number of parallel compute units on
the OpenCL device.
|
org.lwjgl.opencl.CLDevice |
getDevice() |
Device.DeviceType |
getDeviceType() |
java.lang.String |
getDriverVersion() |
int |
getDriverVersionMajor()
Extracts the major version from the driver version
|
int |
getDriverVersionMinor()
Extracts the minor version from the driver version
|
java.util.Collection<? extends java.lang.String> |
getExtensions()
Lists all available extensions
|
long |
getGlobalMemorySize() |
long |
getLocalMemorySize() |
long |
getMaximumAllocationSize() |
int |
getMaximumConstantArguments() |
long |
getMaximumConstantBufferSize()
Returns the maximal size of a constant buffer.
|
long[] |
getMaximumImage2DSize()
Queries the maximal size of a 2D image
|
long[] |
getMaximumImage3DSize()
Queries the maximal size of a 3D image
|
int |
getMaximumReadImages() |
int |
getMaximumSamplers() |
long |
getMaximumWorkItemDimensions()
The maximum dimension that specify the local and global work item ids.
|
long[] |
getMaximumWorkItemSizes()
Maximum number of work-items that can be specified in each dimension of the
work-group to
Kernel.Run2(com.jme3.opencl.CommandQueue, com.jme3.opencl.Kernel.WorkSize, com.jme3.opencl.Kernel.WorkSize, java.lang.Object...). |
int |
getMaximumWriteImages() |
long |
getMaxiumWorkItemsPerGroup()
Maximum number of work-items in a
work-group executing a kernel on a single
compute unit, using the data parallel
execution model.
|
java.lang.String |
getName() |
LwjglPlatform |
getPlatform() |
java.lang.String |
getProfile()
OpenCL profile string.
|
java.lang.String |
getVendor() |
int |
getVendorId() |
java.lang.String |
getVersion()
OpenCL version string.
|
int |
getVersionMajor()
Extracts the major version from the version string
|
int |
getVersionMinor()
Extracts the minor version from the version string
|
boolean |
hasCompiler() |
boolean |
hasDouble() |
boolean |
hasErrorCorrectingMemory() |
boolean |
hasExtension(java.lang.String extension)
Explictly tests for the availability of the specified extension
|
boolean |
hasHalfFloat() |
boolean |
hasImageSupport() |
boolean |
hasOpenGLInterop() |
boolean |
hasUnifiedMemory() |
boolean |
hasWritableImage3D() |
boolean |
isAvailable()
checks if this device is available at all, must always be tested
|
boolean |
isLittleEndian() |
java.lang.String |
toString() |
public LwjglDevice(org.lwjgl.opencl.CLDevice device,
LwjglPlatform platform)
public org.lwjgl.opencl.CLDevice getDevice()
public LwjglPlatform getPlatform()
getPlatform in interface Devicepublic Device.DeviceType getDeviceType()
getDeviceType in interface Devicepublic int getVendorId()
getVendorId in interface Devicepublic boolean isAvailable()
DeviceisAvailable in interface Devicepublic boolean hasCompiler()
hasCompiler in interface Devicepublic boolean hasDouble()
public boolean hasHalfFloat()
hasHalfFloat in interface Devicepublic boolean hasErrorCorrectingMemory()
hasErrorCorrectingMemory in interface Devicepublic boolean hasUnifiedMemory()
hasUnifiedMemory in interface Devicepublic boolean hasImageSupport()
hasImageSupport in interface Devicepublic boolean hasWritableImage3D()
hasWritableImage3D in interface Devicepublic boolean hasOpenGLInterop()
hasOpenGLInterop in interface Devicepublic boolean hasExtension(java.lang.String extension)
DevicehasExtension in interface Deviceextension - the name of the extensiontrue iff this extension is supportedpublic java.util.Collection<? extends java.lang.String> getExtensions()
DevicegetExtensions in interface Devicepublic int getComputeUnits()
DevicegetComputeUnits in interface DeviceDevice.getMaximumWorkItemDimensions(),
Device.getMaximumWorkItemSizes()public int getClockFrequency()
getClockFrequency in interface Devicepublic int getAddressBits()
DevicegetAddressBits in interface Devicepublic boolean isLittleEndian()
isLittleEndian in interface Devicetrue if this device is little endianpublic long getMaximumWorkItemDimensions()
DevicegetMaximumWorkItemDimensions in interface Devicepublic long[] getMaximumWorkItemSizes()
DeviceKernel.Run2(com.jme3.opencl.CommandQueue, com.jme3.opencl.Kernel.WorkSize, com.jme3.opencl.Kernel.WorkSize, java.lang.Object...).
The array has a length of at least 3.getMaximumWorkItemSizes in interface Devicepublic long getMaxiumWorkItemsPerGroup()
DevicegetMaxiumWorkItemsPerGroup in interface Devicepublic int getMaximumSamplers()
getMaximumSamplers in interface Devicepublic int getMaximumReadImages()
getMaximumReadImages in interface Devicepublic int getMaximumWriteImages()
getMaximumWriteImages in interface Devicepublic long[] getMaximumImage2DSize()
DevicegetMaximumImage2DSize in interface Devicepublic long[] getMaximumImage3DSize()
DevicegetMaximumImage3DSize in interface Devicepublic long getMaximumAllocationSize()
getMaximumAllocationSize in interface Devicepublic long getGlobalMemorySize()
getGlobalMemorySize in interface Devicepublic long getLocalMemorySize()
getLocalMemorySize in interface Devicepublic long getMaximumConstantBufferSize()
Device__constant BUFFER_TYPE* BUFFER_NAME.
Because they have a special caching, their size is usually very limited.getMaximumConstantBufferSize in interface Devicepublic int getMaximumConstantArguments()
getMaximumConstantArguments in interface Devicepublic java.lang.String getProfile()
DevicegetProfile in interface Devicepublic java.lang.String getVersion()
DevicegetVersion in interface Devicepublic int getVersionMajor()
DevicegetVersionMajor in interface DeviceDevice.getVersion()public int getVersionMinor()
DevicegetVersionMinor in interface Device}public java.lang.String getCompilerVersion()
DevicegetCompilerVersion in interface Devicepublic int getCompilerVersionMajor()
DevicegetCompilerVersionMajor in interface DeviceDevice.getCompilerVersion()public int getCompilerVersionMinor()
DevicegetCompilerVersionMinor in interface DeviceDevice.getCompilerVersion()public java.lang.String getDriverVersion()
getDriverVersion in interface Devicepublic int getDriverVersionMajor()
DevicegetDriverVersionMajor in interface DeviceDevice.getDriverVersion()public int getDriverVersionMinor()
DevicegetDriverVersionMinor in interface DeviceDevice.getDriverVersion()public java.lang.String getName()
public java.lang.String getVendor()
public java.lang.String toString()
toString in class java.lang.Object