wonder.js
Version:
24 lines (20 loc) • 909 B
JavaScript
;
var Caml_array = require("bs-platform/lib/js/caml_array.js");
var PoolVboBufferService$Wonderjs = require("../../../record/main/vboBuffer/PoolVboBufferService.js");
function restore(currentState, targetState) {
var match = PoolVboBufferService$Wonderjs.addAllBufferToPool(currentState[/* vboBufferRecord */36]);
var newrecord = Caml_array.caml_array_dup(targetState);
newrecord[/* vboBufferRecord */36] = /* record */[
/* geometryVertexBufferMap : array */[],
/* geometryTexCoordBufferMap : array */[],
/* geometryNormalBufferMap : array */[],
/* geometryElementArrayBufferMap : array */[],
/* matrixInstanceBufferMap : array */[],
/* vertexArrayBufferPool */match[0],
/* elementArrayBufferPool */match[1],
/* matrixInstanceBufferPool */match[2]
];
return newrecord;
}
exports.restore = restore;
/* PoolVboBufferService-Wonderjs Not a pure module */