Package com.jme3.opencl.lwjgl
Class LwjglPlatform
java.lang.Object
com.jme3.opencl.lwjgl.LwjglPlatform
- All Implemented Interfaces:
Platform
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionCollection<? extends String>
getName()
org.lwjgl.opencl.CLPlatform
int
Extracts the major version from the version stringint
Extracts the minor version from the version stringboolean
hasExtension
(String extension) Queries if the specified extension is available.boolean
Queries if this platform supports OpenGL interop at all.boolean
boolean
toString()
-
Constructor Details
-
LwjglPlatform
public LwjglPlatform(org.lwjgl.opencl.CLPlatform platform)
-
-
Method Details
-
getPlatform
public org.lwjgl.opencl.CLPlatform getPlatform() -
getDevices
- Specified by:
getDevices
in interfacePlatform
- Returns:
- the list of available devices for this platform
-
getProfile
- Specified by:
getProfile
in interfacePlatform
- Returns:
- The profile string
-
isFullProfile
public boolean isFullProfile()- Specified by:
isFullProfile
in interfacePlatform
- Returns:
true
if this platform implements the full profile
-
isEmbeddedProfile
public boolean isEmbeddedProfile()- Specified by:
isEmbeddedProfile
in interfacePlatform
- Returns:
true
if this platform implements the embedded profile
-
getVersion
- Specified by:
getVersion
in interfacePlatform
- Returns:
- the version string
-
getVersionMajor
public int getVersionMajor()Description copied from interface:Platform
Extracts the major version from the version string- Specified by:
getVersionMajor
in interfacePlatform
- Returns:
- the major version
-
getVersionMinor
public int getVersionMinor()Description copied from interface:Platform
Extracts the minor version from the version string- Specified by:
getVersionMinor
in interfacePlatform
- Returns:
- the minor version
-
getName
-
getVendor
-
hasExtension
Description copied from interface:Platform
Queries if the specified extension is available. This value has to be tested also for every device.- Specified by:
hasExtension
in interfacePlatform
- Parameters:
extension
- the extension string- Returns:
true
if this extension is supported by the platform (however, not all devices might support it as well)
-
hasOpenGLInterop
public boolean hasOpenGLInterop()Description copied from interface:Platform
Queries if this platform supports OpenGL interop at all. This value has also to be tested for every device.- Specified by:
hasOpenGLInterop
in interfacePlatform
- Returns:
true
if OpenGL interop is supported
-
getExtensions
- Specified by:
getExtensions
in interfacePlatform
- Returns:
- All available extensions
-
toString
-