pub struct PassStep { /* private fields */ }Implementations§
Source§impl PassStep
impl PassStep
pub fn add_vertex_buffer(&mut self, vbo: VertexBufferId) -> &mut Self
pub fn set_index_buffer(&mut self, ibo: IndexBufferId) -> &mut Self
pub fn add_program(&mut self, program: ProgramId) -> &mut Self
Sourcepub fn set_wait_for_color_from_step(
&mut self,
dependency: PassStepDependency,
shader_usage: ShaderStage,
) -> &mut Self
pub fn set_wait_for_color_from_step( &mut self, dependency: PassStepDependency, shader_usage: ShaderStage, ) -> &mut Self
Wait for a specific step to finish rendering.
The dependency can be obtained with step.get_step_dependency().
Sourcepub fn set_wait_for_depth_from_step(
&mut self,
dependency: PassStepDependency,
shader_usage: ShaderStage,
) -> &mut Self
pub fn set_wait_for_depth_from_step( &mut self, dependency: PassStepDependency, shader_usage: ShaderStage, ) -> &mut Self
Wait for a specific step to complete depth testing.
The dependency can be obtained with step.get_step_dependency().
Sourcepub fn add_write_color(
&mut self,
local_attachment: PassLocalAttachment,
) -> &mut Self
pub fn add_write_color( &mut self, local_attachment: PassLocalAttachment, ) -> &mut Self
Add a PassLocalAttachment to draw into.
Sourcepub fn set_write_depth(
&mut self,
local_attachment: PassLocalAttachment,
) -> &mut Self
pub fn set_write_depth( &mut self, local_attachment: PassLocalAttachment, ) -> &mut Self
Add a PassLocalAttachment to use for depth testing.
Sourcepub fn read_local_attachment(
&mut self,
local_attachment: PassLocalAttachment,
) -> &mut Self
pub fn read_local_attachment( &mut self, local_attachment: PassLocalAttachment, ) -> &mut Self
Denote that a PassLocalAttachment is used as input.
Sourcepub fn get_step_dependency(&self) -> PassStepDependency
pub fn get_step_dependency(&self) -> PassStepDependency
Get a PassStepDependency to have another step wait for this one to complete.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PassStep
impl RefUnwindSafe for PassStep
impl Send for PassStep
impl Sync for PassStep
impl Unpin for PassStep
impl UnwindSafe for PassStep
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