pub struct Object { /* private fields */ }
Expand description
Unified object used in GPU operations
Implementations§
Source§impl Object
impl Object
Sourcepub fn new_compute(pipeline: Arc<dyn Pipeline>, groups: [u32; 3]) -> Arc<Self>
pub fn new_compute(pipeline: Arc<dyn Pipeline>, groups: [u32; 3]) -> Arc<Self>
Creates compute object
Sourcepub fn compute_with_textures(
pipeline: Arc<dyn Pipeline>,
groups: [u32; 3],
sampler: Arc<GpuSamplerSet>,
) -> Arc<Self>
pub fn compute_with_textures( pipeline: Arc<dyn Pipeline>, groups: [u32; 3], sampler: Arc<GpuSamplerSet>, ) -> Arc<Self>
Creates compute object with textures
Sourcepub fn with_mesh(
pipeline: Arc<dyn Pipeline>,
mesh: Arc<MeshBuffer>,
) -> Arc<Self>
pub fn with_mesh( pipeline: Arc<dyn Pipeline>, mesh: Arc<MeshBuffer>, ) -> Arc<Self>
Creates graphics object with mesh only
Sourcepub fn with_mesh_sampled(
pipeline: Arc<dyn Pipeline>,
mesh: Arc<MeshBuffer>,
sampler: Arc<GpuSamplerSet>,
) -> Arc<Self>
pub fn with_mesh_sampled( pipeline: Arc<dyn Pipeline>, mesh: Arc<MeshBuffer>, sampler: Arc<GpuSamplerSet>, ) -> Arc<Self>
Creates graphics object with mesh and textures
Sourcepub fn with_mesh_sampled_array(
pipeline: Arc<dyn Pipeline>,
mesh: Arc<MeshBuffer>,
sampler: Arc<GpuSamplerSet>,
array: u32,
) -> Arc<Self>
pub fn with_mesh_sampled_array( pipeline: Arc<dyn Pipeline>, mesh: Arc<MeshBuffer>, sampler: Arc<GpuSamplerSet>, array: u32, ) -> Arc<Self>
Creates array of graphics objects with mesh and textures
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Object
impl !RefUnwindSafe for Object
impl Unpin for Object
impl !UnwindSafe for Object
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