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 TargetBuilderpub fn new<S: Into<String>>(name: S) -> Self[src]
pub fn new<S: Into<String>>(name: S) -> SelfCreates a new TargetBuilder.
pub fn with_depth_buf(self, has_buf: bool) -> Self[src]
pub fn with_depth_buf(self, has_buf: bool) -> SelfSets 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) -> SelfSets 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)) -> SelfSpecifies a custom target size.
Trait Implementations
impl Clone for TargetBuilder[src]
impl Clone for TargetBuilderfn clone(&self) -> TargetBuilder[src]
fn clone(&self) -> TargetBuilderReturns 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 TargetBuilderfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Eq for TargetBuilder[src]
impl Eq for TargetBuilderimpl PartialEq for TargetBuilder[src]
impl PartialEq for TargetBuilderfn eq(&self, other: &TargetBuilder) -> bool[src]
fn eq(&self, other: &TargetBuilder) -> boolThis 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) -> boolThis method tests for !=.
Auto Trait Implementations
impl Send for TargetBuilder
impl Send for TargetBuilderimpl Sync for TargetBuilder
impl Sync for TargetBuilder