[−][src]Struct sfml_rust::compute::compu_state::CompuState
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]
&mut self,
data: Vec<u8>,
dimensions: (u32, u32),
stride: u32,
device: Arc<Device>
) -> Arc<CompuBufferHandle>
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]
&self,
handle: Arc<CompuBufferHandle>,
data: Vec<u8>
)
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]
&mut self,
filename: String,
device: Arc<Device>
) -> Arc<CompuKernelHandle>
pub fn get_kernel_handle(
&self,
kernel_name: String
) -> Option<Arc<CompuKernelHandle>>
[src]
&self,
kernel_name: String
) -> Option<Arc<CompuKernelHandle>>
pub fn compute_commands(
&mut self,
compute_frame: CompuFrame,
command_buffer: AutoCommandBufferBuilder,
canvas: &CanvasState
) -> AutoCommandBufferBuilder
[src]
&mut self,
compute_frame: CompuFrame,
command_buffer: AutoCommandBufferBuilder,
canvas: &CanvasState
) -> AutoCommandBufferBuilder
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]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
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]
SS: SubsetOf<SP>,