Public Member Functions | Protected Member Functions | Properties

Cloo.ComputeSampler Class Reference

Represents an OpenCL sampler. More...

Inheritance diagram for Cloo.ComputeSampler:
Cloo.ComputeResource Cloo.ComputeObject

List of all members.

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.

Detailed Description

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.

See also:
ComputeImage

Constructor & Destructor Documentation

Cloo.ComputeSampler.ComputeSampler ( ComputeContext  context,
bool  normalizedCoords,
ComputeImageAddressing  addressing,
ComputeImageFiltering  filtering 
)

Creates a new ComputeSampler.

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

Member Function Documentation

override void Cloo.ComputeSampler.Dispose ( bool  manual  )  [protected, virtual]

Implements Cloo.ComputeResource.

override string Cloo.ComputeSampler.ToString (  ) 

Gets the string representation of the ComputeSampler.

Returns:
The string representation of the ComputeSampler.

Reimplemented from Cloo.ComputeObject.


Property Documentation

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.


The documentation for this class was generated from the following file: