summaryrefslogtreecommitdiffstats
path: root/src/com/jogamp/opencl/CLDevice.java
diff options
context:
space:
mode:
authorMichael Bien <[email protected]>2011-03-29 02:45:16 +0200
committerMichael Bien <[email protected]>2011-03-29 02:45:16 +0200
commit612fd3e9e9c157cc28d42791fd04711701def6e3 (patch)
tree45f5ae34d90091945aaa681d2ebb99a3610813a2 /src/com/jogamp/opencl/CLDevice.java
parent3e5066589244d812a218433ab25fe6d6f6e1fe84 (diff)
added CLDeviceFilters utility api.
Diffstat (limited to 'src/com/jogamp/opencl/CLDevice.java')
-rw-r--r--src/com/jogamp/opencl/CLDevice.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/com/jogamp/opencl/CLDevice.java b/src/com/jogamp/opencl/CLDevice.java
index d652d122..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;
@@ -654,6 +655,17 @@ public final class CLDevice extends CLObject {
}
/**
+ * 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.
*/
@CLProperty("CL_DEVICE_EXTENSIONS")