Top Fields Constructors Methods
com.jogamp.opencl

public Class CLImage3d<B extends Buffer>

extends CLImage<B extends Buffer>
Class Inheritance
Known Direct Subclasses
com.jogamp.opencl.gl.CLGLTexture3d
Imports
com.jogamp.common.nio.Buffers, com.jogamp.opencl.llb.CLImageBinding, java.nio.Buffer, .IntBuffer

Author
Michael Bien

Field Summary

Modifier and TypeField and Description
public final int
Inherited from com.jogamp.opencl.CLImage:
formatheightimageInfowidth

Constructor Summary

AccessConstructor and Description
private
CLImage3d(final CLContext context, final B directBuffer, final CLImageFormat format, final int width, final int height, final int depth, final long id, final int flags)

protected
CLImage3d(final CLContext context, final B directBuffer, final CLImageFormat format, final CLImage.CLImageInfoAccessor accessor, final int width, final int height, final int depth, final long id, final int flags)

Method Summary

Modifier and TypeMethod and Description
public <T extends Buffer> CLImage3d<T>
cloneWith(final T directBuffer)

Implements abstract com.jogamp.opencl.CLMemory.cloneWith.

Returns a new instance of CLMemory pointing to the same CLResource but using a different Buffer.
pack-priv static <B extends Buffer> CLImage3d<B>
createImage(final CLContext context, final B directBuffer, final int width, final int height, final int depth, final int rowPitch, final int slicePitch, final CLImageFormat format, final int flags)

public int
getDepth()

Returns the depth of this image in pixels.

public int
getSlicePitch()

Returns the size in bytes of a 2D slice of this 3D image.

public String
toString()

Overrides com.jogamp.opencl.CLMemory.toString.

Returns a string representation of the object.
Inherited from com.jogamp.opencl.CLImage:
createUninitializedImageFormatgetElementSizegetFormatgetHeightgetRowPitchgetWidth

Field Detail

depthback to summary
public final int depth

Constructor Detail

CLImage3dback to summary
private CLImage3d(final CLContext context, final B directBuffer, final CLImageFormat format, final int width, final int height, final int depth, final long id, final int flags)
CLImage3dback to summary
protected CLImage3d(final CLContext context, final B directBuffer, final CLImageFormat format, final CLImage.CLImageInfoAccessor accessor, final int width, final int height, final int depth, final long id, final int flags)

Method Detail

cloneWithback to summary
public <T extends Buffer> CLImage3d<T> cloneWith(final T directBuffer)

Implements abstract com.jogamp.opencl.CLMemory.cloneWith.

Doc from com.jogamp.opencl.CLMemory.cloneWith.

Returns a new instance of CLMemory pointing to the same CLResource but using a different Buffer.

Annotations
@Override
createImageback to summary
pack-priv static <B extends Buffer> CLImage3d<B> createImage(final CLContext context, final B directBuffer, final int width, final int height, final int depth, final int rowPitch, final int slicePitch, final CLImageFormat format, final int flags)
getDepthback to summary
public int getDepth()

Returns the depth of this image in pixels.

getSlicePitchback to summary
public int getSlicePitch()

Returns the size in bytes of a 2D slice of this 3D image.

toStringback to summary
public String toString()

Overrides com.jogamp.opencl.CLMemory.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object

Annotations
@Override