aboutsummaryrefslogtreecommitdiffstats
path: root/src/com/mbien/opencl/CLMemory.java
diff options
context:
space:
mode:
authorMichael Bien <[email protected]>2010-02-19 01:02:42 +0100
committerMichael Bien <[email protected]>2010-02-19 01:02:42 +0100
commit9542b173b10d2bb0eb492230025bdede638631b0 (patch)
treea18dd36b26cb02a59ca466ac46dd435302071874 /src/com/mbien/opencl/CLMemory.java
parent074e8a18e8f5f77168bde267ab87f3cf285f82be (diff)
fixed CLImage2d methods, range/offset buffers have now correct values for the third element.
javadoc fixes and two more factory methods for CLGLBuffer.
Diffstat (limited to 'src/com/mbien/opencl/CLMemory.java')
-rw-r--r--src/com/mbien/opencl/CLMemory.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/com/mbien/opencl/CLMemory.java b/src/com/mbien/opencl/CLMemory.java
index 2d12ca31..0c59e0c5 100644
--- a/src/com/mbien/opencl/CLMemory.java
+++ b/src/com/mbien/opencl/CLMemory.java
@@ -38,10 +38,12 @@ public abstract class CLMemory <B extends Buffer> implements CLResource {
this.ID = id;
}
+ /**
+ * Returns true if a host pointer must be specified on mem object creation.
+ */
protected static final boolean isHostPointerFlag(int flags) {
return (flags & CL_MEM_COPY_HOST_PTR) != 0
- || (flags & CL_MEM_USE_HOST_PTR) != 0
- || (flags & CL_MEM_ALLOC_HOST_PTR)!= 0;
+ || (flags & CL_MEM_USE_HOST_PTR) != 0;
}
protected static final int sizeOfBufferElem(Buffer buffer) {