Package com.jogamp.opencl
Class CLSampler
- java.lang.Object
-
- com.jogamp.opencl.CLObject
-
- com.jogamp.opencl.CLSampler
-
- All Implemented Interfaces:
AutoCloseable
,CLResource
,AutoCloseable
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
Nested Classes Modifier and Type Class Description static class
CLSampler.AddressingMode
static class
CLSampler.FilteringMode
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description 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 ifCLResource.release()
has been called.void
release()
Releases the OpenCL resource.-
Methods inherited from class com.jogamp.opencl.CLObject
getContext, getID, getPlatform, toString
-
-
-
-
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 interfaceCLResource
-
close
@Deprecated public final void close()
Deprecated.This method is not intended to be called from client code.Implementation detail, satisfyingAutoCloseable
. Might be remove as soon we have extension methods, but shall validate with Java 1.5 specs.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceAutoCloseable
- See Also:
AutoCloseable
-
isReleased
public boolean isReleased()
Description copied from interface:CLResource
Returns true ifCLResource.release()
has been called.- Specified by:
isReleased
in interfaceCLResource
-
-