Skip to content

Commit

Permalink
* fixed gpu.js for Chromium according to gpujs/gpu.js#820
Browse files Browse the repository at this point in the history
  • Loading branch information
wzychla committed Apr 12, 2024
1 parent 4d291ac commit 21bc236
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 3 deletions.
28 changes: 28 additions & 0 deletions dist/gpu-browser.min.js

Large diffs are not rendered by default.

9 changes: 6 additions & 3 deletions mandel_js_gpu.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@
<head>
<meta charset="UTF-8">
<title>Mandelbrot</title>
<!--
<script src="https://cdn.jsdelivr.net/npm/gpu.js@latest/dist/gpu-browser.min.js"></script>
-->
<script src="dist/gpu-browser.min.js"></script>
<script type="text/javascript">

var cx = 0.0, cy = 0.0, kat1 = 0.0, kat2 = 1.0;
Expand All @@ -22,10 +25,10 @@
var iDelta;
var jDelta;

if (!GPU.isGPUSupported) { alert('GPU not supported!'); }
if (!GPUFix.isGPUSupported) { alert('GPU not supported!'); }

const gpu = new GPU();
GPU.enableValidation();
const gpu = new GPUFix();
GPUFix.enableValidation();

function setInitialScale()
{
Expand Down

0 comments on commit 21bc236

Please sign in to comment.