All files / run/cloud_picture/domain_layer/repo WebGPUCPRepo.bs.js

100% Statements 37/37
100% Branches 0/0
100% Functions 14/14
100% Lines 37/37

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 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140    26x 26x     55x       62x 62x                       24x       31x 31x                       1x       6x 6x                       1x       6x 6x                       42x       47x 47x                       6x       11x 11x                       8x       13x 13x                     26x 26x 26x 26x 26x 26x 26x 26x 26x 26x 26x 26x 26x 26x    
'use strict';
 
var Caml_option = require("bs-platform/lib/js/caml_option.js");
var CPRepo$Wonderjs = require("../../infrastructure_layer/data/container/CPRepo.bs.js");
 
function getDevice(param) {
  return CPRepo$Wonderjs.getWebGPU(undefined).device;
}
 
function setDevice(device) {
  var init = CPRepo$Wonderjs.getWebGPU(undefined);
  return CPRepo$Wonderjs.setWebGPU({
              device: Caml_option.some(device),
              window: init.window,
              adapter: init.adapter,
              context: init.context,
              queue: init.queue,
              swapChainFormat: init.swapChainFormat,
              swapChain: init.swapChain
            });
}
 
function getWindow(param) {
  return CPRepo$Wonderjs.getWebGPU(undefined).window;
}
 
function setWindow($$window) {
  var init = CPRepo$Wonderjs.getWebGPU(undefined);
  return CPRepo$Wonderjs.setWebGPU({
              device: init.device,
              window: Caml_option.some($$window),
              adapter: init.adapter,
              context: init.context,
              queue: init.queue,
              swapChainFormat: init.swapChainFormat,
              swapChain: init.swapChain
            });
}
 
function getAdapter(param) {
  return CPRepo$Wonderjs.getWebGPU(undefined).adapter;
}
 
function setAdapter(adapter) {
  var init = CPRepo$Wonderjs.getWebGPU(undefined);
  return CPRepo$Wonderjs.setWebGPU({
              device: init.device,
              window: init.window,
              adapter: Caml_option.some(adapter),
              context: init.context,
              queue: init.queue,
              swapChainFormat: init.swapChainFormat,
              swapChain: init.swapChain
            });
}
 
function getContext(param) {
  return CPRepo$Wonderjs.getWebGPU(undefined).context;
}
 
function setContext(context) {
  var init = CPRepo$Wonderjs.getWebGPU(undefined);
  return CPRepo$Wonderjs.setWebGPU({
              device: init.device,
              window: init.window,
              adapter: init.adapter,
              context: Caml_option.some(context),
              queue: init.queue,
              swapChainFormat: init.swapChainFormat,
              swapChain: init.swapChain
            });
}
 
function getQueue(param) {
  return CPRepo$Wonderjs.getWebGPU(undefined).queue;
}
 
function setQueue(queue) {
  var init = CPRepo$Wonderjs.getWebGPU(undefined);
  return CPRepo$Wonderjs.setWebGPU({
              device: init.device,
              window: init.window,
              adapter: init.adapter,
              context: init.context,
              queue: Caml_option.some(queue),
              swapChainFormat: init.swapChainFormat,
              swapChain: init.swapChain
            });
}
 
function getSwapChainFormat(param) {
  return CPRepo$Wonderjs.getWebGPU(undefined).swapChainFormat;
}
 
function setSwapChainFormat(swapChainFormat) {
  var init = CPRepo$Wonderjs.getWebGPU(undefined);
  return CPRepo$Wonderjs.setWebGPU({
              device: init.device,
              window: init.window,
              adapter: init.adapter,
              context: init.context,
              queue: init.queue,
              swapChainFormat: swapChainFormat,
              swapChain: init.swapChain
            });
}
 
function getSwapChain(param) {
  return CPRepo$Wonderjs.getWebGPU(undefined).swapChain;
}
 
function setSwapChain(swapChain) {
  var init = CPRepo$Wonderjs.getWebGPU(undefined);
  return CPRepo$Wonderjs.setWebGPU({
              device: init.device,
              window: init.window,
              adapter: init.adapter,
              context: init.context,
              queue: init.queue,
              swapChainFormat: init.swapChainFormat,
              swapChain: Caml_option.some(swapChain)
            });
}
 
exports.getDevice = getDevice;
exports.setDevice = setDevice;
exports.getWindow = getWindow;
exports.setWindow = setWindow;
exports.getAdapter = getAdapter;
exports.setAdapter = setAdapter;
exports.getContext = getContext;
exports.setContext = setContext;
exports.getQueue = getQueue;
exports.setQueue = setQueue;
exports.getSwapChainFormat = getSwapChainFormat;
exports.setSwapChainFormat = setSwapChainFormat;
exports.getSwapChain = getSwapChain;
exports.setSwapChain = setSwapChain;
/* CPRepo-Wonderjs Not a pure module */