SwiftShader

73 views
Skip to first unread message

Bob Blaine

unread,
Mar 30, 2021, 9:38:21 AM3/30/21
to Graphics-dev
Hello,

I'm new to this list, and hoping that this is the correct forum for this type of question.

I work for a company that is adapting using WebGL in the Chromium Embedded Framework for a graphics application. So far pretty great! Some of our customers use our product in environments that don't have sufficient graphics hardware and revert to SwiftShader. As a result we have been attempting to validate that our graphics runs acceptably in this environment as well as on systems with graphics hardware. 

My question is about whether it's possible to force the use of SwiftShader in an environment where it normally wouldn't be selected. The reason for doing this is just for testing purposes to minimize the diversity of hardware that we need to test our product.

Thanks in advance!

Kyle Charbonneau

unread,
Mar 30, 2021, 9:50:01 AM3/30/21
to Bob Blaine, Graphics-dev
If you launch Chromium with --disable-gpu it will use software raster/composite and SwiftShader WebGL. That probably corresponds to the configuration you want to test. I'm unfamiliar with CEF but hopefully that command line switch can be added to your application and just work. If CEF exposes some way to view the chrome://gpu page then you can verify WebGL support is listed as "software only".

Kyle

Bob Blaine

unread,
Mar 31, 2021, 2:18:20 PM3/31/21
to Graphics-dev, kyle...@chromium.org, Graphics-dev, Bob Blaine
Thanks, kyle!
Reply all
Reply to author
Forward
0 new messages