diff options
author | Sven Gothel <[email protected]> | 2011-05-01 07:06:45 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2011-05-01 07:06:45 +0200 |
commit | dab2ffd696b5f9ccb192834c3e50132fad96a30a (patch) | |
tree | a174ad04342f32002197171eb895b2435fc42f49 /src/com/jogamp/opencl/CLDevice.java | |
parent | 454f81a14da543faebae4c8e6adebb3256a2e646 (diff) | |
parent | abcef28580df7ba0176390fe6d0a0eb1d969183d (diff) |
Merge remote-tracking branch 'mbien/master'
Diffstat (limited to 'src/com/jogamp/opencl/CLDevice.java')
-rw-r--r-- | src/com/jogamp/opencl/CLDevice.java | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/src/com/jogamp/opencl/CLDevice.java b/src/com/jogamp/opencl/CLDevice.java index fd1d93f3..1e9a94dd 100644 --- a/src/com/jogamp/opencl/CLDevice.java +++ b/src/com/jogamp/opencl/CLDevice.java @@ -33,6 +33,7 @@ import com.jogamp.common.nio.PointerBuffer; import com.jogamp.common.os.Platform; import java.nio.Buffer; import java.nio.ByteBuffer; +import java.nio.ByteOrder; import java.util.ArrayList; import java.util.Collections; import java.util.EnumSet; @@ -637,12 +638,12 @@ public final class CLDevice extends CLObject { } /** - * Returns {@link #isExtensionAvailable}("cl_khr_gl_sharing") || {@link #isExtensionAvailable}("cl_apple_gl_sharing"). + * Returns {@link #isExtensionAvailable}("cl_khr_gl_sharing") || {@link #isExtensionAvailable}("cl_APPLE_gl_sharing"). * @see #getExtensions() */ - @CLProperty("cl_khr_gl_sharing | cl_apple_gl_sharing") + @CLProperty("cl_khr_gl_sharing | cl_APPLE_gl_sharing") public boolean isGLMemorySharingSupported() { - return isExtensionAvailable("cl_khr_gl_sharing") || isExtensionAvailable("cl_apple_gl_sharing"); + return isExtensionAvailable("cl_khr_gl_sharing") || isExtensionAvailable("cl_APPLE_gl_sharing"); } /** @@ -652,6 +653,17 @@ public final class CLDevice extends CLObject { public boolean isExtensionAvailable(String extension) { return getExtensions().contains(extension); } + + /** + * Returns {@link ByteOrder#LITTLE_ENDIAN} or {@link ByteOrder#BIG_ENDIAN}. + */ + public ByteOrder getByteOrder() { + if(isLittleEndian()) { + return ByteOrder.LITTLE_ENDIAN; + }else{ + return ByteOrder.BIG_ENDIAN; + } + } /** * Returns all device extension names as unmodifiable Set. |