[][src]Struct direct3d11::texture2d::builder::Texture2DBuilder

pub struct Texture2DBuilder<'a, 'b> { /* fields omitted */ }

Methods

impl<'a, 'b> Texture2DBuilder<'a, 'b>[src]

pub fn new(device: &'a Device) -> Self[src]

pub fn with_size(self, width: u32, height: u32) -> Self[src]

pub fn with_mip_levels(self, mip_levels: u32) -> Self[src]

pub fn with_array_size(self, array_size: u32) -> Self[src]

pub fn with_format(self, format: Format) -> Self[src]

pub fn with_samples(self, count: u32, quality: u32) -> Self[src]

pub fn with_usage(self, usage: Usage) -> Self[src]

pub fn with_bind_flags(self, bind_flags: BindFlags) -> Self[src]

pub fn with_cpu_access(self, cpu_access_flags: CpuAccessFlags) -> Self[src]

pub fn with_misc_flags(self, misc_flags: ResourceMiscFlags) -> Self[src]

pub fn with_initial_data(self, data: &'b [u8], pitch: u32) -> Self[src]

pub fn with_initial_data_slice(self, data: &'b [(&'b [u8], u32)]) -> Self[src]

pub fn with_initial_data_vec(self, data: Vec<(&'b [u8], u32)>) -> Self[src]

pub unsafe fn with_unchecked_format(self) -> Self[src]

This flag must be used if you are specifying initial data using a format with pixel_size() == 0. It disables the safety check that initial_data contains enough bytes to fill the texture. Otherwise, build() will panic if format.pixel_size() == 0.

pub fn build(self) -> Result<Texture2D, Error>[src]

Auto Trait Implementations

impl<'a, 'b> Send for Texture2DBuilder<'a, 'b>

impl<'a, 'b> Sync for Texture2DBuilder<'a, 'b>

Blanket Implementations

impl<T> From for T[src]

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

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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