• Sets up all the maps, data, inputs, and commands for a gpgpu process.

    Hooks up each main part in order into the complete process. Each part may also be used individually for more custom behaviour; see their documentation.

    Parameters

    • api: {
          limits: undefined | {
              maxDrawbuffers: undefined | number;
          };
      }

      An API for GL resources. See toData and toStep.

      • limits: undefined | {
            maxDrawbuffers: undefined | number;
        }

        A map of GL resource limits.

    • Optionalstate: {
          maps: undefined | {
              buffersMax: undefined | number | false;
          };
      } = {}

      State properties to set up; a new object by default. See toData, toUniforms, and toStep.

      • maps: undefined | {
            buffersMax: undefined | number | false;
        }

        How values are grouped per-texture per-pass per-step. Sets up new maps if not given or missing its mapped properties. See mapStep.

    • Optionalto: any = state

      The object to set up. Modifies the given state object by default.

    Returns any

    The given to data object; set up with data resources for a gpgpu process. See mapStep, toData, toUniforms, toStep.