All files / run/domain_layer/repo/pipeline CameraCPRepo.bs.js

100% Statements 8/8
100% Branches 0/0
100% Functions 3/3
100% Lines 8/8

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28    17x 17x 17x     16x 16x               27x               17x 17x    
'use strict';
 
var CPRepo$Wonderjs = require("../../../infrastructure_layer/data/container/CPRepo.bs.js");
var OptionSt$Wonderjs = require("../../../../construct/domain_layer/library/structure/OptionSt.bs.js");
var UniformBufferVO$Wonderjs = require("../../../../construct/domain_layer/domain/webgpu/core/value_object/UniformBufferVO.bs.js");
 
function getCameraBufferData(param) {
  return OptionSt$Wonderjs.map(CPRepo$Wonderjs.getCamera(undefined).cameraBufferData, (function (param) {
                return [
                        UniformBufferVO$Wonderjs.create(param[0]),
                        param[1]
                      ];
              }));
}
 
function setCameraBufferData(param) {
  return CPRepo$Wonderjs.setCamera({
              cameraBufferData: [
                UniformBufferVO$Wonderjs.value(param[0]),
                param[1]
              ]
            });
}
 
exports.getCameraBufferData = getCameraBufferData;
exports.setCameraBufferData = setCameraBufferData;
/* CPRepo-Wonderjs Not a pure module */