Struct rust_gpu_tools::LocalBuffer[][src]

pub struct LocalBuffer<T> { /* fields omitted */ }
Expand description

A buffer on the GPU.

The concept of a local buffer is from OpenCL. In CUDA you don’t allocate a buffer directly via API call. Instead you pass in the amount of shared memory that should be used.

There can be at most a single local buffer per kernel. On CUDA a null pointer will be passed in, instead of an actual value. The memory that should get allocated is then passed into the kernel call automatically.

Implementations

Returns a new buffer of the specified length.

Trait Implementations

Formats the value using the given formatter. Read more

Converts into a C void pointer.

Returns the shared memory size. This is usally 0, except for LocalBuffers. This informations is used to allocate the memory correctly. Read more

Apply the kernel argument to the kernel.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.