wonder.js
Version:
76 lines (59 loc) • 2.52 kB
JavaScript
;
var OptionService$Wonderjs = require("../../../atom/OptionService.js");
function unsafeGetBuffer(param) {
return OptionService$Wonderjs.unsafeGet(param[/* buffer */2]);
}
function getTransformCount(record) {
return unsafeGetBuffer(record)[/* transformCount */2];
}
function getGeometryPointCount(record) {
return unsafeGetBuffer(record)[/* geometryPointCount */0];
}
function getGeometryCount(record) {
return unsafeGetBuffer(record)[/* geometryCount */1];
}
function getBasicMaterialCount(record) {
return unsafeGetBuffer(record)[/* basicMaterialCount */3];
}
function getLightMaterialCount(record) {
return unsafeGetBuffer(record)[/* lightMaterialCount */4];
}
function getDirectionLightCount(record) {
return unsafeGetBuffer(record)[/* directionLightCount */5];
}
function getPointLightCount(record) {
return unsafeGetBuffer(record)[/* pointLightCount */6];
}
function getMeshRendererCount(record) {
return unsafeGetBuffer(record)[/* meshRendererCount */10];
}
function getSourceInstanceCount(record) {
return unsafeGetBuffer(record)[/* instanceBuffer */11][/* sourceInstanceCount */0];
}
function getObjectInstanceCountPerSourceInstance(record) {
return unsafeGetBuffer(record)[/* instanceBuffer */11][/* objectInstanceCountPerSourceInstance */1];
}
function getBasicSourceTextureCount(record) {
return unsafeGetBuffer(record)[/* basicSourceTextureCount */7];
}
function getArrayBufferViewSourceTextureCount(record) {
return unsafeGetBuffer(record)[/* arrayBufferViewSourceTextureCount */8];
}
function getCubemapTextureCount(record) {
return unsafeGetBuffer(record)[/* cubemapTextureCount */9];
}
exports.unsafeGetBuffer = unsafeGetBuffer;
exports.getTransformCount = getTransformCount;
exports.getGeometryPointCount = getGeometryPointCount;
exports.getGeometryCount = getGeometryCount;
exports.getBasicMaterialCount = getBasicMaterialCount;
exports.getLightMaterialCount = getLightMaterialCount;
exports.getDirectionLightCount = getDirectionLightCount;
exports.getPointLightCount = getPointLightCount;
exports.getMeshRendererCount = getMeshRendererCount;
exports.getSourceInstanceCount = getSourceInstanceCount;
exports.getObjectInstanceCountPerSourceInstance = getObjectInstanceCountPerSourceInstance;
exports.getBasicSourceTextureCount = getBasicSourceTextureCount;
exports.getArrayBufferViewSourceTextureCount = getArrayBufferViewSourceTextureCount;
exports.getCubemapTextureCount = getCubemapTextureCount;
/* OptionService-Wonderjs Not a pure module */