- 
          
 - 
                Notifications
    
You must be signed in to change notification settings  - Fork 25
 
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Right now, the following resolves to hello.bound.
const layout = tgpu.bindGroupLayout({
  count: { uniform: d.f32 }
});
const shader = tgpu.resolve({
  template: `
    hello.bound
  `,
  externals: {
    hello: layout,
  },
});It is only after actually having a resolvable value like hello.bound.count, that the resolution works:
@group(0) @binding(0) var<uniform> count_0: f32;
    count_0When the value is not resolvable, we should throw instead of ignoring it. It may be done by first searching for the external key, and then following the chain of property accesses.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request