com.jogamp.opencl
Class CLImage2d<B extends Buffer>

java.lang.Object
  extended by com.jogamp.opencl.CLObject
      extended by com.jogamp.opencl.CLMemory<B>
          extended by com.jogamp.opencl.CLImage<B>
              extended by com.jogamp.opencl.CLImage2d<B>
All Implemented Interfaces:
AutoCloseable, CLResource
Direct Known Subclasses:
CLGLImage2d

public class CLImage2d<B extends Buffer>
extends CLImage<B>

Author:
Michael Bien

Nested Class Summary
 
Nested classes/interfaces inherited from class com.jogamp.opencl.CLImage
CLImage.CLImageInfoAccessor
 
Nested classes/interfaces inherited from class com.jogamp.opencl.CLMemory
CLMemory.GLObjectType, CLMemory.Map, CLMemory.Mem
 
Field Summary
 
Fields inherited from class com.jogamp.opencl.CLImage
format, height, width
 
Fields inherited from class com.jogamp.opencl.CLMemory
clCapacity, elementSize, FLAGS, size
 
Fields inherited from class com.jogamp.opencl.CLObject
context, ID
 
Constructor Summary
protected CLImage2d(CLContext context, B directBuffer, CLImageFormat format, CLImage.CLImageInfoAccessor accessor, int width, int height, long id, int flags)
           
 
Method Summary
<T extends Buffer>
CLImage2d<T>
cloneWith(T directBuffer)
          Returns a new instance of CLMemory pointing to the same CLResource but using a different Buffer.
 void close()
          Deprecated. This method is not intended to be called from client code.
 boolean isReleased()
          Returns true if CLResource.release() has been called.
 String toString()
           
 
Methods inherited from class com.jogamp.opencl.CLImage
createUninitializedImageFormat, getElementSize, getFormat, getHeight, getRowPitch, getWidth
 
Methods inherited from class com.jogamp.opencl.CLMemory
equals, getBuffer, getCL, getCLCapacity, getCLSize, getConfig, getMapCount, getNIOCapacity, getNIOSize, getSizeImpl, hashCode, initCLCapacity, isHostPointerFlag, isReadOnly, isReadWrite, isWriteOnly, registerDestructorCallback, release, use
 
Methods inherited from class com.jogamp.opencl.CLObject
getContext, getID, getPlatform
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CLImage2d

protected CLImage2d(CLContext context,
                    B directBuffer,
                    CLImageFormat format,
                    CLImage.CLImageInfoAccessor accessor,
                    int width,
                    int height,
                    long id,
                    int flags)
Method Detail

cloneWith

public <T extends Buffer> CLImage2d<T> cloneWith(T directBuffer)
Description copied from class: CLMemory
Returns a new instance of CLMemory pointing to the same CLResource but using a different Buffer.

Specified by:
cloneWith in class CLMemory<B extends Buffer>

toString

public String toString()
Overrides:
toString in class CLMemory<B extends Buffer>

close

@Deprecated
public final void close()
Deprecated. This method is not intended to be called from client code.

Implementation detail, satisfying AutoCloseable. Might be remove as soon we have extension methods, but shall validate with Java 1.5 specs.

Specified by:
close in interface AutoCloseable
See Also:
AutoCloseable

isReleased

public boolean isReleased()
Description copied from interface: CLResource
Returns true if CLResource.release() has been called.

Specified by:
isReleased in interface CLResource