"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getDrawParams = getDrawParams;
exports.freeDrawParams = freeDrawParams;
const DrawCommand_1 = require("./DrawCommand");
let progParams;
let drawParams;
/** @internal */
function getDrawParams(target, geometry) {
    if (undefined === progParams) {
        progParams = new DrawCommand_1.ShaderProgramParams();
        drawParams = new DrawCommand_1.DrawParams();
    }
    progParams.init(target);
    drawParams.init(progParams, geometry);
    return drawParams;
}
/** @internal */
function freeDrawParams() {
    progParams = undefined;
    drawParams = undefined;
}
//# sourceMappingURL=ScratchDrawParams.js.map