RSSAmplifier

DDR's Blog · Apr 17, 2021

Graphics Card Exposure Test

0
Sign in to vote or save

ddr0.ca

Sometimes, your graphics card's details are exposed to the web. Yours are not right now, though, which is good. Try opening this page in different browsers – I found Chrome had much more information than Firefox, for example.

The Code

//Function to grab GPU data. const getGPU = () => { const ctx = document.createElement('canvas').getContext('webgl') const ext = ctx.getExtension('WEBGL_debug_renderer_info') return { card: ctx.getParameter(ext.UNMASKED_RENDERER_WEBGL), vendor: ctx.getParameter(ext.UNMASKED_VENDOR_WEBGL), } } //Put the GPU data into the web page. const gpu = getGPU() document.getElementById('graphics-card-test-output') .textContent = `Yours is ${gpu.vendor}'s ${gpu.card}.` tags: webgl, privacy, demo, web dev

Read the original on ddr0.ca

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.