pub struct Pipeline<V: AttributeDescriptor> { /* private fields */ }
Expand description
Used to setup render or compute pipeline
Implementations§
Source§impl<V: AttributeDescriptor> Pipeline<V>
impl<V: AttributeDescriptor> Pipeline<V>
Sourcepub fn create_object_with_mesh<I>(
&self,
index: u32,
mesh: &MeshBuffer<V, I>,
) -> Object
pub fn create_object_with_mesh<I>( &self, index: u32, mesh: &MeshBuffer<V, I>, ) -> Object
Creates graphics object with mesh only
Sourcepub fn create_object_with_mesh_sampled<I>(
&self,
index: u32,
mesh: &MeshBuffer<V, I>,
sampler: Arc<GpuSamplerSet>,
) -> Object
pub fn create_object_with_mesh_sampled<I>( &self, index: u32, mesh: &MeshBuffer<V, I>, sampler: Arc<GpuSamplerSet>, ) -> Object
Creates graphics object with mesh and textures
Sourcepub fn create_object_with_mesh_array<I>(
&self,
index: u32,
mesh: &MeshBuffer<V, I>,
array: u32,
) -> Object
pub fn create_object_with_mesh_array<I>( &self, index: u32, mesh: &MeshBuffer<V, I>, array: u32, ) -> Object
Creates array of graphics objects with mesh
Sourcepub fn create_object_with_mesh_sampled_array<I>(
&self,
index: u32,
mesh: &MeshBuffer<V, I>,
sampler: Arc<GpuSamplerSet>,
array: u32,
) -> Object
pub fn create_object_with_mesh_sampled_array<I>( &self, index: u32, mesh: &MeshBuffer<V, I>, sampler: Arc<GpuSamplerSet>, array: u32, ) -> Object
Creates array of graphics objects with mesh and textures
Source§impl Pipeline<ComputeDescriptor>
impl Pipeline<ComputeDescriptor>
Sourcepub fn create_object_compute(&self, groups: [u32; 3]) -> Object
pub fn create_object_compute(&self, groups: [u32; 3]) -> Object
Creates compute object. Need to specify compute groups
Sourcepub fn create_object_compute_with_samplers(
&self,
groups: [u32; 3],
sampler: Arc<GpuSamplerSet>,
) -> Object
pub fn create_object_compute_with_samplers( &self, groups: [u32; 3], sampler: Arc<GpuSamplerSet>, ) -> Object
Creates compute object with samplers
Auto Trait Implementations§
impl<V> Freeze for Pipeline<V>
impl<V> !RefUnwindSafe for Pipeline<V>
impl<V> Send for Pipeline<V>where
V: Send,
impl<V> Sync for Pipeline<V>where
V: Sync,
impl<V> Unpin for Pipeline<V>where
V: Unpin,
impl<V> !UnwindSafe for Pipeline<V>
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