{"version":3,"file":"collectAllRenderables.mjs","sources":["../../../../src/scene/container/utils/collectAllRenderables.ts"],"sourcesContent":["import { type InstructionSet } from '../../../rendering/renderers/shared/instructions/InstructionSet';\nimport { type Renderer, type RenderPipes } from '../../../rendering/renderers/types';\nimport { deprecation } from '../../../utils/logging/deprecation';\nimport { type Container } from '../Container';\n\n/**\n * Deprecated, please use container.collectRenderables instead.\n * @param container - The container to collect renderables from.\n * @param instructionSet - The instruction set to add the renderables to.\n * @param rendererOrPipes - The renderer to collect the renderables from.\n * @deprecated since version 8.7.0\n * @see container.collectRenderables\n * @internal\n */\nexport function collectAllRenderables(\n    container: Container, instructionSet: InstructionSet, rendererOrPipes: Renderer | RenderPipes\n): void\n{\n    // #if _DEBUG\n    deprecation('8.7.0', 'Please use container.collectRenderables instead.');\n    // #endif\n\n    // deprecate the use of renderPipes by finding the renderer attached to the batch pipe as this is always there\n    const renderer = (rendererOrPipes as Renderer).renderPipes\n        ? (rendererOrPipes as Renderer)\n        : (rendererOrPipes as RenderPipes).batch.renderer;\n\n    return container.collectRenderables(instructionSet, renderer, null);\n}\n"],"names":[],"mappings":";;;AAcO,SAAS,qBAAA,CACZ,SAAA,EAAsB,cAAA,EAAgC,eAAA,EAE1D;AAEI,EAAA,WAAA,CAAY,SAAS,kDAAkD,CAAA;AAIvE,EAAA,MAAM,QAAA,GAAY,eAAA,CAA6B,WAAA,GACxC,eAAA,GACA,gBAAgC,KAAA,CAAM,QAAA;AAE7C,EAAA,OAAO,SAAA,CAAU,kBAAA,CAAmB,cAAA,EAAgB,QAAA,EAAU,IAAI,CAAA;AACtE;;;;"}