[][src]Struct web_glitz::rendering::MultisampleRenderTargetDescriptor

pub struct MultisampleRenderTargetDescriptor<C, Ds> { /* fields omitted */ }

Describes a MultisampleRenderTarget for a RenderPass.

Similar to a RenderTargetDescriptor, except in that when you initially create the descriptor, you must specify the sampling grid size the render target will use:

use web_glitz::rendering::MultisampleRenderTargetDescriptor;

let render_target_descriptor = MultisampleRenderTargetDescriptor::new(4);

Attaching an image that uses a different sampling grid size will cause a panic:

use web_glitz::image::format::{Multisample, RGBA8};
use web_glitz::image::renderbuffer::RenderbufferDescriptor;
use web_glitz::rendering::{MultisampleRenderTargetDescriptor, LoadOp, StoreOp};

let mut color_image = context.try_create_multisample_renderbuffer(&RenderbufferDescriptor {
    format: Multisample(RGBA8, 16),
    width: 500,
    height: 500
}).unwrap();


render_target_descriptor.attach_color_float(&mut color_image, LoadOp::Load, StoreOp::Store);

// Panic! The descriptor expects images that use sampling gride of size 4, but we're trying to
// attach an image that uses a sampling grid size of 16!

In all other ways, constructing a MultisampleRenderTargetDescriptor is the same as constructing a RenderTargetDescriptor; please refer to the documentation for RenderTargetDescriptor for more examples and details on the attachment types.

Implementations

impl MultisampleRenderTargetDescriptor<(), ()>[src]

pub fn new(samples: u8) -> Self[src]

Creates a new MultisampleRenderTargetDescriptor that expects it attachments to use a sampling grid size of samples.

impl<C> MultisampleRenderTargetDescriptor<C, ()>[src]

pub fn attach_depth_stencil<Ds>(
    self,
    image: Ds,
    load_op: LoadOp<(f32, i32)>,
    store_op: StoreOp
) -> MultisampleRenderTargetDescriptor<C, DepthStencilAttachment<Ds>> where
    Ds: AttachMultisampleDepthStencil
[src]

Attaches an image to the depth-stencil slot that stores combined depth and stencil values.

Example

use web_glitz::image::format::{Depth24Stencil8, Multisample};
use web_glitz::image::renderbuffer::RenderbufferDescriptor;
use web_glitz::rendering::{MultisampleRenderTargetDescriptor, LoadOp, StoreOp};

let mut depth_stencil_image = context.try_create_multisample_renderbuffer(&RenderbufferDescriptor {
    format: Multisample(Depth24Stencil8, 4),
    width: 500,
    height: 500
}).unwrap();

let render_target_descriptor = MultisampleRenderTargetDescriptor::new(4)
    .attach_depth_stencil(&mut depth_stencil_image, LoadOp::Load, StoreOp::Store);

Panics

Panics if the sampling grid size used by the image does not match the sampling grid size specified for this MultisampleRenderTargetDescriptor (see MultisampleRenderTargetDescriptor::new).

pub fn attach_depth<Ds>(
    self,
    image: Ds,
    load_op: LoadOp<f32>,
    store_op: StoreOp
) -> MultisampleRenderTargetDescriptor<C, DepthAttachment<Ds>> where
    Ds: AttachMultisampleDepth
[src]

Attaches an image to the depth-stencil slot that stores combined depth and stencil values.

Example

use web_glitz::image::format::{DepthComponent24, Multisample};
use web_glitz::image::renderbuffer::RenderbufferDescriptor;
use web_glitz::rendering::{MultisampleRenderTargetDescriptor, LoadOp, StoreOp};

let mut depth_image = context.try_create_multisample_renderbuffer(&RenderbufferDescriptor {
    format: Multisample(DepthComponent24, 4),
    width: 500,
    height: 500
}).unwrap();

let render_target_descriptor = MultisampleRenderTargetDescriptor::new(4)
    .attach_depth(&mut depth_image, LoadOp::Load, StoreOp::Store);

Panics

Panics if the sampling grid size used by the image does not match the sampling grid size specified for this MultisampleRenderTargetDescriptor (see MultisampleRenderTargetDescriptor::new).

impl<Ds> MultisampleRenderTargetDescriptor<(), Ds>[src]

