Struct glium::program::ComputeCommand
source · #[repr(C)]pub struct ComputeCommand {
pub num_groups_x: c_uint,
pub num_groups_y: c_uint,
pub num_groups_z: c_uint,
}
Expand description
Represents a compute shader command waiting to be dispatched.
Fields§
§num_groups_x: c_uint
Number of X groups.
num_groups_y: c_uint
Number of Y groups.
num_groups_z: c_uint
Number of Z groups.
Trait Implementations§
source§impl Clone for ComputeCommand
impl Clone for ComputeCommand
source§fn clone(&self) -> ComputeCommand
fn clone(&self) -> ComputeCommand
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ComputeCommand
impl Debug for ComputeCommand
source§impl UniformBlock for ComputeCommand
impl UniformBlock for ComputeCommand
source§fn matches(
layout: &BlockLayout,
base_offset: usize
) -> Result<(), LayoutMismatchError>
fn matches( layout: &BlockLayout, base_offset: usize ) -> Result<(), LayoutMismatchError>
Checks whether the uniforms’ layout matches the given block if
Self
starts at
the given offset.source§fn build_layout(base_offset: usize) -> BlockLayout
fn build_layout(base_offset: usize) -> BlockLayout
Builds the
BlockLayout
corresponding to the current object.impl Copy for ComputeCommand
Auto Trait Implementations§
impl RefUnwindSafe for ComputeCommand
impl Send for ComputeCommand
impl Sync for ComputeCommand
impl Unpin for ComputeCommand
impl UnwindSafe for ComputeCommand
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> Content for Twhere
T: Copy,
impl<T> Content for Twhere T: Copy,
source§unsafe fn read<F, E>(size: usize, f: F) -> Result<T, E>where
F: FnOnce(&mut T) -> Result<(), E>,
unsafe fn read<F, E>(size: usize, f: F) -> Result<T, E>where F: FnOnce(&mut T) -> Result<(), E>,
Prepares an output buffer, then turns this buffer into an
Owned
.
User-provided closure F
must only write to and not read from &mut Self
.source§fn get_elements_size() -> usize
fn get_elements_size() -> usize
Returns the size of each element.
source§fn to_void_ptr(&self) -> *const ()
fn to_void_ptr(&self) -> *const ()
Produces a pointer to the data.
source§fn ref_from_ptr<'a>(ptr: *mut (), size: usize) -> Option<*mut T>
fn ref_from_ptr<'a>(ptr: *mut (), size: usize) -> Option<*mut T>
Builds a pointer to this type from a raw pointer.
source§fn is_size_suitable(size: usize) -> bool
fn is_size_suitable(size: usize) -> bool
Returns true if the size is suitable to store a type like this.