pub fn create_rgba_texture(
device: &Device,
width: u32,
height: u32,
label: Option<&str>,
) -> TextureExpand description
Create an RGBA texture with the specified dimensions.
The texture is created with:
- COPY_DST usage (for writing data)
- TEXTURE_BINDING usage (for sampling in shaders)
ยงArguments
device- The wgpu devicewidth- Texture width in pixelsheight- Texture height in pixelslabel- Optional debug label