pub struct MultiOutputFrameBuffer<'a> { /* private fields */ }
Expand description
This struct is useless for the moment.
Implementations§
Source§impl<'a> MultiOutputFrameBuffer<'a>
impl<'a> MultiOutputFrameBuffer<'a>
Sourcepub fn new<F, I, A>(
facade: &F,
color_attachments: I,
) -> Result<MultiOutputFrameBuffer<'a>, ValidationError>
pub fn new<F, I, A>( facade: &F, color_attachments: I, ) -> Result<MultiOutputFrameBuffer<'a>, ValidationError>
Creates a new MultiOutputFrameBuffer
.
§Panic
Panics if all attachments don’t have the same dimensions.
Sourcepub fn with_depth_buffer<F, D, I, A>(
facade: &F,
color_attachments: I,
depth: D,
) -> Result<MultiOutputFrameBuffer<'a>, ValidationError>where
F: Facade + ?Sized,
D: ToDepthAttachment<'a>,
I: IntoIterator<Item = (&'a str, A)>,
A: ToColorAttachment<'a>,
pub fn with_depth_buffer<F, D, I, A>(
facade: &F,
color_attachments: I,
depth: D,
) -> Result<MultiOutputFrameBuffer<'a>, ValidationError>where
F: Facade + ?Sized,
D: ToDepthAttachment<'a>,
I: IntoIterator<Item = (&'a str, A)>,
A: ToColorAttachment<'a>,
Creates a MultiOutputFrameBuffer
with a depth buffer.
§Panic
Panics if all attachments don’t have the same dimensions.
Sourcepub fn with_depth_and_stencil_buffer<A, F, I, D, S>(
facade: &F,
color: I,
depth: D,
stencil: S,
) -> Result<MultiOutputFrameBuffer<'a>, ValidationError>where
D: ToDepthAttachment<'a>,
I: IntoIterator<Item = (&'a str, A)>,
S: ToStencilAttachment<'a>,
A: ToColorAttachment<'a>,
F: Facade + ?Sized,
pub fn with_depth_and_stencil_buffer<A, F, I, D, S>(
facade: &F,
color: I,
depth: D,
stencil: S,
) -> Result<MultiOutputFrameBuffer<'a>, ValidationError>where
D: ToDepthAttachment<'a>,
I: IntoIterator<Item = (&'a str, A)>,
S: ToStencilAttachment<'a>,
A: ToColorAttachment<'a>,
F: Facade + ?Sized,
Creates a MultiOutputFrameBuffer
with a depth buffer, and a stencil buffer.
§Panic
Panics if all attachments don’t have the same dimensions.
Sourcepub fn with_stencil_buffer<A, F, I, S>(
facade: &F,
color: I,
stencil: S,
) -> Result<MultiOutputFrameBuffer<'a>, ValidationError>where
S: ToStencilAttachment<'a>,
F: Facade + ?Sized,
I: IntoIterator<Item = (&'a str, A)>,
A: ToColorAttachment<'a>,
pub fn with_stencil_buffer<A, F, I, S>(
facade: &F,
color: I,
stencil: S,
) -> Result<MultiOutputFrameBuffer<'a>, ValidationError>where
S: ToStencilAttachment<'a>,
F: Facade + ?Sized,
I: IntoIterator<Item = (&'a str, A)>,
A: ToColorAttachment<'a>,
Creates a MultiOutputFrameBuffer
with a stencil buffer, but no depth buffer.
§Panic
Panics if all attachments don’t have the same dimensions.
Sourcepub fn with_depth_stencil_buffer<A, F, I, D>(
facade: &F,
color: I,
depthstencil: D,
) -> Result<MultiOutputFrameBuffer<'a>, ValidationError>where
D: ToDepthStencilAttachment<'a>,
F: Facade + ?Sized,
I: IntoIterator<Item = (&'a str, A)>,
A: ToColorAttachment<'a>,
pub fn with_depth_stencil_buffer<A, F, I, D>(
facade: &F,
color: I,
depthstencil: D,
) -> Result<MultiOutputFrameBuffer<'a>, ValidationError>where
D: ToDepthStencilAttachment<'a>,
F: Facade + ?Sized,
I: IntoIterator<Item = (&'a str, A)>,
A: ToColorAttachment<'a>,
Creates a MultiOutputFrameBuffer
with a depth-stencil buffer.
§Panic
Panics if all attachments don’t have the same dimensions.
Trait Implementations§
Source§impl<'a> Surface for MultiOutputFrameBuffer<'a>
impl<'a> Surface for MultiOutputFrameBuffer<'a>
Source§fn clear(
&mut self,
rect: Option<&Rect>,
color: Option<(f32, f32, f32, f32)>,
color_srgb: bool,
depth: Option<f32>,
stencil: Option<i32>,
)
fn clear( &mut self, rect: Option<&Rect>, color: Option<(f32, f32, f32, f32)>, color_srgb: bool, depth: Option<f32>, stencil: Option<i32>, )
Clears some attachments of the target.
Source§fn get_dimensions(&self) -> (u32, u32)
fn get_dimensions(&self) -> (u32, u32)
Returns the dimensions in pixels of the target.
Source§fn get_depth_buffer_bits(&self) -> Option<u16>
fn get_depth_buffer_bits(&self) -> Option<u16>
Returns the number of bits of each pixel of the depth buffer. Read more
Source§fn get_stencil_buffer_bits(&self) -> Option<u16>
fn get_stencil_buffer_bits(&self) -> Option<u16>
Returns the number of bits of each pixel of the stencil buffer. Read more
Source§fn draw<'i, 'v, V, I, U>(
&mut self,
vb: V,
ib: I,
program: &Program,
uniforms: &U,
draw_parameters: &DrawParameters<'_>,
) -> Result<(), DrawError>
fn draw<'i, 'v, V, I, U>( &mut self, vb: V, ib: I, program: &Program, uniforms: &U, draw_parameters: &DrawParameters<'_>, ) -> Result<(), DrawError>
Draws. Read more
Source§fn blit_color<S>(
&self,
source_rect: &Rect,
target: &S,
target_rect: &BlitTarget,
filter: MagnifySamplerFilter,
)where
S: Surface,
fn blit_color<S>(
&self,
source_rect: &Rect,
target: &S,
target_rect: &BlitTarget,
filter: MagnifySamplerFilter,
)where
S: Surface,
Copies a rectangle of pixels from this surface to another surface. Read more
Source§fn blit_from_frame(
&self,
source_rect: &Rect,
target_rect: &BlitTarget,
filter: MagnifySamplerFilter,
)
fn blit_from_frame( &self, source_rect: &Rect, target_rect: &BlitTarget, filter: MagnifySamplerFilter, )
Blits from the default framebuffer.
Source§fn blit_from_simple_framebuffer(
&self,
source: &SimpleFrameBuffer<'_>,
source_rect: &Rect,
target_rect: &BlitTarget,
filter: MagnifySamplerFilter,
)
fn blit_from_simple_framebuffer( &self, source: &SimpleFrameBuffer<'_>, source_rect: &Rect, target_rect: &BlitTarget, filter: MagnifySamplerFilter, )
Blits from a simple framebuffer.
Source§fn blit_from_multioutput_framebuffer(
&self,
source: &MultiOutputFrameBuffer<'_>,
source_rect: &Rect,
target_rect: &BlitTarget,
filter: MagnifySamplerFilter,
)
fn blit_from_multioutput_framebuffer( &self, source: &MultiOutputFrameBuffer<'_>, source_rect: &Rect, target_rect: &BlitTarget, filter: MagnifySamplerFilter, )
Blits from a multi-output framebuffer.
Source§fn clear_color(&mut self, red: f32, green: f32, blue: f32, alpha: f32)
fn clear_color(&mut self, red: f32, green: f32, blue: f32, alpha: f32)
Clears the color attachment of the target.
Source§fn clear_color_srgb(&mut self, red: f32, green: f32, blue: f32, alpha: f32)
fn clear_color_srgb(&mut self, red: f32, green: f32, blue: f32, alpha: f32)
Clears the color attachment of the target. The color is in sRGB format.
Source§fn clear_depth(&mut self, value: f32)
fn clear_depth(&mut self, value: f32)
Clears the depth attachment of the target.
Source§fn clear_stencil(&mut self, value: i32)
fn clear_stencil(&mut self, value: i32)
Clears the stencil attachment of the target.
Source§fn clear_color_and_depth(&mut self, color: (f32, f32, f32, f32), depth: f32)
fn clear_color_and_depth(&mut self, color: (f32, f32, f32, f32), depth: f32)
Clears the color and depth attachments of the target.
Source§fn clear_color_srgb_and_depth(
&mut self,
color: (f32, f32, f32, f32),
depth: f32,
)
fn clear_color_srgb_and_depth( &mut self, color: (f32, f32, f32, f32), depth: f32, )
Clears the color and depth attachments of the target. The color is in sRGB format.
Source§fn clear_color_and_stencil(&mut self, color: (f32, f32, f32, f32), stencil: i32)
fn clear_color_and_stencil(&mut self, color: (f32, f32, f32, f32), stencil: i32)
Clears the color and stencil attachments of the target.
Source§fn clear_color_srgb_and_stencil(
&mut self,
color: (f32, f32, f32, f32),
stencil: i32,
)
fn clear_color_srgb_and_stencil( &mut self, color: (f32, f32, f32, f32), stencil: i32, )
Clears the color and stencil attachments of the target. The color is in sRGB format.
Source§fn clear_depth_and_stencil(&mut self, depth: f32, stencil: i32)
fn clear_depth_and_stencil(&mut self, depth: f32, stencil: i32)
Clears the depth and stencil attachments of the target.
Source§fn clear_all(&mut self, color: (f32, f32, f32, f32), depth: f32, stencil: i32)
fn clear_all(&mut self, color: (f32, f32, f32, f32), depth: f32, stencil: i32)
Clears the color, depth and stencil attachments of the target.
Source§fn clear_all_srgb(
&mut self,
color: (f32, f32, f32, f32),
depth: f32,
stencil: i32,
)
fn clear_all_srgb( &mut self, color: (f32, f32, f32, f32), depth: f32, stencil: i32, )
Clears the color, depth and stencil attachments of the target. The color is in sRGB format.
Source§fn has_depth_buffer(&self) -> bool
fn has_depth_buffer(&self) -> bool
Returns true if the surface has a depth buffer available.
Source§fn has_stencil_buffer(&self) -> bool
fn has_stencil_buffer(&self) -> bool
Returns true if the surface has a stencil buffer available.
Source§fn blit_whole_color_to<S>(
&self,
target: &S,
target_rect: &BlitTarget,
filter: MagnifySamplerFilter,
)where
S: Surface,
fn blit_whole_color_to<S>(
&self,
target: &S,
target_rect: &BlitTarget,
filter: MagnifySamplerFilter,
)where
S: Surface,
Copies the entire surface to a target surface. See
blit_color
.Auto Trait Implementations§
impl<'a> Freeze for MultiOutputFrameBuffer<'a>
impl<'a> !RefUnwindSafe for MultiOutputFrameBuffer<'a>
impl<'a> !Send for MultiOutputFrameBuffer<'a>
impl<'a> !Sync for MultiOutputFrameBuffer<'a>
impl<'a> Unpin for MultiOutputFrameBuffer<'a>
impl<'a> !UnwindSafe for MultiOutputFrameBuffer<'a>
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> SetParameter for T
impl<T> SetParameter for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).Source§unsafe fn to_subset_unchecked(&self) -> SS
unsafe fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.