Skip to content

Pass vec4 to a fragment wgsl #3

@eduardfossas

Description

@eduardfossas

Hello, I am following your examples in the book and the videos on youtube and I see you decided to go for a template string inside a typescript file instead of using wgsl extension. I have two questions regarding this:

  • Is there a performance impact on doing so? Does it decrease the performance of WebGPU using a template string instead of a .wgsl file?
  • How can you pass a vec4 from the pipeline to a fragment wgsl shader?

Thank you very much for sharing your experience.

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