import '../../../../../globals.js';
// Copyright 2024, University of Colorado Boulder

import { wgsl, WGSLReferenceModule } from '../../../imports.js';

/**
 * Uniforms for a TwoPassInitialRenderableFace
 *
 * bits
 *   0x00ffffff: renderProgramIndex
 *   0x10000000: needsCentroid
 *   0x20000000: needsFace
 *   0x40000000: isConstant
 *   0x80000000: isFullArea
 * edgesIndex
 * numEdges
 *
 * @author Jonathan Olson <jonathan.olson@colorado.edu>
 */

export default new WGSLReferenceModule( 'TwoPassInitialRenderableFace', wgsl`
  struct TwoPassInitialRenderableFace {
    bits: u32,
    edges_index: u32,
    num_edges: u32
  }
` );