/** * Return the value specified by normalized_coords argument to CLContext.createSampler. */ @InfoName("CL_SAMPLER_NORMALIZED_COORDS") public boolean getNormalizedCoords() { return infos.getBool(getEntity(), CL_SAMPLER_NORMALIZED_COORDS); }
/** * Calls <a href="http://www.khronos.org/registry/cl/sdk/1.2/docs/man/xhtml/clCreateSampler.html">clCreateSampler</a>.<br> */ @SuppressWarnings("deprecation") public CLSampler createSampler(boolean normalized_coords, AddressingMode addressing_mode, FilterMode filter_mode) { ReusablePointers ptrs = ReusablePointers.get(); Pointer<Integer> pErr = ptrs.pErr; long sampler = CL.clCreateSampler( getEntity(), normalized_coords ? CL_TRUE : CL_FALSE, (int) addressing_mode.value(), (int) filter_mode.value(), getPeer(pErr) ); error(pErr.getInt()); return new CLSampler(sampler); }
/** * Calls <a href="http://www.khronos.org/registry/cl/sdk/1.2/docs/man/xhtml/clCreateSampler.html">clCreateSampler</a>.<br> */ @SuppressWarnings("deprecation") public CLSampler createSampler(boolean normalized_coords, AddressingMode addressing_mode, FilterMode filter_mode) { ReusablePointers ptrs = ReusablePointers.get(); Pointer<Integer> pErr = ptrs.pErr; long sampler = CL.clCreateSampler( getEntity(), normalized_coords ? CL_TRUE : CL_FALSE, (int) addressing_mode.value(), (int) filter_mode.value(), getPeer(pErr) ); error(pErr.getInt()); return new CLSampler(sampler); }
/** * Return the value specified by normalized_coords argument to CLContext.createSampler. */ @InfoName("CL_SAMPLER_NORMALIZED_COORDS") public boolean getNormalizedCoords() { return infos.getBool(getEntity(), CL_SAMPLER_NORMALIZED_COORDS); }
@Override protected void clear() { error(CL.clReleaseSampler(getEntity())); }
@Override protected void clear() { error(CL.clReleaseSampler(getEntity())); }
/** * Return the value specified by filter_mode argument to CLContext.createSampler. */ @InfoName("CL_SAMPLER_FILTER_MODE") public FilterMode getFilterMode() { return FilterMode.getEnum(infos.getInt(getEntity(), CL_SAMPLER_FILTER_MODE)); }
/** * Return the value specified by addressing_mode argument to CLContext.createSampler. */ @InfoName("CL_SAMPLER_ADDRESSING_MODE") public AddressingMode getAddressingMode() { return AddressingMode.getEnum(infos.getInt(getEntity(), CL_SAMPLER_ADDRESSING_MODE)); }
/** * Return the value specified by filter_mode argument to CLContext.createSampler. */ @InfoName("CL_SAMPLER_FILTER_MODE") public FilterMode getFilterMode() { return FilterMode.getEnum(infos.getInt(getEntity(), CL_SAMPLER_FILTER_MODE)); }
/** * Return the value specified by addressing_mode argument to CLContext.createSampler. */ @InfoName("CL_SAMPLER_ADDRESSING_MODE") public AddressingMode getAddressingMode() { return AddressingMode.getEnum(infos.getInt(getEntity(), CL_SAMPLER_ADDRESSING_MODE)); }