pub fn write_rgba_texture_region(
queue: &Queue,
texture: &Texture,
data: &[u8],
x: u32,
y: u32,
width: u32,
height: u32,
)Expand description
Write RGBA pixel data to a specific region of a texture.
ยงArguments
queue- The wgpu queuetexture- The target texturedata- RGBA pixel data (4 bytes per pixel)x- X offset in pixelsy- Y offset in pixelswidth- Region width in pixelsheight- Region height in pixels