Skip to content

Commit

Permalink
Merge pull request #49 from tysmith/fix-webgpu
Browse files Browse the repository at this point in the history
Define GetVariable() and SetVariable() in WebGPU template.html
  • Loading branch information
ifratric authored Nov 26, 2024
2 parents 7ac0292 + 26820b8 commit fadff39
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion webgpu/template.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<html>
<head>
<script type="text/javascript">
<script type="text/javascript">

setTimeout(function() { cleanup(); }, 12000);

Expand All @@ -17,6 +17,12 @@
}, 0));
}

var fuzzervars = {};

function GetVariable(fuzzervars, var_type) { if(fuzzervars[var_type]) { return fuzzervars[var_type]
; } else { return null; }}

function SetVariable(fuzzervars, var_name, var_type) { fuzzervars[var_type] = var_name; }

function cleanup() {
try { gc(); } catch(e) {}
Expand Down

0 comments on commit fadff39

Please sign in to comment.