Documentation Index
Fetch the complete documentation index at: https://uat.rive.app/docs/llms.txt
Use this file to discover all available pages before exploring further.
A GPU texture (2-D, cube, 3-D, or array).
Fields
width
Width of mip 0 in texels.
height
Height of mip 0 in texels.
Pixel format.
Constructors
new
new(desc: {width: number, height: number, format: TextureFormat?, type: TextureType?, renderTarget: boolean?, mipmaps: number?, layers: number?, sampleCount: number?, label: string?,}) -> GPUTexture
Methods
view
view(desc: {dimension: TextureType?, aspect: TextureAspect?, baseMipLevel: number?, mipCount: number?, baseLayer: number?, layerCount: number?,}?) -> GPUTextureView
Create a view into a sub-range of this texture. All fields optional;
omit desc entirely for a full-texture view.
upload
upload(desc: {data: buffer, mipLevel: number?, layer: number?, width: number?, height: number?,}) -> ()
Upload pixel data to a specific mip / layer.