Skip to content

Pass tslSource prop to PlaygroundCanvas for WebGPU TSL preview #60

Description

@devallibus

Context

From PR #57 review — when WebGPU TSL preview is implemented, PlaygroundCanvas will need the tslSource prop.

Currently PlaygroundLayout.tsx:182-189 passes vertexSource and fragmentSource to the canvas but not tslSource. This is fine now since TSL sessions show a placeholder, but the follow-up WebGPU branch should wire it through.

What to do

  • Add tslSource to PlaygroundCanvasProps
  • Pass tslSource={tslSource()} from PlaygroundLayout
  • Use it in the canvas when initializing WebGPURenderer + NodeMaterial

Related

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions