Platforms to show: All Mac Windows Linux Cross-Platform

Back to CLSamplerMBS class.

CLSamplerMBS.AddressingMode as UInt32

Type Topic Plugin Version macOS Windows Linux iOS Targets
method OpenCL MBS MacFrameworks Plugin 11.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Return the value specified by addressingmode argument to Constructor.

CLSamplerMBS.Constructor(Context as CLContextMBS, NormalizedCoords as Boolean, AddressingMode as UInt32, FilterMode as UInt32)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method OpenCL MBS MacFrameworks Plugin 11.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Creates a sampler object.

context: Must be a valid OpenCL context.

NormalizedCoords: Determines if the image coordinates specified are normalized (if normalized_coords is true) or not (if normalized_coords is false).

AddressingMode: Specifies how out-of-range image coordinates are handled when reading from an image. This can be set to kAddressRepeat, kAddressClampToEdge, kAddressClamp, and kAddressNone.

FilterMode: Specifies the type of filter that must be applied when reading an image. This can be kFilterNearest or kFilterLinear.

Lasterror is set.

A sampler object describes how to sample an image when the image is read in the kernel. The built-in functions to read from an image in a kernel take a sampler as an argument. The sampler arguments to the image read function can be sampler objects created using OpenCL functions and passed as argument values to the kernel or can be samplers declared inside a kernel. In this section we discuss how sampler objects are created using OpenCL functions.

CLSamplerMBS.Context as CLContextMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method OpenCL MBS MacFrameworks Plugin 11.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Return the context specified when the sampler is created.

CLSamplerMBS.FilterMode as UInt32

Type Topic Plugin Version macOS Windows Linux iOS Targets
method OpenCL MBS MacFrameworks Plugin 11.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Return the value specified by filterMode argument to Constructor.

CLSamplerMBS.NormalizedCoords as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method OpenCL MBS MacFrameworks Plugin 11.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Return the value specified by normalizedCoords argument to Constructor.

CLSamplerMBS.ReferenceCount as UInt32

Type Topic Plugin Version macOS Windows Linux iOS Targets
method OpenCL MBS MacFrameworks Plugin 11.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Return the sampler reference count.

The reference count returned should be considered immediately stale. It is unsuitable for general use in applications. This feature is provided for identifying memory leaks.

The items on this page are in the following plugins: MBS MacFrameworks Plugin.


The biggest plugin in space...