gpu-curtains
    Preparing search index...
    • Get the fragment shader WGSL struct content from the given FragmentOutput struct.

      Parameters

      • parameters: { struct?: { type: string; name: string }[] }

        Parameters used to generate the fragment shader WGSL output struct.

        • Optionalstruct?: { type: string; name: string }[]

          Structure parameters as an array of type and name members used to generate the fragment shader WGSL struct. Default to [{ type: 'vec4f', name: 'color }].

      Returns string

      • String with the fragment shader WGSL output struct.