import '../../../../../globals.js';
// Copyright 2024, University of Colorado Boulder
/**
 * TODO: doc
 *
 * @author Jonathan Olson <jonathan.olson@colorado.edu>
 */
import { alpenglow, DIRECT_MODULE_DEFAULTS, DirectModule, MAIN_TWO_PASS_FINE_DEFAULTS, mainTwoPassFineWGSL } from '../../../imports.js';
import { combineOptions } from '../../../../../phet-core/js/optionize.js';
export const MAIN_TWO_PASS_FINE_MODULE_DEFAULTS = {
    // eslint-disable-next-line phet/no-object-spread-on-non-literals
    ...DIRECT_MODULE_DEFAULTS,
    // eslint-disable-next-line phet/no-object-spread-on-non-literals
    ...MAIN_TWO_PASS_FINE_DEFAULTS
};
// inputSize: number - numBins (!)
export default class MainTwoPassFineModule extends DirectModule {
    constructor(providedOptions) {
        const options = combineOptions({
            main: mainTwoPassFineWGSL(providedOptions),
            setDispatchSize: (dispatchSize, numBins) => {
                dispatchSize.x = numBins;
            }
        }, providedOptions);
        super(options);
        this.config = options.config;
        this.addresses = options.addresses;
        this.fineRenderableFaces = options.fineRenderableFaces;
        this.renderProgramInstructions = options.renderProgramInstructions;
        this.edges = options.edges;
        this.output = options.output;
    }
}
alpenglow.register('MainTwoPassFineModule', MainTwoPassFineModule);
//# sourceMappingURL=MainTwoPassFineModule.js.map