1.3.3 Sampler Objects
(require opencl/c/5-3) | package: opencl |
procedure
(clCreateSampler ctxt normalized? addressing-mode filter-mode) → _cl_sampler/c ctxt : _cl_context/c normalized? : _cl_bool/c addressing-mode : _cl_addressing_mode/c filter-mode : _cl_filter_mode/c
procedure
(clRetainSampler sampler) → void
sampler : _cl_sampler/c
procedure
(clReleaseSampler sampler) → void
sampler : _cl_sampler/c
value
A dummy Racket function that refers callers to the other clGetSamplerInfo-based functions which access the true C function.
procedure
(clGetSamplerInfo:length sampler param_name) → _size_t/c sampler : _cl_sampler/c param_name : _cl_sampler_info/c
Returns the size of param_name field of the argument(s). Calls clGetSamplerInfo with values for param_value_size and param_value such that param_value_size_ret is queried.
procedure
(clGetSamplerInfo:_cl_uint sampler param_name) → _cl_uint/c sampler : _cl_sampler/c param_name : _cl_sampler_info/c
Returns the value associated with param_name for the argument(s). Implemented by clGetSamplerInfo with param_value_size set to (ctype-sizeof _cl_uint) so that the value is queried. Valid param_names are '(CL_SAMPLER_REFERENCE_COUNT).
procedure
(clGetSamplerInfo:_cl_context sampler param_name) → _cl_context/c sampler : _cl_sampler/c param_name : _cl_sampler_info/c
Returns the value associated with param_name for the argument(s). Implemented by clGetSamplerInfo with param_value_size set to (ctype-sizeof _cl_context) so that the value is queried. Valid param_names are '(CL_SAMPLER_CONTEXT).
procedure
(clGetSamplerInfo:_cl_addressing_mode sampler param_name) → _cl_addressing_mode/c sampler : _cl_sampler/c param_name : _cl_sampler_info/c
Returns the value associated with param_name for the argument(s). Implemented by clGetSamplerInfo with param_value_size set to (ctype-sizeof _cl_addressing_mode) so that the value is queried. Valid param_names are '(CL_SAMPLER_ADDRESSING_MODE).
procedure
(clGetSamplerInfo:_cl_filter_mode sampler param_name) → _cl_filter_mode/c sampler : _cl_sampler/c param_name : _cl_sampler_info/c
Returns the value associated with param_name for the argument(s). Implemented by clGetSamplerInfo with param_value_size set to (ctype-sizeof _cl_filter_mode) so that the value is queried. Valid param_names are '(CL_SAMPLER_FILTER_MODE).
procedure
(clGetSamplerInfo:_cl_bool sampler param_name) → _cl_bool/c sampler : _cl_sampler/c param_name : _cl_sampler_info/c
Returns the value associated with param_name for the argument(s). Implemented by clGetSamplerInfo with param_value_size set to (ctype-sizeof _cl_bool) so that the value is queried. Valid param_names are '(CL_SAMPLER_NORMALIZED_COORDS).
value
A contract for the return values of clGetSamplerInfo:generic. Its definition is: (or/c _cl_uint/c _cl_context/c _cl_addressing_mode/c _cl_filter_mode/c _cl_bool/c).
procedure
(clGetSamplerInfo:generic sampler param_name) → clGetSamplerInfo/c sampler : _cl_sampler/c param_name : _cl_sampler_info/c
Returns the value associated with param_name for the argument(s). Selects the appropriate clGetSamplerInfo-based function to extract the appropriate value, automatically providing the right length for variable length functions.