Struct wgpu_biolerless::TextureBuilder
source · [−]pub struct TextureBuilder<'a> { /* private fields */ }Implementations
sourceimpl<'a> TextureBuilder<'a>
impl<'a> TextureBuilder<'a>
pub fn new() -> Self
pub fn data(self, data: &'a [u8]) -> Self
pub fn dimensions(self, dimensions: (u32, u32)) -> Self
pub fn format(self, format: TextureFormat) -> Self
pub fn texture_dimension(self, texture_dimension: TextureDimension) -> Self
sourcepub fn usages(self, usages: TextureUsages) -> Self
pub fn usages(self, usages: TextureUsages) -> Self
The default value is TextureUsages::TEXTURE_BINDING NOTE: TextureUsages::COPY_DST gets appended to the usages
sourcepub fn sample_count(self, sample_count: u32) -> Self
pub fn sample_count(self, sample_count: u32) -> Self
The default value is 1
sourcepub fn depth_or_array_layers(self, depth_or_array_layers: u32) -> Self
pub fn depth_or_array_layers(self, depth_or_array_layers: u32) -> Self
The default value is 1
pub fn build(self, state: &State) -> Texture
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for TextureBuilder<'a>
impl<'a> Send for TextureBuilder<'a>
impl<'a> Sync for TextureBuilder<'a>
impl<'a> Unpin for TextureBuilder<'a>
impl<'a> UnwindSafe for TextureBuilder<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more