[][src]Struct three_d::core::rendertarget::RenderTarget

pub struct RenderTarget {}

Methods

impl RenderTarget[src]

pub fn write_to_color(
    gl: &Gl,
    x: i32,
    y: i32,
    width: usize,
    height: usize,
    clear_color: Option<&Vec4>,
    color_texture: Option<&Texture2D>,
    render: &dyn Fn()
) -> Result<(), Error>
[src]

pub fn write_to_depth(
    gl: &Gl,
    x: i32,
    y: i32,
    width: usize,
    height: usize,
    clear_depth: Option<f32>,
    depth_texture: Option<&Texture2D>,
    render: &dyn Fn()
) -> Result<(), Error>
[src]

pub fn write(
    gl: &Gl,
    x: i32,
    y: i32,
    width: usize,
    height: usize,
    clear_color: Option<&Vec4>,
    clear_depth: Option<f32>,
    color_texture: Option<&Texture2D>,
    depth_texture: Option<&Texture2D>,
    render: &dyn Fn()
) -> Result<(), Error>
[src]

pub fn write_to_color_array(
    gl: &Gl,
    x: i32,
    y: i32,
    width: usize,
    height: usize,
    clear_color: Option<&Vec4>,
    color_texture_array: Option<&Texture2DArray>,
    color_channel_count: usize,
    color_channel_to_texture_layer: &dyn Fn(usize) -> usize,
    render: &dyn Fn()
) -> Result<(), Error>
[src]

pub fn write_to_depth_array(
    gl: &Gl,
    x: i32,
    y: i32,
    width: usize,
    height: usize,
    clear_depth: Option<f32>,
    depth_texture_array: Option<&Texture2DArray>,
    depth_layer: usize,
    render: &dyn Fn()
) -> Result<(), Error>
[src]

pub fn write_array(
    gl: &Gl,
    x: i32,
    y: i32,
    width: usize,
    height: usize,
    clear_color: Option<&Vec4>,
    clear_depth: Option<f32>,
    color_texture_array: Option<&Texture2DArray>,
    depth_texture_array: Option<&Texture2DArray>,
    color_channel_count: usize,
    color_channel_to_texture_layer: &dyn Fn(usize) -> usize,
    depth_layer: usize,
    render: &dyn Fn()
) -> Result<(), Error>
[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Erased for T

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> SetParameter for T

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.