partial interface GPUDevice {
GPUSurface createSurface(GPUSurfaceDescriptor descriptor);
};
interface GPUSurface : GPUTexture {
ImageBitmap transferToImageBitmap();
};
dictionary GPUSurfaceDescriptor : GPUObjectDescriptorBase {
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var hijack = function(that, name, wrap) { | |
var f0 = that[name]; | |
that[name] = function() { | |
var f = function() { | |
f0.apply(that, arguments); | |
}; | |
var args = Array.prototype.slice.call(arguments); | |
args.unshift(f); | |
return wrap.apply(null, args); | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
=== Available calls === | |
"Add" : ((string * int) * (Stateid.t * bool)) | |
-> (Stateid.t * (((unit, Stateid.t) CSig.union) * string)) | |
"Edit_at" : Stateid.t | |
-> ((unit, (Stateid.t * (Stateid.t * Stateid.t))) CSig.union) | |
"Query" : (string * Stateid.t) | |
-> string | |
"Goal" : unit | |
-> (Interface.goals option) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<style> | |
td pre { | |
overflow-x: scroll; | |
width: 31vw; | |
} | |
td { | |
border: 1px solid black; | |
vertical-align: top; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<style> | |
td pre { | |
overflow-x: scroll; | |
width: 31vw; | |
} | |
td { | |
border: 1px solid black; | |
vertical-align: top; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/plain" id="worker"> | |
onmessage = function(e) { | |
let ctx = e.data.getContext('2d'); | |
function loop() { | |
debugger; // When you hit this breakpoint, inspect any variable. | |
ctx.commit().then(loop); | |
} | |
ctx.commit().then(loop); | |
}; | |
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- SPIRV1.1.html 2018-01-01 16:07:16.000000000 -0800 | |
+++ SPIRV1.2.html 2018-01-01 16:07:14.000000000 -0800 | |
@@ -6 +6 @@ | |
-<title>SPIR-V Specification Provisional</title> | |
+<title>SPIR-V Specification</title> | |
@@ -1729 +1729 @@ | |
-<h1>SPIR-V Specification Provisional</h1> | |
+<h1>SPIR-V Specification</h1> | |
@@ -1731 +1731 @@ | |
-<span id="revnumber">version 1.1, Revision 8</span> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Utilities | |
function align(n: number, alignment: number): number { | |
return Math.ceil(n / alignment) * alignment; | |
} | |
function assert(condition: boolean, msg: () => string): asserts condition { | |
if (!condition) throw new Error(msg()); | |
} |
Clang - UTF-8 code units (bytes)
int main() {
/*xxx*/int x=xx; // codepoints=11+3=14, utf8units=11+3=14, utf16units=11+3=14, clusters=11+3=14
/*日本語*/int x=xx; // codepoints=11+3=14, utf8units=11+9=20, utf16units=11+3=14, clusters=11+3=14
/*👩💻*/int x=xx; // codepoints=11+3=14, utf8units=11+11=22, utf16units=11+5=16, clusters=11+1=12
}
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git config --global alias.lg "log --pretty=tformat:'%Cred%h%Creset %Cgreen%cd%Creset%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=short-local" | |
git config --global alias.gr "log --graph --pretty=tformat:'%Cred%h%Creset %Cgreen%cd%Creset%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=short-local" | |
git config --global alias.l '!git --no-pager lg main~.. && echo && git status --show-stash' | |
git config --global alias.br "branch --sort=-committerdate --format='%(HEAD) %(if)%(HEAD)%(then)%(color:green)%(end)%(committerdate:short) %(align:32)%(refname:short)%(end) %(contents:subject)'" | |
git config --bool gerrit.override-squash-uploads false # probably won't be overwritten but haven't verified | |
# old unused | |
#git config --global alias.rl "reflog --format='%C(auto)%h %<|(17)%gd %C(blue)%cr%C(reset) %s'" # drops branch info |
OlderNewer