[][src]Struct sfml_rust::compute::compu_state::CompuState

pub struct CompuState { /* fields omitted */ }

State holding the compute buffers for computation and the kernels which will compute them

Methods

impl CompuState[src]

pub fn new() -> CompuState[src]

pub fn new_compute_buffer(
    &mut self,
    data: Vec<u8>,
    dimensions: (u32, u32),
    stride: u32,
    device: Arc<Device>
) -> Arc<CompuBufferHandle>
[src]

Creates a 2d compute buffer from incoming data

pub fn read_compute_buffer(&mut self, handle: Arc<CompuBufferHandle>) -> Vec<u8>[src]

Read the compute buffer back into a Vec (TODO BROKEN)

pub fn write_compute_buffer(
    &self,
    handle: Arc<CompuBufferHandle>,
    data: Vec<u8>
)
[src]

Write to the compute buffer, ostensibly overwriting what's already there

pub fn new_kernel(
    &mut self,
    filename: String,
    device: Arc<Device>
) -> Arc<CompuKernelHandle>
[src]

pub fn get_kernel_handle(
    &self,
    kernel_name: String
) -> Option<Arc<CompuKernelHandle>>
[src]

pub fn compute_commands(
    &mut self,
    compute_frame: CompuFrame,
    command_buffer: AutoCommandBufferBuilder,
    canvas: &CanvasState
) -> AutoCommandBufferBuilder
[src]

Auto Trait Implementations

impl Send for CompuState

impl Unpin for CompuState

impl Sync for CompuState

impl UnwindSafe for CompuState

impl RefUnwindSafe for CompuState

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> SetParameter for T[src]

impl<T> Same<T> for T[src]

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 
[src]

impl<T> Content for T[src]

impl<T> Erased for T[src]

impl<T> SafeBorrow<T> for T[src]