Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Indent with 2 spaces #28

Merged
merged 1 commit into from
Sep 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions wit/frame-buffer.wit
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
package wasi:webgpu;

interface frame-buffer {
use graphics-context.{context, abstract-buffer};
use graphics-context.{context, abstract-buffer};

resource device {
constructor();
resource device {
constructor();

connect-graphics-context: func(context: borrow<context>);
}
connect-graphics-context: func(context: borrow<context>);
}

resource buffer {
from-graphics-buffer: static func(buffer: abstract-buffer) -> buffer;
resource buffer {
from-graphics-buffer: static func(buffer: abstract-buffer) -> buffer;

// TODO: This should be replcated with something that doesn't require a copy.
get: func() -> list<u8>;
set: func(val: list<u8>);
}
// TODO: This should be replcated with something that doesn't require a copy.
get: func() -> list<u8>;
set: func(val: list<u8>);
}
}
14 changes: 7 additions & 7 deletions wit/graphics-context.wit
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
package wasi:webgpu;

interface graphics-context {
resource context {
constructor();
resource context {
constructor();

get-current-buffer: func() -> abstract-buffer;
get-current-buffer: func() -> abstract-buffer;

// TODO: might want to remove this.
present: func();
}
// TODO: might want to remove this.
present: func();
}

resource abstract-buffer { }
resource abstract-buffer { }
}
Loading