Don't hardcode the colorFormat if you want it to work under Linux #11
amanning26-crypto
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Starting with the triangle basics:
//const colorState = {
// format: 'bgra8unorm'
//};
// don't hardcode the format. Linux uses a different one use this instead to make it more compatible
// thanks to gemini for helping with this :)
const colorState = {
format: navigator.gpu.getPreferredCanvasFormat()
};
Beta Was this translation helpful? Give feedback.
All reactions