Struct easygpu::buffers::Framebuffer [−][src]
pub struct Framebuffer {
pub texture: Texture,
pub depth: DepthBuffer,
}
Expand description
Off-screen framebuffer. Can be used as a render target in render passes.
Fields
texture: Texture
depth: DepthBuffer
Implementations
Trait Implementations
fn transfer(
&self,
buf: &[Self::Color],
rect: SizedRect<i32, ScreenSpace>,
device: &mut Device,
encoder: &mut CommandEncoder
)
fn blit(
&self,
from: SizedRect<u32, ScreenSpace>,
dst: SizedRect<u32, ScreenSpace>,
encoder: &mut CommandEncoder
)
Performs the conversion.
Color component.
Depth component.