pub fn attach_color_float<C>(
    self,
    image: C,
    load_op: LoadOp<[f32; 4]>,
    store_op: StoreOp
) -> MultisampleRenderTargetDescriptor<(FloatAttachment<C>,), Ds> where
    C: AttachMultisampleColorFloat
[src]

Attaches an image that stores floating point values to the next color slot.

Example

use web_glitz::image::format::{Multisample, RGBA8};
use web_glitz::image::renderbuffer::RenderbufferDescriptor;
use web_glitz::rendering::{MultisampleRenderTargetDescriptor, LoadOp, StoreOp};

let mut color_image = context.try_create_multisample_renderbuffer(&RenderbufferDescriptor{
    format: Multisample(RGBA8, 4),
    width: 500,
    height: 500
}).unwrap();

let render_target_descriptor = MultisampleRenderTargetDescriptor::new(4)
    .attach_color_float(&mut color_image, LoadOp::Load, StoreOp::Store);

Panics

Panics if the sampling grid size used by the image does not match the sampling grid size specified for this MultisampleRenderTargetDescriptor (see MultisampleRenderTargetDescriptor::new).

impl<C0, Ds> MultisampleRenderTargetDescriptor<(C0,), Ds>[src]

pub fn attach_color_float<C>(
    self,
    image: C,
    load_op: LoadOp<[f32; 4]>,
    store_op: StoreOp
) -> MultisampleRenderTargetDescriptor<(C0, FloatAttachment<C>), Ds> where
    C: AttachMultisampleColorFloat
[src]

Attaches an image that stores floating point values to the next color slot.

Example

use web_glitz::image::format::{Multisample, RGBA8};
use web_glitz::image::renderbuffer::RenderbufferDescriptor;
use web_glitz::rendering::{MultisampleRenderTargetDescriptor, LoadOp, StoreOp};

let mut color_image = context.try_create_multisample_renderbuffer(&RenderbufferDescriptor{
    format: Multisample(RGBA8, 4),
    width: 500,
    height: 500
}).unwrap();

let render_target_descriptor = MultisampleRenderTargetDescriptor::new(4)
    .attach_color_float(&mut color_image, LoadOp::Load, StoreOp::Store);

Panics

Panics if the sampling grid size used by the image does not match the sampling grid size specified for this MultisampleRenderTargetDescriptor (see MultisampleRenderTargetDescriptor::new).

impl<C0, C1, Ds> MultisampleRenderTargetDescriptor<(C0, C1), Ds>[src]

pub fn attach_color_float<C>(
    self,
    image: C,
    load_op: LoadOp<[f32; 4]>,
    store_op: StoreOp
) -> MultisampleRenderTargetDescriptor<(C0, C1, FloatAttachment<C>), Ds> where
    C: AttachMultisampleColorFloat
[src]

Attaches an image that stores floating point values to the next color slot.

Example

use web_glitz::image::format::{Multisample, RGBA8};
use web_glitz::image::renderbuffer::RenderbufferDescriptor;
use web_glitz::rendering::{MultisampleRenderTargetDescriptor, LoadOp, StoreOp};

let mut color_image = context.try_create_multisample_renderbuffer(&RenderbufferDescriptor{
    format: Multisample(RGBA8, 4),
    width: 500,
    height: 500
}).unwrap();

let render_target_descriptor = MultisampleRenderTargetDescriptor::new(4)
    .attach_color_float(&mut color_image, LoadOp::Load, StoreOp::Store);

Panics

Panics if the sampling grid size used by the image does not match the sampling grid size specified for this MultisampleRenderTargetDescriptor (see MultisampleRenderTargetDescriptor::new).

impl<C0, C1, C2, Ds> MultisampleRenderTargetDescriptor<(C0, C1, C2), Ds>[src]

pub fn attach_color_float<C>(
    self,
    image: C,
    load_op: LoadOp<[f32; 4]>,
    store_op: StoreOp
) -> MultisampleRenderTargetDescriptor<(C0, C1, C2, FloatAttachment<C>), Ds> where
    C: AttachMultisampleColorFloat
[src]

Attaches an image that stores floating point values to the next color slot.

Example

use web_glitz::image::format::{Multisample, RGBA8};
use web_glitz::image::renderbuffer::RenderbufferDescriptor;
use web_glitz::rendering::{MultisampleRenderTargetDescriptor, LoadOp, StoreOp};

let mut color_image = context.try_create_multisample_renderbuffer(&RenderbufferDescriptor{
    format: Multisample(RGBA8, 4),
    width: 500,
    height: 500
}).unwrap();

let render_target_descriptor = MultisampleRenderTargetDescriptor::new(4)
    .attach_color_float(&mut color_image, LoadOp::Load, StoreOp::Store);

Panics

Panics if the sampling grid size used by the image does not match the sampling grid size specified for this MultisampleRenderTargetDescriptor (see MultisampleRenderTargetDescriptor::new).

impl<C0, C1, C2, C3, Ds> MultisampleRenderTargetDescriptor<(C0, C1, C2, C3), Ds>[src]

pub fn attach_color_float<C>(
    self,
    image: C,
    load_op: LoadOp<[f32; 4]>,
    store_op: StoreOp
) -> MultisampleRenderTargetDescriptor<(C0, C1, C2, C3, FloatAttachment<C>), Ds> where
    C: AttachMultisampleColorFloat
[src]

Attaches an image that stores floating point values to the next color slot.

Example

use web_glitz::image::format::{Multisample, RGBA8};
use web_glitz::image::renderbuffer::RenderbufferDescriptor;
use web_glitz::rendering::{MultisampleRenderTargetDescriptor, LoadOp, StoreOp};

let mut color_image = context.try_create_multisample_renderbuffer(&RenderbufferDescriptor{
    format: Multisample(RGBA8, 4),
    width: 500,
    height: 500
}).unwrap();

let render_target_descriptor = MultisampleRenderTargetDescriptor::new(4)
    .attach_color_float(&mut color_image, LoadOp::Load, StoreOp::Store);

Panics

Panics if the sampling grid size used by the image does not match the sampling grid size specified for this MultisampleRenderTargetDescriptor (see MultisampleRenderTargetDescriptor::new).

impl<C0, C1, C2, C3, C4, Ds> MultisampleRenderTargetDescriptor<(C0, C1, C2, C3, C4), Ds>[src]

pub fn attach_color_float<C>(
    self,
    image: C,
    load_op: LoadOp<[f32; 4]>,
    store_op: StoreOp
) -> MultisampleRenderTargetDescriptor<(C0, C1, C2, C3, C4, FloatAttachment<C>), Ds> where
    C: AttachMultisampleColorFloat
[src]

Attaches an image that stores floating point values to the next color slot.

Example

use web_glitz::image::format::{Multisample, RGBA8};
use web_glitz::image::renderbuffer::RenderbufferDescriptor;
use web_glitz::rendering::{MultisampleRenderTargetDescriptor, LoadOp, StoreOp};

let mut color_image = context.try_create_multisample_renderbuffer(&RenderbufferDescriptor{
    format: Multisample(RGBA8, 4),
    width: 500,
    height: 500
}).unwrap();

let render_target_descriptor = MultisampleRenderTargetDescriptor::new(4)
    .attach_color_float(&mut color_image, LoadOp::Load, StoreOp::Store);

Panics

Panics if the sampling grid size used by the image does not match the sampling grid size specified for this MultisampleRenderTargetDescriptor (see MultisampleRenderTargetDescriptor::new).

impl<C0, C1, C2, C3, C4, C5, Ds> MultisampleRenderTargetDescriptor<(C0, C1, C2, C3, C4, C5), Ds>[src]

pub fn attach_color_float<C>(
    self,
    image: C,
    load_op: LoadOp<[f32; 4]>,
    store_op: StoreOp
) -> MultisampleRenderTargetDescriptor<(C0, C1, C2, C3, C4, C5, FloatAttachment<C>), Ds> where
    C: AttachMultisampleColorFloat
[src]

Attaches an image that stores floating point values to the next color slot.

Example

use web_glitz::image::format::{Multisample, RGBA8};
use web_glitz::image::renderbuffer::RenderbufferDescriptor;
use web_glitz::rendering::{MultisampleRenderTargetDescriptor, LoadOp, StoreOp};

let mut color_image = context.try_create_multisample_renderbuffer(&RenderbufferDescriptor{
    format: Multisample(RGBA8, 4),
    width: 500,
    height: 500
}).unwrap();

let render_target_descriptor = MultisampleRenderTargetDescriptor::new(4)
    .attach_color_float(&mut color_image, LoadOp::Load, StoreOp::Store);

Panics

Panics if the sampling grid size used by the image does not match the sampling grid size specified for this MultisampleRenderTargetDescriptor (see MultisampleRenderTargetDescriptor::new).

impl<C0, C1, C2, C3, C4, C5, C6, Ds> MultisampleRenderTargetDescriptor<(C0, C1, C2, C3, C4, C5, C6), Ds>[src]

pub fn attach_color_float<C>(
    self,
    image: C,
    load_op: LoadOp<[f32; 4]>,
    store_op: StoreOp
) -> MultisampleRenderTargetDescriptor<(C0, C1, C2, C3, C4, C5, C6, FloatAttachment<C>), Ds> where
    C: AttachMultisampleColorFloat
[src]

Attaches an image that stores floating point values to the next color slot.

Example

use web_glitz::image::format::{Multisample, RGBA8};
use web_glitz::image::renderbuffer::RenderbufferDescriptor;
use web_glitz::rendering::{MultisampleRenderTargetDescriptor, LoadOp, StoreOp};

let mut color_image = context.try_create_multisample_renderbuffer(&RenderbufferDescriptor{
    format: Multisample(RGBA8, 4),
    width: 500,
    height: 500
}).unwrap();

let render_target_descriptor = MultisampleRenderTargetDescriptor::new(4)
    .attach_color_float(&mut color_image, LoadOp::Load, StoreOp::Store);

Panics

Panics if the sampling grid size used by the image does not match the sampling grid size specified for this MultisampleRenderTargetDescriptor (see MultisampleRenderTargetDescriptor::new).

impl<C0, C1, C2, C3, C4, C5, C6, C7, Ds> MultisampleRenderTargetDescriptor<(C0, C1, C2, C3, C4, C5, C6, C7), Ds>[src]

pub fn attach_color_float<C>(
    self,
    image: C,
    load_op: LoadOp<[f32; 4]>,
    store_op: StoreOp
) -> MultisampleRenderTargetDescriptor<(C0, C1, C2, C3, C4, C5, C6, C7, FloatAttachment<C>), Ds> where
    C: AttachMultisampleColorFloat
[src]

Attaches an image that stores floating point values to the next color slot.

Example

use web_glitz::image::format::{Multisample, RGBA8};
use web_glitz::image::renderbuffer::RenderbufferDescriptor;
use web_glitz::rendering::{MultisampleRenderTargetDescriptor, LoadOp, StoreOp};

let mut color_image = context.try_create_multisample_renderbuffer(&RenderbufferDescriptor{
    format: Multisample(RGBA8, 4),
    width: 500,
    height: 500
}).unwrap();

let render_target_descriptor = MultisampleRenderTargetDescriptor::new(4)
    .attach_color_float(&mut color_image, LoadOp::Load, StoreOp::Store);

Panics

Panics if the sampling grid size used by the image does not match the sampling grid size specified for this MultisampleRenderTargetDescriptor (see MultisampleRenderTargetDescriptor::new).

impl<C0, C1, C2, C3, C4, C5, C6, C7, C8, Ds> MultisampleRenderTargetDescriptor<(C0, C1, C2, C3, C4, C5, C6, C7, C8), Ds>[src]

pub fn attach_color_float<C>(
    self,
    image: C,
    load_op: LoadOp<[f32; 4]>,
    store_op: StoreOp
) -> MultisampleRenderTargetDescriptor<(C0, C1, C2, C3, C4, C5, C6, C7, C8, FloatAttachment<C>), Ds> where
    C: AttachMultisampleColorFloat
[src]

Attaches an image that stores floating point values to the next color slot.

Example

use web_glitz::image::format::{Multisample, RGBA8};
use web_glitz::image::renderbuffer::RenderbufferDescriptor;
use web_glitz::rendering::{MultisampleRenderTargetDescriptor, LoadOp, StoreOp};

let mut color_image = context.try_create_multisample_renderbuffer(&RenderbufferDescriptor{
    format: Multisample(RGBA8, 4),
    width: 500,
    height: 500
}).unwrap();

let render_target_descriptor = MultisampleRenderTargetDescriptor::new(4)
    .attach_color_float(&mut color_image, LoadOp::Load, StoreOp::Store);

Panics

Panics if the sampling grid size used by the image does not match the sampling grid size specified for this MultisampleRenderTargetDescriptor (see MultisampleRenderTargetDescriptor::new).

impl<C0, C1, C2, C3, C4, C5, C6, C7, C8, C9, Ds> MultisampleRenderTargetDescriptor<(C0, C1, C2, C3, C4, C5, C6, C7, C8, C9), Ds>[src]

pub fn attach_color_float<C>(
    self,
    image: C,
    load_op: LoadOp<[f32; 4]>,
    store_op: StoreOp
) -> MultisampleRenderTargetDescriptor<(C0, C1, C2, C3, C4, C5, C6, C7, C8, C9, FloatAttachment<C>), Ds> where
    C: AttachMultisampleColorFloat
[src]

Attaches an image that stores floating point values to the next color slot.

Example

use web_glitz::image::format::{Multisample, RGBA8};
use web_glitz::image::renderbuffer::RenderbufferDescriptor;
use web_glitz::rendering::{MultisampleRenderTargetDescriptor, LoadOp, StoreOp};

let mut color_image = context.try_create_multisample_renderbuffer(&RenderbufferDescriptor{
    format: Multisample(RGBA8, 4),
    width: 500,
    height: 500
}).unwrap();

let render_target_descriptor = MultisampleRenderTargetDescriptor::new(4)
    .attach_color_float(&mut color_image, LoadOp::Load, StoreOp::Store);

Panics

Panics if the sampling grid size used by the image does not match the sampling grid size specified for this MultisampleRenderTargetDescriptor (see MultisampleRenderTargetDescriptor::new).

impl<C0, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, Ds> MultisampleRenderTargetDescriptor<(C0, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10), Ds>[src]

pub fn attach_color_float<C>(
    self,
    image: C,
    load_op: LoadOp<[f32; 4]>,
    store_op: StoreOp
) -> MultisampleRenderTargetDescriptor<(C0, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, FloatAttachment<C>), Ds> where
    C: AttachMultisampleColorFloat
[src]

Attaches an image that stores floating point values to the next color slot.

Example

use web_glitz::image::format::{Multisample, RGBA8};
use web_glitz::image::renderbuffer::RenderbufferDescriptor;
use web_glitz::rendering::{MultisampleRenderTargetDescriptor, LoadOp, StoreOp};

let mut color_image = context.try_create_multisample_renderbuffer(&RenderbufferDescriptor{
    format: Multisample(RGBA8, 4),
    width: 500,
    height: 500
}).unwrap();

let render_target_descriptor = MultisampleRenderTargetDescriptor::new(4)
    .attach_color_float(&mut color_image, LoadOp::Load, StoreOp::Store);

Panics

Panics if the sampling grid size used by the image does not match the sampling grid size specified for this MultisampleRenderTargetDescriptor (see MultisampleRenderTargetDescriptor::new).

impl<C0, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, C11, Ds> MultisampleRenderTargetDescriptor<(C0, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, C11), Ds>[src]

pub fn attach_color_float<C>(
    self,
    image: C,
    load_op: LoadOp<[f32; 4]>,
    store_op: StoreOp
) -> MultisampleRenderTargetDescriptor<(C0, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, C11, FloatAttachment<C>), Ds> where
    C: AttachMultisampleColorFloat
[src]

Attaches an image that stores floating point values to the next color slot.

Example

use web_glitz::image::format::{Multisample, RGBA8};
use web_glitz::image::renderbuffer::RenderbufferDescriptor;
use web_glitz::rendering::{MultisampleRenderTargetDescriptor, LoadOp, StoreOp};

let mut color_image = context.try_create_multisample_renderbuffer(&RenderbufferDescriptor{
    format: Multisample(RGBA8, 4),
    width: 500,
    height: 500
}).unwrap();

let render_target_descriptor = MultisampleRenderTargetDescriptor::new(4)
    .attach_color_float(&mut color_image, LoadOp::Load, StoreOp::Store);

Panics

Panics if the sampling grid size used by the image does not match the sampling grid size specified for this MultisampleRenderTargetDescriptor (see MultisampleRenderTargetDescriptor::new).

impl<C0, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, C11, C12, Ds> MultisampleRenderTargetDescriptor<(C0, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, C11, C12), Ds>[src]

pub fn attach_color_float<C>(
    self,
    image: C,
    load_op: LoadOp<[f32; 4]>,
    store_op: StoreOp
) -> MultisampleRenderTargetDescriptor<(C0, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, C11, C12, FloatAttachment<C>), Ds> where
    C: AttachMultisampleColorFloat
[src]

Attaches an image that stores floating point values to the next color slot.

Example

use web_glitz::image::format::{Multisample, RGBA8};
use web_glitz::image::renderbuffer::RenderbufferDescriptor;
use web_glitz::rendering::{MultisampleRenderTargetDescriptor, LoadOp, StoreOp};

let mut color_image = context.try_create_multisample_renderbuffer(&RenderbufferDescriptor{
    format: Multisample(RGBA8, 4),
    width: 500,
    height: 500
}).unwrap();

let render_target_descriptor = MultisampleRenderTargetDescriptor::new(4)
    .attach_color_float(&mut color_image, LoadOp::Load, StoreOp::Store);

Panics

Panics if the sampling grid size used by the image does not match the sampling grid size specified for this MultisampleRenderTargetDescriptor (see MultisampleRenderTargetDescriptor::new).

impl<C0, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, C11, C12, C13, Ds> MultisampleRenderTargetDescriptor<(C0, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, C11, C12, C13), Ds>[src]

pub fn attach_color_float<C>(
    self,
    image: C,
    load_op: LoadOp<[f32; 4]>,
    store_op: StoreOp
) -> MultisampleRenderTargetDescriptor<(C0, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, C11, C12, C13, FloatAttachment<C>), Ds> where
    C: AttachMultisampleColorFloat
[src]

Attaches an image that stores floating point values to the next color slot.

Example

use web_glitz::image::format::{Multisample, RGBA8};
use web_glitz::image::renderbuffer::RenderbufferDescriptor;
use web_glitz::rendering::{MultisampleRenderTargetDescriptor, LoadOp, StoreOp};

let mut color_image = context.try_create_multisample_renderbuffer(&RenderbufferDescriptor{
    format: Multisample(RGBA8, 4),
    width: 500,
    height: 500
}).unwrap();

let render_target_descriptor = MultisampleRenderTargetDescriptor::new(4)
    .attach_color_float(&mut color_image, LoadOp::Load, StoreOp::Store);

Panics

Panics if the sampling grid size used by the image does not match the sampling grid size specified for this MultisampleRenderTargetDescriptor (see MultisampleRenderTargetDescriptor::new).

impl<C0, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, C11, C12, C13, C14, Ds> MultisampleRenderTargetDescriptor<(C0, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, C11, C12, C13, C14), Ds>[src]

pub fn attach_color_float<C>(
    self,
    image: C,
    load_op: LoadOp<[f32; 4]>,
    store_op: StoreOp
) -> MultisampleRenderTargetDescriptor<(C0, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, C11, C12, C13, C14, FloatAttachment<C>), Ds> where
    C: AttachMultisampleColorFloat
[src]

Attaches an image that stores floating point values to the next color slot.

Example

use web_glitz::image::format::{Multisample, RGBA8};
use web_glitz::image::renderbuffer::RenderbufferDescriptor;
use web_glitz::rendering::{MultisampleRenderTargetDescriptor, LoadOp, StoreOp};

let mut color_image = context.try_create_multisample_renderbuffer(&RenderbufferDescriptor{
    format: Multisample(RGBA8, 4),
    width: 500,
    height: 500
}).unwrap();

let render_target_descriptor = MultisampleRenderTargetDescriptor::new(4)
    .attach_color_float(&mut color_image, LoadOp::Load, StoreOp::Store);

Panics

Panics if the sampling grid size used by the image does not match the sampling grid size specified for this MultisampleRenderTargetDescriptor (see MultisampleRenderTargetDescriptor::new).

Auto Trait Implementations

impl<C, Ds> RefUnwindSafe for MultisampleRenderTargetDescriptor<C, Ds> where
    C: RefUnwindSafe,
    Ds: RefUnwindSafe

impl<C, Ds> Send for MultisampleRenderTargetDescriptor<C, Ds> where
    C: Send,
    Ds: Send

impl<C, Ds> Sync for MultisampleRenderTargetDescriptor<C, Ds> where
    C: Sync,
    Ds: Sync

impl<C, Ds> Unpin for MultisampleRenderTargetDescriptor<C, Ds> where
    C: Unpin,
    Ds: Unpin

impl<C, Ds> UnwindSafe for MultisampleRenderTargetDescriptor<C, Ds> where
    C: UnwindSafe,
    Ds: UnwindSafe

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> From<T> for T[src]

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

impl<D, T> IntoBuffer<T> for D where
    D: Borrow<T> + 'static,
    T: Copy + 'static, 
[src]

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.