Package com.jme3.opencl
Interface Platform
- All Known Implementing Classes:
LwjglPlatform
public interface Platform
A wrapper for an OpenCL platform. A platform is the highest object in the
object hierarchy, it creates the
This class is mostly used within
Device
s which are then used to
create the Context
.This class is mostly used within
PlatformChooser
.-
Method Summary
Modifier and TypeMethodDescriptionCollection<? extends String>
getName()
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
-
Method Details
-
getDevices
- Returns:
- the list of available devices for this platform
-
getProfile
String getProfile()- Returns:
- The profile string
-
isFullProfile
boolean isFullProfile()- Returns:
true
if this platform implements the full profile
-
isEmbeddedProfile
boolean isEmbeddedProfile()- Returns:
true
if this platform implements the embedded profile
-
getVersion
String getVersion()- Returns:
- the version string
-
getVersionMajor
int getVersionMajor()Extracts the major version from the version string- Returns:
- the major version
-
getVersionMinor
int getVersionMinor()Extracts the minor version from the version string- Returns:
- the minor version
-
getName
String getName()- Returns:
- the name of the platform
-
getVendor
String getVendor()- Returns:
- the vendor of the platform
-
hasOpenGLInterop
boolean hasOpenGLInterop()Queries if this platform supports OpenGL interop at all. This value has also to be tested for every device.- Returns:
true
if OpenGL interop is supported
-
hasExtension
Queries if the specified extension is available. This value has to be tested also for every device.- Parameters:
extension
- the extension string- Returns:
true
if this extension is supported by the platform (however, not all devices might support it as well)
-
getExtensions
Collection<? extends String> getExtensions()- Returns:
- All available extensions
-