-
Notifications
You must be signed in to change notification settings - Fork 3
Description
@abrahamjuliot - is this uptodate? https://gist.github.com/abrahamjuliot/7baf3be8c451d23f7a8693d7e28a35e2
I don't want to re-invent the wheel, so want to use your code (accredited) if that's OK - please advise
ATM, I only want to collect the parameters, extensions, vendor, etc - not any actual rendering
so some questions
Q1
https://gist.github.com/abrahamjuliot/7baf3be8c451d23f7a8693d7e28a35e2#file-webgl-js-L91-L94
let canvas = {}
let context = {}
try {
canvas = document.createElement('canvas')
context = canvas.getContext(type) || canvas.getContext('experimental-' + type)so here, I wanted to use an already created canvas (I think it saves time)
let canvas = {}
let context = {}
try {
canvas = dom.webglcanvas
context = canvas.getContext(type) || canvas.getContext('experimental-' + type)but I get errors for webgl2 (webgl is fine)
I also don't see where you remove and cleanup the document.createElement('canvas') - remember, TZP allows section reruns so I don't want to end up with dozens of canvas elements
Q2
what is newmethods meant to signify in webgl2 ?
Q3
for data collection/entropy - I am not webgl savvy - but remember in the old TZP repo we discussed, and I mocked up, a webgl section that would return webgl, webgl2, experimental results - a bit like
- https://webglreport.com/ - webgl 1 + webgl2
- https://browserleaks.com/webgl - it has three toggles
how is this all reflected in the objects in the console? I'm a bit lost
Q4
how/what are you doing with this data to only show one set of parameters on creepy - I can see that some are identical in webgl 1 vs 2 - and there is a diffs output. Are you merging these?
Q5?
I guess I'll have to play to catch errors and return that - you seem to just console them and return undefined (I guess I could do that)

