Represents an OpenCL sampler. More...
Public Member Functions | |
ComputeSampler (ComputeContext context, bool normalizedCoords, ComputeImageAddressing addressing, ComputeImageFiltering filtering) | |
Creates a new ComputeSampler . | |
override string | ToString () |
Gets the string representation of the ComputeSampler . | |
Protected Member Functions | |
override void | Dispose (bool manual) |
Properties | |
ComputeContext | Context [get] |
Gets the ComputeContext of the ComputeSampler . | |
ComputeImageAddressing | Addressing [get] |
Gets the ComputeImageAddressing mode of the ComputeSampler . | |
ComputeImageFiltering | Filtering [get] |
Gets the ComputeImageFiltering mode of the ComputeSampler . | |
bool | NormalizedCoords [get] |
Gets the state of usage of normalized x, y and z coordinates when accessing a ComputeImage in a ComputeKernel through the ComputeSampler . |
Represents an OpenCL sampler.
An object that describes how to sample an image when the image is read in the kernel. The image read functions take a sampler as an argument. The sampler specifies the image addressing-mode i.e. how out-of-range image coordinates are handled, the filtering mode, and whether the input image coordinate is a normalized or unnormalized value.
Cloo.ComputeSampler.ComputeSampler | ( | ComputeContext | context, | |
bool | normalizedCoords, | |||
ComputeImageAddressing | addressing, | |||
ComputeImageFiltering | filtering | |||
) |
Creates a new ComputeSampler
.
context | A ComputeContext . | |
normalizedCoords | The usage state of normalized coordinates when accessing a ComputeImage in a ComputeKernel . | |
addressing | The ComputeImageAddressing mode of the ComputeSampler . Specifies how out-of-range image coordinates are handled while reading. | |
filtering | The ComputeImageFiltering mode of the ComputeSampler . Specifies the type of filter that must be applied when reading data from an image. |
override void Cloo.ComputeSampler.Dispose | ( | bool | manual | ) | [protected, virtual] |
Implements Cloo.ComputeResource.
override string Cloo.ComputeSampler.ToString | ( | ) |
Gets the string representation of the ComputeSampler
.
ComputeSampler
. Reimplemented from Cloo.ComputeObject.
ComputeImageAddressing Cloo.ComputeSampler.Addressing [get] |
Gets the ComputeImageAddressing
mode of the ComputeSampler
.
ComputeContext Cloo.ComputeSampler.Context [get] |
Gets the ComputeContext
of the ComputeSampler
.
ComputeImageFiltering Cloo.ComputeSampler.Filtering [get] |
Gets the ComputeImageFiltering
mode of the ComputeSampler
.
bool Cloo.ComputeSampler.NormalizedCoords [get] |
Gets the state of usage of normalized x, y and z coordinates when accessing a ComputeImage
in a ComputeKernel
through the ComputeSampler
.