glwebtest

command
v1.18.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 2, 2026 License: BSD-3-Clause Imports: 7 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Command glwebtest is the program of the browser tests of the WebGL 2 renderer (step 21.4, SPEC §9.1, §17). The query parameter "mode" says what it does, and it posts what it saw to the test server as a result of kind "glweb":

  • parity: draws every proof scene with the gles renderer on WebGL 2, reads the frame back and compares it with the software renderer's, in the same program
  • unavailable: asks for a context on canvases that cannot give one and reports the tags
  • loss: loses the context with WEBGL_lose_context, has it restored, and reports what the renderer did in each state
  • glsl: compiles the GLSL ES 3.00 of every vertex and fragment entry point of the shaders of viewport3d and examples/gpu-triangle with the browser's WebGL 2, and links each pair that a pipeline may join (step 67.1, SPEC §27.13)
  • resources: makes the GPU device over the renderer's context and runs resourcetest on it (a texture of every format and kind, a buffer of every usage, a sampler), with the GL errors after each call, the features and the limits (step 67.3, SPEC §27.13)
  • scenes: runs the scenes of explicit/devicetest on the GPU device over the renderer's context, with the GL errors that the device logged after its submissions (step 67.4, SPEC §27.13)
  • gpuloss: starts a read on the GPU device, loses the context, tells the device (Lose), reports what the read and Begin got, has the context restored and draws a scene of devicetest on a new device over it (step 67.5, SPEC §27.13)
  • gpuapi: runs package gpu over the GPU device that the renderer opens at its first frame: a triangle read back, the loss of the context, the calls on the lost device, the device opened after the restoration, and a leak (step 67.6)
  • texture: draws the texture layers of step 30.5 (8-bit, BGRA, half float) with the renderer and its GPU device, and compares each frame with the software renderer's (step 67.6)
  • viewport3d: draws the scenes of internal/scenetest through package gpu on the renderer's GPU device, posts each picture as a PNG for the test to compare with the goldens of viewport3d, and makes the pick checks (steps 67.7 to 67.9)
  • choose: runs a small Material app through the engine and reports the kind of context its canvas ended up with, and what RunApp returned (the query parameter "poison" makes getContext("webgl2") answer null, as a browser without WebGL 2 does)
  • restore: the same app, with the context lost and restored while it is idle, counting the animation frames that were asked for
  • viewrestore: an app with a gpu.View, with the context lost and restored: the view's OnDispose and OnInit, and its frames on the new device (step 67.6)

It only does something on the web; elsewhere it says so and exits. It is built by the tests with the web build tool (webtool.Build), not run by hand.

Flutter: no counterpart

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL