/*
* Copyright © 2012 Intel Corporation
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library. If not, see .
*
*/
#ifndef __CL_SAMPLER_H__
#define __CL_SAMPLER_H__
#include
#include "CL/cl.h"
/* How to access images */
typedef struct _cl_sampler {
uint64_t magic; /* To identify it as a sampler object */
volatile int ref_n; /* This object is reference counted */
cl_sampler prev, next; /* We chain the samplers in the allocator */
cl_context ctx; /* Context it belongs to */
cl_bool normalized_coords; /* Are coordinates normalized? */
cl_addressing_mode address; /* CLAMP / REPEAT and so on... */
cl_filter_mode filter; /* LINEAR / NEAREST mostly */
void *pdata; /* Private data used by each driver. */
} _cl_sampler;
#endif /* __CL_SAMPLER_H__ */