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