Skip to content

Commit

Permalink
add ref methods
Browse files Browse the repository at this point in the history
  • Loading branch information
kayhhh committed Aug 25, 2024
1 parent 323badc commit 723c21b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions spatial/wit/wired-scene/gltf.wit
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ interface material {
constructor();

id: func() -> u32;
// Returns another reference to the same resource.
ref: func() -> material;

name: func() -> string;
set-name: func(value: string);
Expand Down Expand Up @@ -76,6 +78,8 @@ interface mesh {
constructor();

id: func() -> u32;
// Returns another reference to the same resource.
ref: func() -> mesh;

name: func() -> string;
set-name: func(value: string);
Expand Down

0 comments on commit 723c21b

Please sign in to comment.