Module webrender::renderer [] [src]

The webrender API.

The webrender::renderer module provides the interface to webrender, which is accessible through Renderer

Structs

CacheRow
CacheTexture

The device-specific representation of the cache texture in gpu_cache.rs

CpuProfile
DebugFlags
ExternalImage

The data that an external client should provide about an external image. The timestamp is used to test if the renderer should upload new texture data this frame. For instance, if providing video frames, the application could call wr.render() whenever a new video frame is ready. If the callback increments the returned timestamp for a given image, the renderer will know to re-upload the image data to the GPU. Note that the UV coords are supplied in texel-space!

FileWatcher
GpuDataTexture
GpuDataTextures
GpuProfile
GraphicsApiInfo
LazilyCompiledShader
PrimitiveShader
Renderer

The renderer is responsible for submitting to the GPU the work prepared by the RenderBackend.

RendererOptions
VertexDataTextureLayout

Enums

BlendMode
ExternalImageSource
GraphicsApi
ImageBufferKind
InitError
ReadPixelsFormat
RendererKind
ShaderKind

Constants

CLIP_FEATURE
GPU_DATA_TEXTURE_POOL
GPU_TAG_BLUR
GPU_TAG_CACHE_BOX_SHADOW
GPU_TAG_CACHE_CLIP
GPU_TAG_CACHE_LINE
GPU_TAG_CACHE_TEXT_RUN
GPU_TAG_PRIM_ANGLE_GRADIENT
GPU_TAG_PRIM_BLEND
GPU_TAG_PRIM_BORDER_CORNER
GPU_TAG_PRIM_BORDER_EDGE
GPU_TAG_PRIM_BOX_SHADOW
GPU_TAG_PRIM_CACHE_IMAGE
GPU_TAG_PRIM_COMPOSITE
GPU_TAG_PRIM_GRADIENT
GPU_TAG_PRIM_HW_COMPOSITE
GPU_TAG_PRIM_IMAGE
GPU_TAG_PRIM_LINE
GPU_TAG_PRIM_RADIAL_GRADIENT
GPU_TAG_PRIM_RECT
GPU_TAG_PRIM_SPLIT_COMPOSITE
GPU_TAG_PRIM_TEXT_RUN
GPU_TAG_PRIM_YUV_IMAGE
GPU_TAG_SETUP_DATA
GPU_TAG_SETUP_TARGET
IMAGE_BUFFER_KINDS
MAX_VERTEX_TEXTURE_WIDTH
PROFILER_DBG
RENDER_TARGET_DBG
SUBPIXEL_AA_FEATURE
TEXTURE_CACHE_DBG
TRANSFORM_FEATURE

Traits

ExternalImageHandler

The interfaces that an application can implement to support providing external image buffers. When the the application passes an external image to WR, it should kepp that external image life time. People could check the epoch id in RenderNotifier at the client side to make sure that the external image is not used by WR. Then, do the clean up for that external image.

GpuStoreLayout

Functions

create_clip_shader
create_prim_shader

Type Definitions

VertexDataTexture