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 |
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 |
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 |
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 |
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 |
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 |
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.