commit | db52df17f0d012983dc281e4864c71485a86bd0e | [log] [tgz] |
---|---|---|
author | Jamie Madill <jmadill@chromium.org> | Tue Jan 22 20:24:23 2019 |
committer | Jeff Gilbert <jdashg@gmail.com> | Tue Jan 22 20:24:23 2019 |
tree | abc0733e3380e16f1c34a72cc04605c49f7d51a6 | |
parent | 708092d7e7ffb6213c7ba98275d79e83f0c95d41 [diff] |
Support robust buffer access for drawArrays. (#2771) Currently out-of-bounds drawArrays is tested to verify that the implementation returns INVALID_OPERATION. The WebGL spec also allows for robust buffer access when accessing array buffers out-of-bounds. WebGL already supports robust access behaviour for drawElements. Because there are some significant perf advantages to robust buffer access for drawArrays as wel this is worth supporting. See https://www.khronos.org/registry/webgl/specs/latest/1.0/#4.5 Also see http://anglebug.com/3000 A few WebGL 1.0 test changes are neccessary: * rendering/out-of-bounds-array-buffers: test added. * Verifies new behaviour much in the same way as the indexed test. * Mirrors out-of-bounds-index-buffers test for drawElements. * js/tests/out-of-bounds-test: accept NO_ERROR. * Fixes potential TDR with huge size and accepts NO_ERROR. * Mirrors f51f2b7120c for drawElements support. * more/functions/drawArraysOutOfBounds: test removed. * Not relevant when robust access is accepted. * Mirrors 714ccda0287 removal of drawElements test. * more/functions/drawArrays: removed out of bounds error checks. * Not relevant when robust access is accepted. * rendering/out-of-bounds-index-buffers: updated message. Existing implementations shouldn't need any changes to pass the updated tests.
This is the official home of the Khronos WebGL repository for the WebGL specifications and the WebGL conformance test suite.
Before adding a new test or editing an existing test please read these guidelines.
You can find live versions of the specifications at https://www.khronos.org/webgl/
The newest work in progress WebGL conformance test suite for the next version of the spec can be accessed at. https://www.khronos.org/registry/webgl/sdk/tests/webgl-conformance-tests.html
Official live versions of the conformance test suite can be found at https://www.khronos.org/registry/webgl/conformance-suites/
The WebGL Wiki can be found here https://www.khronos.org/webgl/wiki/
When cloning this repository please pass the --recursive flag to git:
git clone --recursive [URL]
This will properly install the WebGLDeveloperTools repository as a git submodule under sdk/devtools/.
The last edited date in several specifications is automatically updated via a smudge filter. To benefit from this you must issue the following commands in the root of your clone.
On Unix (Linux, Mac OS X, etc.) platforms and Windows using Git for Windows' Git Bash or Cygwin's bash terminal:
./install-gitconfig.sh rm specs/latest/*/index.html git checkout !$
On Windows with the Command Prompt (requires git.exe
in a directory on your %PATH%):
install-gitconfig.bat del specs/latest/1.0/index.html specs/latest/2.0/index.html git checkout specs/latest/1.0/index.html specs/latest/2.0/index.html
The first command adds an [include] of the repo's .gitconfig
to the local git config file.git/config
in your clone of the repo. .gitconfig
contains the config of the “dater” filter. The remaining commands force a new checkout of the index.html files to smudge them with the date. These two are unnecessary if you plan to edit these files. All are unecessary if you do not care about having the dates shown.