Skip to content

Commit

Permalink
Bug 1686777 - Add a little documentation to swgl. r=lsalzman
Browse files Browse the repository at this point in the history
  • Loading branch information
jrmuizel committed Jan 15, 2021
1 parent 36d257f commit d9792b3
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions swgl/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,18 @@ swgl
========

Software OpenGL implementation for WebRender

Overview
--------
This is a relatively simple single threaded software rasterizer designed
for use by WebRender. It will shade one quad at a time using a 4xf32 vector
with one vertex per lane. It rasterizes quads usings spans and shades that
span 4 pixels at a time.

Building
--------
clang-cl is required to build on Windows. This can be done by installing
the llvm binaries from https://releases.llvm.org/ and adding the installation
to the path with something like `set PATH=%PATH%;C:\Program Files\LLVM\bin`.
Then `set CC=clang-cl` and `set CXX=clang-cl`. That should be sufficient
for `cc-rs` to use `clang-cl` instead of `cl`.

0 comments on commit d9792b3

Please sign in to comment.