Wonder-Technology/Wonder.js

View on GitHub
lib/js/src/run/rtx_path_tracer/domain_layer/domain/pipeline/pipeline/entity/jobs/init/InitAccumulationCPJobEntity.bs.js

Summary

Maintainability
B
4 hrs
Test Coverage

Function _createAndSetBindGroup has 58 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function _createAndSetBindGroup(device, param) {
  var match = param[3];
  var match$1 = param[2];
  var match$2 = param[1];
  var match$3 = param[0];

    Function _createAndSetPipeline has 30 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    function _createAndSetPipeline(device, swapChainFormat, bindGroupLayout) {
      var baseShaderPath = "src/domain_layer/domain/shader/accumulation";
      var vertexShaderModule = Curry._2(WebGPUCoreDpRunAPI$Wonderjs.unsafeGet(undefined).device.createShaderModule, {
            code: Curry._1(WebGPUCoreDpRunAPI$Wonderjs.unsafeGet(undefined).loadGLSL, "" + baseShaderPath + "/accumulation.vert")
          }, device);

      Function exec has 29 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      function exec(param) {
        return Most.just(Result$Wonderjs.bind(Tuple3$Wonderjs.collectOption(WebGPUCPRepo$Wonderjs.getWindow(undefined), WebGPUCPRepo$Wonderjs.getDevice(undefined), WebGPUCPRepo$Wonderjs.getSwapChainFormat(undefined)), (function (param) {
                          var swapChainFormat = param[2];
                          var device = param[1];
                          AccumulationPassCPRepo$Wonderjs.setAccumulationPixelBufferData(_buildAccumulationPixelBufferData(param[0], device));

        There are no issues that match your filters.

        Category
        Status