Module ui

Source

Structs§

BatchedUploads 🔒
Per-target texture batched uploads
Locals
PremultiplyAlphaLayout
PremultiplyAlphaParams
Uploaded as push constant.
PremultiplyAlphaPipeline
PremultiplyUpload 🔒
An image upload that needs alpha premultiplication and which is in a pending state.
TexLocals
TextureBindGroup
UiLayout
UiPipeline
UploadBatchId
Vertex

Enums§

Mode

Constants§

MODE_GEOMETRY
Ignore tex and draw simple, colored 2D geometry.
MODE_IMAGE
Draw an image from the texture at tex in the fragment shader.
MODE_IMAGE_SOURCE_NORTH
Draw an image from the texture at tex in the fragment shader, with the source rectangle rotated to face north.
MODE_IMAGE_TARGET_NORTH
Draw an image from the texture at tex in the fragment shader, with the target rectangle rotated to face north.
MODE_TEXT
Draw text from the text cache texture tex in the fragment shader.
UI_IMAGE_FORMAT 🔒
The format of textures that the UI sources image data from.

Functions§

create_quad
create_quad_vert_gradient
create_tri

Type Aliases§

BoundLocals