com.jogamp.opencl
Class CLSampler

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

public class CLSampler
extends CLObject

Object representing an OpenCL sampler.

Author:
Michael Bien, et al.
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
 
Fields inherited from class com.jogamp.opencl.CLObject
context, ID
 
Method Summary
 void close()
          Deprecated. This method is not intended to be called from client code.
 CLSampler.AddressingMode getAddressingMode()
           
 CLSampler.FilteringMode getFilteringMode()
           
 boolean hasNormalizedCoords()
           
 boolean isReleased()
          Returns true if CLResource.release() has been called.
 void release()
          Releases the OpenCL resource.
 
Methods inherited from class com.jogamp.opencl.CLObject
getContext, getID, getPlatform, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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, 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