Struct amethyst_renderer::TargetBuilder [−][src]
pub struct TargetBuilder { /* fields omitted */ }
Builds new render targets.
By default, it creates render targets with one color buffer and no depth-stencil buffer.
Methods
impl TargetBuilder
[src]
impl TargetBuilder
pub fn new<S: Into<String>>(name: S) -> Self
[src]
pub fn new<S: Into<String>>(name: S) -> Self
Creates a new TargetBuilder.
pub fn with_depth_buf(self, has_buf: bool) -> Self
[src]
pub fn with_depth_buf(self, has_buf: bool) -> Self
Sets whether this render target should have a depth-stencil buffer.
By default, render targets have no depth-stencil buffers included.
pub fn with_num_color_bufs(self, num: usize) -> Self
[src]
pub fn with_num_color_bufs(self, num: usize) -> Self
Sets how many color buffers the render target will have. This number
must be greater than zero or else build()
will fail.
By default, render targets have only one color buffer.
pub fn with_size(self, size: (u32, u32)) -> Self
[src]
pub fn with_size(self, size: (u32, u32)) -> Self
Specifies a custom target size.
Trait Implementations
impl Clone for TargetBuilder
[src]
impl Clone for TargetBuilder
fn clone(&self) -> TargetBuilder
[src]
fn clone(&self) -> TargetBuilder
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for TargetBuilder
[src]
impl Debug for TargetBuilder
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Eq for TargetBuilder
[src]
impl Eq for TargetBuilder
impl PartialEq for TargetBuilder
[src]
impl PartialEq for TargetBuilder
fn eq(&self, other: &TargetBuilder) -> bool
[src]
fn eq(&self, other: &TargetBuilder) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &TargetBuilder) -> bool
[src]
fn ne(&self, other: &TargetBuilder) -> bool
This method tests for !=
.
Auto Trait Implementations
impl Send for TargetBuilder
impl Send for TargetBuilder
impl Sync for TargetBuilder
impl Sync for TargetBuilder