Struct ocl::Image[][src]

pub struct Image<T: OclPrm> { /* fields omitted */ }

A section of device memory which represents one or many images.

Use ::builder for an easy way to create. [UNIMPLEMENTED]

Methods

impl<T: OclPrm> Image<T>
[src]

Returns a list of supported image formats.

Returns an ImageBuilder. This is the recommended method to create a new Image.

Returns a new Image.

Prefer ::builder to create a new image.

Returns a new Image from an existant GL texture2D/3D.

Returns a new Image from an existant renderbuffer.

Returns an image command builder used to read, write, copy, etc.

Call .enq() to enqueue the command.

See the command builder documentation for more details.

Returns an image command builder set to read.

Call .enq() to enqueue the command.

See the command builder documentation for more details.

Returns an image command builder set to write.

Call .enq() to enqueue the command.

See the command builder documentation for more details.

Returns a command builder used to map data for reading or writing.

Call .enq() to enqueue the command.

Safety

The caller must ensure that only one mapping of a particular memory region exists at a time.

See the command builder documentation for more details.

Changes the default queue.

Returns a ref for chaining i.e.:

image.set_default_queue(queue).write(....);

[NOTE]: Even when used as above, the queue is changed permanently, not just for the one call. Changing the queue is cheap so feel free to change as often as needed.

The new queue must be associated with a valid device.

Returns a reference to the default queue.

Returns this image's dimensions.

Returns the total number of pixels in this image.

Returns the length of each pixel element.

Returns the total number of pixel elements in this image. Equivalent to its length.

Get information about this image.

Returns info about this image's memory.

Returns a reference to the core pointer wrapper, usable by functions in the core module.

Methods from Deref<Target = MemCore>

Returns a pointer, do not store it.

Trait Implementations

impl<T: Clone + OclPrm> Clone for Image<T>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T: Debug + OclPrm> Debug for Image<T>
[src]

Formats the value using the given formatter. Read more

impl<T: OclPrm> Display for Image<T>
[src]

Formats the value using the given formatter. Read more

impl<T: OclPrm> Deref for Image<T>
[src]

The resulting type after dereferencing.

Dereferences the value.

impl<T: OclPrm> DerefMut for Image<T>
[src]

Mutably dereferences the value.

impl<T: OclPrm> AsMem<T> for Image<T>
[src]

impl<'a, T> MemCmdRw for Image<T> where
    T: OclPrm
[src]

impl<'a, T> MemCmdRw for &'a Image<T> where
    T: OclPrm
[src]

impl<'a, T> MemCmdRw for &'a mut Image<T> where
    T: OclPrm
[src]

impl<'a, T> MemCmdAll for Image<T> where
    T: OclPrm
[src]

impl<'a, T> MemCmdAll for &'a Image<T> where
    T: OclPrm
[src]

impl<'a, T> MemCmdAll for &'a mut Image<T> where
    T: OclPrm
[src]

Auto Trait Implementations

impl<T> Send for Image<T>

impl<T> Sync for Image<T>