Struct screen_13::driver::ray_trace::RayTracePipelineInfoBuilder
source · pub struct RayTracePipelineInfoBuilder { /* private fields */ }
Expand description
Builder for RayTracePipelineInfo
.
Implementations§
source§impl RayTracePipelineInfoBuilder
impl RayTracePipelineInfoBuilder
sourcepub fn bindless_descriptor_count(self, value: u32) -> Self
pub fn bindless_descriptor_count(self, value: u32) -> Self
The number of descriptors to allocate for a given binding when using bindless (unbounded) syntax.
The default is 8192
.
§Examples
Basic usage (GLSL):
#version 460 core
#extension GL_EXT_nonuniform_qualifier : require
layout(set = 0, binding = 0, rgba8) readonly uniform image2D my_binding[];
void main()
{
// my_binding will have space for 8,192 images by default
}
sourcepub fn dynamic_stack_size(self, value: bool) -> Self
pub fn dynamic_stack_size(self, value: bool) -> Self
Allow setting the stack size dynamically for a ray trace pipeline.
When set, you must manually set the stack size during ray trace passes using
RayTrace::set_stack_size
.
sourcepub fn max_ray_recursion_depth(self, value: u32) -> Self
pub fn max_ray_recursion_depth(self, value: u32) -> Self
The maximum recursion depth of shaders executed by this pipeline.
The default is 16
.
source§impl RayTracePipelineInfoBuilder
impl RayTracePipelineInfoBuilder
sourcepub fn build(self) -> RayTracePipelineInfo
pub fn build(self) -> RayTracePipelineInfo
Builds a new RayTracePipelineInfo
.
Trait Implementations§
source§impl Clone for RayTracePipelineInfoBuilder
impl Clone for RayTracePipelineInfoBuilder
source§fn clone(&self) -> RayTracePipelineInfoBuilder
fn clone(&self) -> RayTracePipelineInfoBuilder
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 RayTracePipelineInfoBuilder
impl Debug for RayTracePipelineInfoBuilder
source§impl From<RayTracePipelineInfoBuilder> for RayTracePipelineInfo
impl From<RayTracePipelineInfoBuilder> for RayTracePipelineInfo
source§fn from(info: RayTracePipelineInfoBuilder) -> Self
fn from(info: RayTracePipelineInfoBuilder) -> Self
Converts to this type from the input type.
impl Copy for RayTracePipelineInfoBuilder
Auto Trait Implementations§
impl RefUnwindSafe for RayTracePipelineInfoBuilder
impl Send for RayTracePipelineInfoBuilder
impl Sync for RayTracePipelineInfoBuilder
impl Unpin for RayTracePipelineInfoBuilder
impl UnwindSafe for RayTracePipelineInfoBuilder
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
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.