diff options
author | Michael Bien <[email protected]> | 2010-03-16 22:55:32 +0100 |
---|---|---|
committer | Michael Bien <[email protected]> | 2010-03-16 22:55:32 +0100 |
commit | 36a289538cdb9373d8eb7700e616f019231ab591 (patch) | |
tree | 6310f16df3195b3d7553dde34ef52bca84270461 /src/com/mbien/opencl/CLDevice.java | |
parent | 919d8e9f992c07ab18ddd6d192d6747e8d7aa40b (diff) |
get(GL)Context() and getCL() getters.
fix in isGLMemorySharingSupported() on mac.
javadoc fixes.
Diffstat (limited to 'src/com/mbien/opencl/CLDevice.java')
-rw-r--r-- | src/com/mbien/opencl/CLDevice.java | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/com/mbien/opencl/CLDevice.java b/src/com/mbien/opencl/CLDevice.java index 01f9211f..d70f2afd 100644 --- a/src/com/mbien/opencl/CLDevice.java +++ b/src/com/mbien/opencl/CLDevice.java @@ -416,7 +416,7 @@ public final class CLDevice extends CLObject { } /** - * Returns the command-queue properties properties supported by the device. + * Returns the command-queue properties supported by the device. */ public EnumSet<CLCommandQueue.Mode> getQueueProperties() { return CLCommandQueue.Mode.valuesOf((int)deviceInfo.getLong(CL_DEVICE_QUEUE_PROPERTIES)); @@ -455,27 +455,27 @@ public final class CLDevice extends CLObject { } /** - * Returns {@link #getExtensions()}.contains("cl_khr_fp16"); + * Returns {@link #isExtensionAvailable("cl_khr_fp16"); * @see #getExtensions() */ public boolean isHalfFPAvailable() { - return getExtensions().contains("cl_khr_fp16"); + return isExtensionAvailable("cl_khr_fp16"); } /** - * Returns {@link #getExtensions()}.contains("cl_khr_fp64"); + * Returns {@link #isExtensionAvailable("cl_khr_fp64"); * @see #getExtensions() */ public boolean isDoubleFPAvailable() { - return getExtensions().contains("cl_khr_fp64"); + return isExtensionAvailable("cl_khr_fp64"); } /** - * Returns {@link #getExtensions()}.contains("cl_khr_gl_sharing"); + * Returns {@link #isExtensionAvailable("cl_khr_gl_sharing") || isExtensionAvailable("cl_apple_gl_sharing"); * @see #getExtensions() */ public boolean isGLMemorySharingSupported() { - return getExtensions().contains("cl_khr_gl_sharing"); + return isExtensionAvailable("cl_khr_gl_sharing") || isExtensionAvailable("cl_apple_gl_sharing"); } /** |