generated from WebAssembly/wasi-proposal-template
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f554589
commit fad4b7b
Showing
27 changed files
with
724 additions
and
529 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
wit-bindgen markdown --html-in-md ./graphics-context --out-dir ./graphics-context | ||
wit-bindgen markdown --html-in-md ./surface --out-dir ./surface | ||
wit-bindgen markdown --html-in-md ./webgpu --out-dir ./webgpu | ||
wit-bindgen markdown --html-in-md ./frame-buffer --out-dir ./frame-buffer |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[graphics-context] | ||
path = "../graphics-context" | ||
sha256 = "cf022dcf41c7e9f6d3ca8af2f80f523306472a5548d38199d57986fc75aafb7b" | ||
sha512 = "b5cf0248f2cd1dbfbeb500b375e56fecbe8b1ac147b1aece73032543e696e0f7dad3da5aa99fbade290369a065059ae606def00d7d1aa94cde7f19ee03741479" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[graphics-context] | ||
path = "../graphics-context" |
6 changes: 5 additions & 1 deletion
6
wit/graphics-context.wit → ...eps/graphics-context/graphics-context.wit
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
<h1><a id="imports"></a>World imports</h1> | ||
<ul> | ||
<li>Imports: | ||
<ul> | ||
<li>interface <a href="#wasi_graphics_context_graphics_context"><code>wasi:graphics-context/graphics-context</code></a></li> | ||
<li>interface <a href="#wasi_frame_buffer_frame_buffer"><code>wasi:frame-buffer/frame-buffer</code></a></li> | ||
</ul> | ||
</li> | ||
</ul> | ||
<h2><a id="wasi_graphics_context_graphics_context"></a>Import interface wasi:graphics-context/graphics-context</h2> | ||
<hr /> | ||
<h3>Types</h3> | ||
<h4><a id="context"></a><code>resource context</code></h4> | ||
<h4><a id="abstract_buffer"></a><code>resource abstract-buffer</code></h4> | ||
<hr /> | ||
<h3>Functions</h3> | ||
<h4><a id="constructor_context"></a><code>[constructor]context: func</code></h4> | ||
<h5>Return values</h5> | ||
<ul> | ||
<li><a id="constructor_context.0"></a> own<<a href="#context"><a href="#context"><code>context</code></a></a>></li> | ||
</ul> | ||
<h4><a id="method_context_get_current_buffer"></a><code>[method]context.get-current-buffer: func</code></h4> | ||
<h5>Params</h5> | ||
<ul> | ||
<li><a id="method_context_get_current_buffer.self"></a><code>self</code>: borrow<<a href="#context"><a href="#context"><code>context</code></a></a>></li> | ||
</ul> | ||
<h5>Return values</h5> | ||
<ul> | ||
<li><a id="method_context_get_current_buffer.0"></a> own<<a href="#abstract_buffer"><a href="#abstract_buffer"><code>abstract-buffer</code></a></a>></li> | ||
</ul> | ||
<h4><a id="method_context_present"></a><code>[method]context.present: func</code></h4> | ||
<p>TODO: might want to remove this.</p> | ||
<h5>Params</h5> | ||
<ul> | ||
<li><a id="method_context_present.self"></a><code>self</code>: borrow<<a href="#context"><a href="#context"><code>context</code></a></a>></li> | ||
</ul> | ||
<h2><a id="wasi_frame_buffer_frame_buffer"></a>Import interface wasi:frame-buffer/frame-buffer</h2> | ||
<hr /> | ||
<h3>Types</h3> | ||
<h4><a id="context"></a><code>type context</code></h4> | ||
<p><a href="#context"><a href="#context"><code>context</code></a></a></p> | ||
<p> | ||
#### <a id="abstract_buffer"></a>`type abstract-buffer` | ||
[`abstract-buffer`](#abstract_buffer) | ||
<p> | ||
#### <a id="device"></a>`resource device` | ||
<h4><a id="buffer"></a><code>resource buffer</code></h4> | ||
<hr /> | ||
<h3>Functions</h3> | ||
<h4><a id="constructor_device"></a><code>[constructor]device: func</code></h4> | ||
<h5>Return values</h5> | ||
<ul> | ||
<li><a id="constructor_device.0"></a> own<<a href="#device"><a href="#device"><code>device</code></a></a>></li> | ||
</ul> | ||
<h4><a id="method_device_connect_graphics_context"></a><code>[method]device.connect-graphics-context: func</code></h4> | ||
<h5>Params</h5> | ||
<ul> | ||
<li><a id="method_device_connect_graphics_context.self"></a><code>self</code>: borrow<<a href="#device"><a href="#device"><code>device</code></a></a>></li> | ||
<li><a id="method_device_connect_graphics_context.context"></a><a href="#context"><code>context</code></a>: borrow<<a href="#context"><a href="#context"><code>context</code></a></a>></li> | ||
</ul> | ||
<h4><a id="static_buffer_from_graphics_buffer"></a><code>[static]buffer.from-graphics-buffer: func</code></h4> | ||
<h5>Params</h5> | ||
<ul> | ||
<li><a id="static_buffer_from_graphics_buffer.buffer"></a><a href="#buffer"><code>buffer</code></a>: own<<a href="#abstract_buffer"><a href="#abstract_buffer"><code>abstract-buffer</code></a></a>></li> | ||
</ul> | ||
<h5>Return values</h5> | ||
<ul> | ||
<li><a id="static_buffer_from_graphics_buffer.0"></a> own<<a href="#buffer"><a href="#buffer"><code>buffer</code></a></a>></li> | ||
</ul> | ||
<h4><a id="method_buffer_get"></a><code>[method]buffer.get: func</code></h4> | ||
<p>TODO: This should be replcated with something that doesn't require a copy.</p> | ||
<h5>Params</h5> | ||
<ul> | ||
<li><a id="method_buffer_get.self"></a><code>self</code>: borrow<<a href="#buffer"><a href="#buffer"><code>buffer</code></a></a>></li> | ||
</ul> | ||
<h5>Return values</h5> | ||
<ul> | ||
<li><a id="method_buffer_get.0"></a> list<<code>u8</code>></li> | ||
</ul> | ||
<h4><a id="method_buffer_set"></a><code>[method]buffer.set: func</code></h4> | ||
<h5>Params</h5> | ||
<ul> | ||
<li><a id="method_buffer_set.self"></a><code>self</code>: borrow<<a href="#buffer"><a href="#buffer"><code>buffer</code></a></a>></li> | ||
<li><a id="method_buffer_set.val"></a><code>val</code>: list<<code>u8</code>></li> | ||
</ul> |
Empty file.
Empty file.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package wasi:graphics-context; | ||
|
||
world imports { | ||
import graphics-context; | ||
} | ||
|
||
interface graphics-context { | ||
resource context { | ||
constructor(); | ||
|
||
get-current-buffer: func() -> abstract-buffer; | ||
|
||
// TODO: might want to remove this. | ||
present: func(); | ||
} | ||
|
||
resource abstract-buffer { } | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<h1><a id="imports"></a>World imports</h1> | ||
<ul> | ||
<li>Imports: | ||
<ul> | ||
<li>interface <a href="#wasi_graphics_context_graphics_context"><code>wasi:graphics-context/graphics-context</code></a></li> | ||
</ul> | ||
</li> | ||
</ul> | ||
<h2><a id="wasi_graphics_context_graphics_context"></a>Import interface wasi:graphics-context/graphics-context</h2> | ||
<hr /> | ||
<h3>Types</h3> | ||
<h4><a id="context"></a><code>resource context</code></h4> | ||
<h4><a id="abstract_buffer"></a><code>resource abstract-buffer</code></h4> | ||
<hr /> | ||
<h3>Functions</h3> | ||
<h4><a id="constructor_context"></a><code>[constructor]context: func</code></h4> | ||
<h5>Return values</h5> | ||
<ul> | ||
<li><a id="constructor_context.0"></a> own<<a href="#context"><a href="#context"><code>context</code></a></a>></li> | ||
</ul> | ||
<h4><a id="method_context_get_current_buffer"></a><code>[method]context.get-current-buffer: func</code></h4> | ||
<h5>Params</h5> | ||
<ul> | ||
<li><a id="method_context_get_current_buffer.self"></a><code>self</code>: borrow<<a href="#context"><a href="#context"><code>context</code></a></a>></li> | ||
</ul> | ||
<h5>Return values</h5> | ||
<ul> | ||
<li><a id="method_context_get_current_buffer.0"></a> own<<a href="#abstract_buffer"><a href="#abstract_buffer"><code>abstract-buffer</code></a></a>></li> | ||
</ul> | ||
<h4><a id="method_context_present"></a><code>[method]context.present: func</code></h4> | ||
<p>TODO: might want to remove this.</p> | ||
<h5>Params</h5> | ||
<ul> | ||
<li><a id="method_context_present.self"></a><code>self</code>: borrow<<a href="#context"><a href="#context"><code>context</code></a></a>></li> | ||
</ul> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
wit-deps -m webgpu/deps.toml -l webgpu/deps.lock -d webgpu/deps | ||
wit-deps -m surface/deps.toml -l surface/deps.lock -d surface/deps | ||
wit-deps -m graphics-context/deps.toml -l graphics-context/deps.lock -d graphics-context/deps | ||
wit-deps -m frame-buffer/deps.toml -l frame-buffer/deps.lock -d frame-buffer/deps |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
io = "https://github.com/WebAssembly/wasi-io/archive/fef02cddb4ac28dcde97bf11a4c7b856833a948f.tar.gz" | ||
|
||
[graphics-context] | ||
path = "../graphics-context" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package wasi:graphics-context; | ||
|
||
world imports { | ||
import graphics-context; | ||
} | ||
|
||
interface graphics-context { | ||
resource context { | ||
constructor(); | ||
|
||
get-current-buffer: func() -> abstract-buffer; | ||
|
||
// TODO: might want to remove this. | ||
present: func(); | ||
} | ||
|
||
resource abstract-buffer { } | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.