pub struct GBufferPassDesc {Show 16 fields
pub width: u32,
pub height: u32,
pub albedo_format: TextureFormat,
pub normal_format: TextureFormat,
pub material_format: TextureFormat,
pub velocity_format: TextureFormat,
pub depth_format: TextureFormat,
pub samples: SampleCount,
pub output_albedo: ResourceId,
pub output_normal: ResourceId,
pub output_material: ResourceId,
pub output_velocity: ResourceId,
pub output_depth: ResourceId,
pub rasterizer: RasterizerState,
pub depth_stencil: DepthStencilState,
pub vertex_layout: VertexInputLayout,
}Fields§
§width: u32§height: u32§albedo_format: TextureFormat§normal_format: TextureFormat§material_format: TextureFormat§velocity_format: TextureFormat§depth_format: TextureFormat§samples: SampleCount§output_albedo: ResourceId§output_normal: ResourceId§output_material: ResourceId§output_velocity: ResourceId§output_depth: ResourceId§rasterizer: RasterizerState§depth_stencil: DepthStencilState§vertex_layout: VertexInputLayoutImplementations§
Source§impl GBufferPassDesc
impl GBufferPassDesc
pub fn default(width: u32, height: u32) -> Self
pub fn attachment_descriptions(&self) -> Vec<AttachmentDescription>
Sourcepub fn bandwidth_bytes_per_pixel(&self) -> f32
pub fn bandwidth_bytes_per_pixel(&self) -> f32
Total bandwidth per pixel for writing the full GBuffer
Sourcepub fn estimate_write_bandwidth_mb(&self) -> f32
pub fn estimate_write_bandwidth_mb(&self) -> f32
Estimate total GBuffer write bandwidth in MB for one frame
Trait Implementations§
Source§impl Clone for GBufferPassDesc
impl Clone for GBufferPassDesc
Auto Trait Implementations§
impl Freeze for GBufferPassDesc
impl RefUnwindSafe for GBufferPassDesc
impl Send for GBufferPassDesc
impl Sync for GBufferPassDesc
impl Unpin for GBufferPassDesc
impl UnsafeUnpin for GBufferPassDesc
impl UnwindSafe for GBufferPassDesc
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§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.Source§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.Source§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.Source§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.