wonder.js
Version:
28 lines (23 loc) • 1.83 kB
JavaScript
;
var Log$WonderLog = require("wonder-log/lib/js/src/Log.js");
var Contract$WonderLog = require("wonder-log/lib/js/src/Contract.js");
var StateDataMain$Wonderjs = require("../../../../state/main/data/StateDataMain.js");
var IsDebugMainService$Wonderjs = require("../../../../state/main/state/IsDebugMainService.js");
var MutableSparseMapService$WonderCommonlib = require("wonder-commonlib/lib/js/src/MutableSparseMapService.js");
function unsafeGetAttributeSendData(shaderIndex, glslSenderRecord) {
return Contract$WonderLog.ensureCheck((function (sendData) {
return Contract$WonderLog.test(Log$WonderLog.buildAssertMessage("attribute send record exist", "not"), (function (param) {
return Contract$WonderLog.assertNullableExist(sendData);
}));
}), IsDebugMainService$Wonderjs.getIsDebug(StateDataMain$Wonderjs.stateData), MutableSparseMapService$WonderCommonlib.unsafeGet(shaderIndex, glslSenderRecord[/* attributeSendDataMap */0]));
}
function unsafeGetInstanceAttributeSendData(shaderIndex, param) {
return Contract$WonderLog.ensureCheck((function (sendData) {
return Contract$WonderLog.test(Log$WonderLog.buildAssertMessage("instance attribute send record exist", "not"), (function (param) {
return Contract$WonderLog.assertNullableExist(sendData);
}));
}), IsDebugMainService$Wonderjs.getIsDebug(StateDataMain$Wonderjs.stateData), MutableSparseMapService$WonderCommonlib.unsafeGet(shaderIndex, param[/* instanceAttributeSendDataMap */1]));
}
exports.unsafeGetAttributeSendData = unsafeGetAttributeSendData;
exports.unsafeGetInstanceAttributeSendData = unsafeGetInstanceAttributeSendData;
/* Log-WonderLog Not a pure module */