Struct three_d::core::render_target::RenderTargetCubeMap [−][src]
pub struct RenderTargetCubeMap<'a, 'b, T: TextureDataType> { /* fields omitted */ }
Expand description
Adds additional functionality to write to a TextureCubeMap and a DepthTargetTextureCubeMap at the same time. It purely adds functionality, so it can be created each time it is needed, the data is saved in the textures.
Implementations
pub fn new_depth(
context: &Context,
depth_texture: &'b mut DepthTargetTextureCubeMap
) -> ThreeDResult<Self>
pub fn new_depth(
context: &Context,
depth_texture: &'b mut DepthTargetTextureCubeMap
) -> ThreeDResult<Self>
Constructs a new render target cube map that enables rendering into the given DepthTargetTextureCubeMap.
pub fn new(
context: &Context,
color_texture: &'a mut TextureCubeMap<T>,
depth_texture: &'b mut DepthTargetTextureCubeMap
) -> ThreeDResult<Self>
pub fn new(
context: &Context,
color_texture: &'a mut TextureCubeMap<T>,
depth_texture: &'b mut DepthTargetTextureCubeMap
) -> ThreeDResult<Self>
Constructs a new render target cube map that enables rendering into the given TextureCubeMap and DepthTargetTextureCubeMap textures.
pub fn new_color(
context: &Context,
color_texture: &'a mut TextureCubeMap<T>
) -> ThreeDResult<Self>
pub fn new_color(
context: &Context,
color_texture: &'a mut TextureCubeMap<T>
) -> ThreeDResult<Self>
Constructs a new render target cube map that enables rendering into the given TextureCubeMap.
pub fn write(
&self,
side: CubeMapSide,
clear_state: ClearState,
render: impl FnOnce() -> ThreeDResult<()>
) -> ThreeDResult<()>
pub fn write(
&self,
side: CubeMapSide,
clear_state: ClearState,
render: impl FnOnce() -> ThreeDResult<()>
) -> ThreeDResult<()>
Renders whatever rendered in the render
closure into the textures at the given side of the cube map render target.
Before writing, the textures are cleared based on the given clear state.
pub fn write_to_mip_level(
&self,
side: CubeMapSide,
mip_level: u32,
clear_state: ClearState,
render: impl FnOnce() -> ThreeDResult<()>
) -> ThreeDResult<()>
pub fn write_to_mip_level(
&self,
side: CubeMapSide,
mip_level: u32,
clear_state: ClearState,
render: impl FnOnce() -> ThreeDResult<()>
) -> ThreeDResult<()>
Renders whatever rendered in the render
closure into the textures at the given side and at the given mip level of the cube map render target.
Before writing, the textures are cleared based on the given clear state.
Trait Implementations
Auto Trait Implementations
impl<'a, 'b, T> !RefUnwindSafe for RenderTargetCubeMap<'a, 'b, T>
impl<'a, 'b, T> !Send for RenderTargetCubeMap<'a, 'b, T>
impl<'a, 'b, T> !Sync for RenderTargetCubeMap<'a, 'b, T>
impl<'a, 'b, T> Unpin for RenderTargetCubeMap<'a, 'b, T>
impl<'a, 'b, T> !UnwindSafe for RenderTargetCubeMap<'a, 'b, T>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more