wgpu_types

Type Alias ImageCopyBuffer

Source
pub type ImageCopyBuffer<B> = TexelCopyBufferInfo<B>;
👎Deprecated since 24.0.0: This has been renamed to TexelCopyBufferInfo, and will be removed in 25.0.0.
Expand description

Old name for a TexelCopyBufferInfo.

Aliased Type§

struct ImageCopyBuffer<B> {
    pub buffer: B,
    pub layout: TexelCopyBufferLayout,
}

Fields§

§buffer: B

The buffer to be copied to/from.

§layout: TexelCopyBufferLayout

The layout of the texture data in this buffer.

Trait Implementations

Source§

impl<B: Clone> Clone for TexelCopyBufferInfo<B>

Source§

fn clone(&self) -> TexelCopyBufferInfo<B>

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<B: Debug> Debug for TexelCopyBufferInfo<B>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de, B> Deserialize<'de> for TexelCopyBufferInfo<B>
where B: Deserialize<'de>,

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl<B> Serialize for TexelCopyBufferInfo<B>
where B: Serialize,

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl<B: Copy> Copy for TexelCopyBufferInfo<B>