import { DrawParams, ShaderProgramParams } from "./DrawCommand";
;
let scratchDrawParams;
/** @internal */
export function getDrawParams(target, geometry) {
    if (undefined === scratchDrawParams) {
        scratchDrawParams = {
            progParams: new ShaderProgramParams(),
            drawParams: new DrawParams(),
        };
    }
    scratchDrawParams.progParams.init(target);
    scratchDrawParams.drawParams.init(scratchDrawParams.progParams, geometry);
    return scratchDrawParams.drawParams;
}
/** @internal */
export function freeDrawParams() {
    scratchDrawParams = undefined;
}
//# sourceMappingURL=ScratchDrawParams.js.map