Skip to content

Commit

Permalink
Add per entry function resource tracking
Browse files Browse the repository at this point in the history
  • Loading branch information
brendan-duncan committed Jan 1, 2024
1 parent 713ad94 commit 565030a
Show file tree
Hide file tree
Showing 22 changed files with 4,412 additions and 32 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ class FunctionInfo {
stage: string | null;
inputs: Array<InputInfo>;
outputs: Array<OutputInfo>;
resources: Array<VariableInfo>;
}

class InputInfo {
Expand Down Expand Up @@ -206,6 +207,10 @@ console.log(reflect.entry.compute.length); // 0, there are no compute entry func

console.log(reflect.entry.vertex[0].name); // "main", the name of the vertex entry function.

console.log(reflect.entry.vertex[0].resources.length); // 2, main uses modelUniforms and viewUniforms resource bindings.
console.log(reflect.entry.vertex[0].resources[0].name); // viewUniforms
console.log(reflect.entry.vertex[0].resources[1].name); // modelUniforms

// Vertex shader inputs
console.log(reflect.entry.vertex[0].inputs.length); // 4, inputs to "main"
console.log(reflect.entry.vertex[0].inputs[0].name); // "a_position"
Expand Down
5 changes: 5 additions & 0 deletions js/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions js/index.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 565030a

Please sign in to comment.