pub struct CubemapSpec {
pub size: u32,
pub format: TextureFormat,
pub faces: Option<[Vec<u8>; 6]>,
}Fields§
§size: u32§format: TextureFormat§faces: Option<[Vec<u8>; 6]>Some uploads 6 faces of pixel data up front (wgpu’s expected
order: +X, -X, +Y, -Y, +Z, -Z). None allocates an empty cubemap
meant to be filled later by rendering into per-face views — e.g. an
environment-map capture pass — in which case wgpu_descriptor
adds RENDER_ATTACHMENT usage instead of requiring upload data.
Implementations§
Source§impl CubemapSpec
impl CubemapSpec
pub fn with_format(self, format: TextureFormat) -> Self
Auto Trait Implementations§
impl Freeze for CubemapSpec
impl RefUnwindSafe for CubemapSpec
impl Send for CubemapSpec
impl Sync for CubemapSpec
impl Unpin for CubemapSpec
impl UnsafeUnpin for CubemapSpec
impl UnwindSafe for CubemapSpec
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more