com.jogamp.opencl.llb
Interface CLSamplerBinding

All Known Subinterfaces:
CL, CLGL
All Known Implementing Classes:
CLAbstractImpl, CLImpl

public interface CLSamplerBinding

Java bindings to OpenCL sampler objects.

Author:
Michael Bien, GlueGen, et al.

Field Summary
static int CL_ADDRESS_CLAMP
           
static int CL_ADDRESS_CLAMP_TO_EDGE
           
static int CL_ADDRESS_MIRRORED_REPEAT
           
static int CL_ADDRESS_NONE
           
static int CL_ADDRESS_REPEAT
           
static int CL_FILTER_LINEAR
           
static int CL_FILTER_NEAREST
           
static int CL_SAMPLER_ADDRESSING_MODE
           
static int CL_SAMPLER_CONTEXT
           
static int CL_SAMPLER_FILTER_MODE
           
static int CL_SAMPLER_NORMALIZED_COORDS
           
static int CL_SAMPLER_REFERENCE_COUNT
           
 
Method Summary
 long clCreateSampler(long context, int normalized_coords, int addressing_mode, int filter_mode, int[] errcode_ret, int errcode_ret_offset)
          Interface to C language function:
cl_sampler clCreateSampler(cl_context context, cl_bool normalized_coords, cl_addressing_mode addressing_mode, cl_filter_mode filter_mode, cl_int * errcode_ret);
 long clCreateSampler(long context, int normalized_coords, int addressing_mode, int filter_mode, IntBuffer errcode_ret)
          Interface to C language function:
cl_sampler clCreateSampler(cl_context context, cl_bool normalized_coords, cl_addressing_mode addressing_mode, cl_filter_mode filter_mode, cl_int * errcode_ret);
 int clGetSamplerInfo(long sampler, int param_name, long param_value_size, Buffer param_value, PointerBuffer param_value_size_ret)
          Interface to C language function:
cl_int clGetSamplerInfo(cl_sampler sampler, cl_sampler_info param_name, size_t param_value_size, void * param_value, size_t * param_value_size_ret);
 int clReleaseSampler(long sampler)
          Interface to C language function:
cl_int clReleaseSampler(cl_sampler sampler);
 int clRetainSampler(long sampler)
          Interface to C language function:
cl_int clRetainSampler(cl_sampler sampler);
 

Field Detail

CL_ADDRESS_NONE

static final int CL_ADDRESS_NONE
See Also:
Constant Field Values

CL_ADDRESS_CLAMP_TO_EDGE

static final int CL_ADDRESS_CLAMP_TO_EDGE
See Also:
Constant Field Values

CL_ADDRESS_CLAMP

static final int CL_ADDRESS_CLAMP
See Also:
Constant Field Values

CL_ADDRESS_REPEAT

static final int CL_ADDRESS_REPEAT
See Also:
Constant Field Values

CL_ADDRESS_MIRRORED_REPEAT

static final int CL_ADDRESS_MIRRORED_REPEAT
See Also:
Constant Field Values

CL_FILTER_NEAREST

static final int CL_FILTER_NEAREST
See Also:
Constant Field Values

CL_FILTER_LINEAR

static final int CL_FILTER_LINEAR
See Also:
Constant Field Values

CL_SAMPLER_REFERENCE_COUNT

static final int CL_SAMPLER_REFERENCE_COUNT
See Also:
Constant Field Values

CL_SAMPLER_CONTEXT

static final int CL_SAMPLER_CONTEXT
See Also:
Constant Field Values

CL_SAMPLER_NORMALIZED_COORDS

static final int CL_SAMPLER_NORMALIZED_COORDS
See Also:
Constant Field Values

CL_SAMPLER_ADDRESSING_MODE

static final int CL_SAMPLER_ADDRESSING_MODE
See Also:
Constant Field Values

CL_SAMPLER_FILTER_MODE

static final int CL_SAMPLER_FILTER_MODE
See Also:
Constant Field Values
Method Detail

clCreateSampler

long clCreateSampler(long context,
                     int normalized_coords,
                     int addressing_mode,
                     int filter_mode,
                     IntBuffer errcode_ret)
Interface to C language function:
cl_sampler clCreateSampler(cl_context context, cl_bool normalized_coords, cl_addressing_mode addressing_mode, cl_filter_mode filter_mode, cl_int * errcode_ret);

Parameters:
errcode_ret - a direct or array-backed IntBuffer

clCreateSampler

long clCreateSampler(long context,
                     int normalized_coords,
                     int addressing_mode,
                     int filter_mode,
                     int[] errcode_ret,
                     int errcode_ret_offset)
Interface to C language function:
cl_sampler clCreateSampler(cl_context context, cl_bool normalized_coords, cl_addressing_mode addressing_mode, cl_filter_mode filter_mode, cl_int * errcode_ret);


clGetSamplerInfo

int clGetSamplerInfo(long sampler,
                     int param_name,
                     long param_value_size,
                     Buffer param_value,
                     PointerBuffer param_value_size_ret)
Interface to C language function:
cl_int clGetSamplerInfo(cl_sampler sampler, cl_sampler_info param_name, size_t param_value_size, void * param_value, size_t * param_value_size_ret);

Parameters:
param_value - a direct only Buffer
param_value_size_ret - a direct only PointerBuffer

clReleaseSampler

int clReleaseSampler(long sampler)
Interface to C language function:
cl_int clReleaseSampler(cl_sampler sampler);


clRetainSampler

int clRetainSampler(long sampler)
Interface to C language function:
cl_int clRetainSampler(cl_sampler sampler);