pub struct Bloom {Show 14 fields
pub context: GraphicsContext,
pub format: TextureFormat,
pub threshold: PostProcessingEffect,
pub mipmap_generator: MipmapGenerator,
pub blur_texture: BindableTexture,
pub mip_blur_pipeline: RenderPipeline,
pub gaussian_pipeline: RenderPipeline,
pub blur_direction_buffer_0: Buffer,
pub blur_direction_buffer_1: Buffer,
pub blur_direction_group_0: BindGroup,
pub blur_direction_group_1: BindGroup,
pub blur_direction_layout: BindGroupLayout,
pub pingpong: [BindableTexture; 2],
pub lighting_params: Arc<BindGroup>,
}Fields§
§context: GraphicsContext§format: TextureFormat§threshold: PostProcessingEffect§mipmap_generator: MipmapGenerator§blur_texture: BindableTexture§mip_blur_pipeline: RenderPipeline§gaussian_pipeline: RenderPipeline§blur_direction_buffer_0: Buffer§blur_direction_buffer_1: Buffer§blur_direction_group_0: BindGroup§blur_direction_group_1: BindGroup§blur_direction_layout: BindGroupLayout§pingpong: [BindableTexture; 2]§lighting_params: Arc<BindGroup>Implementations§
Source§impl Bloom
impl Bloom
pub fn new( context: &GraphicsContext, shaders: &mut ShaderMap, format: TextureFormat, lighting_params: Arc<BindGroup>, lighting_params_layout: &BindGroupLayout, ) -> Self
pub fn draw( &self, device: &Device, layout: &BindGroupLayout, first_pass_bind_group: &BindGroup, encoder: &mut CommandEncoder, )
pub fn blit_final( &self, encoder: &mut CommandEncoder, shaders: &mut ShaderMap, pipelines: &mut PipelineMap, output_view: &TextureView, target_format: TextureFormat, params: &GlobalLightingParams, )
Auto Trait Implementations§
impl !Freeze for Bloom
impl !RefUnwindSafe for Bloom
impl Send for Bloom
impl Sync for Bloom
impl Unpin for Bloom
impl !UnwindSafe for Bloom
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<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
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