export function createThreeCompatPMREMDiagnostics(pmrem, format) {
    const bytesPerPixel = format === "rgbe-hdr" ? 4 : 8;
    const estimatedBytes = Array.from({ length: pmrem.mipCount }, (_, mip) => {
        const size = Math.max(1, pmrem.faceSize >> mip);
        return 6 * size * size * bytesPerPixel;
    }).reduce((total, bytes) => total + bytes, 0);
    return {
        ...pmrem,
        estimatedBytes,
        warnings: [
            ...(pmrem.faceSize < 256 ? ["PMREM face size is below ThreeCompat flagship quality floor."] : []),
            ...(pmrem.mipCount < 8 ? ["PMREM mip count is below ThreeCompat roughness coverage floor."] : [])
        ]
    };
}
//# sourceMappingURL=PMREMPreset.js.map