pub struct RayTracingPass {
base: RayTracingBasePass,
parent: Option<Arc<CommandEncoder>>,
device: Arc<Device>,
current_bind_groups: BindGroupStateChange,
current_pipeline: StateChange<Arc<RayTracingPipeline>>,
}Expand description
Very similar to super::compute::ComputePass
Fields§
§base: RayTracingBasePassAll pass data & records is stored here.
parent: Option<Arc<CommandEncoder>>Parent command encoder that this pass records commands into.
Implications are the same as super::compute::ComputePass::parent
device: Arc<Device>§current_bind_groups: BindGroupStateChange§current_pipeline: StateChange<Arc<RayTracingPipeline>>Implementations§
Source§impl RayTracingPass
impl RayTracingPass
Sourcefn new(
parent: Arc<CommandEncoder>,
desc: RayTracingPassDescriptor<'_>,
) -> Result<Self, MissingFeatures>
fn new( parent: Arc<CommandEncoder>, desc: RayTracingPassDescriptor<'_>, ) -> Result<Self, MissingFeatures>
If the parent command encoder is invalid, the returned pass will be invalid.
fn new_invalid( parent: Arc<CommandEncoder>, label: &Label<'_>, err: RayTracingPassError, ) -> Self
pub fn label(&self) -> Option<&str>
pub fn set_bind_group( &mut self, index: u32, bind_group: Option<Arc<BindGroup>>, offsets: &[DynamicOffset], )
pub fn set_bind_group_inner( &mut self, index: u32, bind_group: Option<Arc<BindGroup>>, offsets: &[DynamicOffset], ) -> Result<(), PassStateError>
pub fn set_immediates_inner( &mut self, offset: u32, data: &[u8], ) -> Result<(), PassStateError>
pub fn set_immediates(&mut self, offset: u32, data: &[u8])
Source§impl RayTracingPass
impl RayTracingPass
pub fn set_pipeline(&mut self, pipeline: Arc<RayTracingPipeline>)
pub fn set_pipeline_inner( &mut self, pipeline: Arc<RayTracingPipeline>, ) -> Result<(), PassStateError>
pub fn end_inner(&mut self) -> Result<(), EncoderStateError>
pub fn end(&mut self)
pub fn push_debug_group_inner( &mut self, label: &str, color: u32, ) -> Result<(), PassStateError>
pub fn push_debug_group(&mut self, label: &str, color: u32)
pub fn pop_debug_group_inner(&mut self) -> Result<(), PassStateError>
pub fn pop_debug_group(&mut self)
pub fn insert_debug_marker_inner( &mut self, label: &str, color: u32, ) -> Result<(), PassStateError>
pub fn insert_debug_marker(&mut self, label: &str, color: u32)
pub fn trace_rays_inner( &mut self, count_x: u32, count_y: u32, count_z: u32, ) -> Result<(), PassStateError>
pub fn trace_rays(&mut self, count_x: u32, count_y: u32, count_z: u32)
Trait Implementations§
Source§impl Debug for RayTracingPass
impl Debug for RayTracingPass
Source§impl ResourceType for RayTracingPass
impl ResourceType for RayTracingPass
Auto Trait Implementations§
impl Freeze for RayTracingPass
impl !RefUnwindSafe for RayTracingPass
impl Send for RayTracingPass
impl Sync for RayTracingPass
impl Unpin for RayTracingPass
impl UnsafeUnpin for RayTracingPass
impl !UnwindSafe for RayTracingPass
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more