com.jogamp.opencl
Class CLSampler

java.lang.Object
  extended by com.jogamp.opencl.CLSampler
All Implemented Interfaces:
AutoCloseable, CLResource

public class CLSampler
extends Object
implements CLResource

Object representing an OpenCL sampler.

Author:
Michael Bien
See Also:
CLContext.createSampler(com.jogamp.opencl.CLSampler.AddressingMode, com.jogamp.opencl.CLSampler.FilteringMode, boolean)

Nested Class Summary
static class CLSampler.AddressingMode
           
static class CLSampler.FilteringMode
           
 
Field Summary
protected  CL cl
           
protected  CLContext context
           
 long ID
          The OpenCL object handle.
 
Method Summary
 void close()
          Deprecated. This method is not intended to be called from client code.
 CLSampler.AddressingMode getAddressingMode()
           
 CLContext getContext()
          Returns the context for this OpenCL object.
 CLSampler.FilteringMode getFilteringMode()
           
 long getID()
          Returns the OpenCL object handle
 CLPlatform getPlatform()
          Returns the platform for this OpenCL object.
 boolean hasNormalizedCoords()
           
 void release()
          Releases the OpenCL resource.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ID

public final long ID
The OpenCL object handle.


context

protected CLContext context

cl

protected final CL cl
Method Detail

getFilteringMode

public CLSampler.FilteringMode getFilteringMode()

getAddressingMode

public CLSampler.AddressingMode getAddressingMode()

hasNormalizedCoords

public boolean hasNormalizedCoords()

release

public void release()
Description copied from interface: CLResource
Releases the OpenCL resource.

Specified by:
release in interface CLResource

close

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

Implementation detail. TODO remove as soon we have extension methods.

Specified by:
close in interface AutoCloseable
See Also:
AutoCloseable

getContext

public CLContext getContext()
Returns the context for this OpenCL object.


getPlatform

public CLPlatform getPlatform()
Returns the platform for this OpenCL object.


getID

public long getID()
Returns the OpenCL object handle


toString

public String toString()
Overrides:
toString in class Object