Skip to content

Commit 3a23f3b

Browse files
committed
feat(architecture): fix baseShaderPath:remove cloud_picture/
1 parent 8a213f5 commit 3a23f3b

File tree

5 files changed

+8
-13
lines changed

5 files changed

+8
-13
lines changed

.cz-config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ module.exports = {
1515
],
1616

1717
scopes: [
18+
{ name: "architecture" },
1819
{ name: "scene" },
1920
{ name: "gameObject" },
2021
{ name: "transform" },
@@ -32,7 +33,6 @@ module.exports = {
3233
refactor: [
3334
{ name: "duplication" },
3435
{ name: "rename" },
35-
{ name: "architecture" },
3636
{ name: "too-much" },
3737
{ name: "dead-code" },
3838
{ name: "type" },

src/run/domain_layer/domain/pipeline/pipeline/entity/jobs/init/InitAccumulationCPJobEntity.re

+1-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ let _createAndSetBindGroup =
110110
};
111111

112112
let _createAndSetPipeline = (device, swapChainFormat, bindGroupLayout) => {
113-
let baseShaderPath = "src/run/cloud_picture/domain_layer/domain/shader/accumulation";
113+
let baseShaderPath = "src/run/domain_layer/domain/shader/accumulation";
114114

115115
let vertexShaderModule =
116116
WebGPUCoreDpRunAPI.unsafeGet().device.createShaderModule(

src/run/domain_layer/domain/pipeline/pipeline/entity/jobs/init/InitPathTracingCPJobEntity.re

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ let _buildDirectionLightBufferData = (device, sceneGameObject) => {
7474
};
7575

7676
let _createShaderBindingTable = device => {
77-
let baseShaderPath = "src/run/cloud_picture/domain_layer/domain/shader/ray_tracing";
77+
let baseShaderPath = "src/run/domain_layer/domain/shader/ray_tracing";
7878

7979
let rayGenShaderModule =
8080
WebGPUCoreDpRunAPI.unsafeGet().device.createShaderModule(

test/run/integration/initAccumulationCPJob_test.re

+4-9
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ let _ =
256256
describe("create pipeline and set to po", () => {
257257
testPromise("create all shader modules", () => {
258258
let (window, device, swapChainFormat) = _prepare();
259-
let baseShaderPath = "src/run/cloud_picture/domain_layer/domain/shader/accumulation";
259+
let baseShaderPath = "src/run/domain_layer/domain/shader/accumulation";
260260
let buffer = WebGPUDependencyTool.createBufferObject();
261261
let vertexGLSL = "a1";
262262
let fragmentGLSL = "a2";
@@ -268,8 +268,7 @@ let _ =
268268
->SinonTool.createTwoArgsEmptyStubData;
269269
WebGPUDependencyTool.build(
270270
~sandbox,
271-
~createShaderModule=
272-
createShaderModuleStubData->SinonTool.getDpFunc,
271+
~createShaderModule=createShaderModuleStubData->SinonTool.getDpFunc,
273272
~loadGLSL,
274273
(),
275274
)
@@ -287,10 +286,7 @@ let _ =
287286
createShaderModuleStubData
288287
->SinonTool.getStub
289288
->getCall(1, _)
290-
->SinonTool.calledWithArg2(
291-
{"code": fragmentGLSL},
292-
device,
293-
),
289+
->SinonTool.calledWithArg2({"code": fragmentGLSL}, device),
294290
),
295291
(
296292
loadGLSL
@@ -348,8 +344,7 @@ let _ =
348344
->SinonTool.createTwoArgsEmptyStubData;
349345
WebGPUDependencyTool.build(
350346
~sandbox,
351-
~createShaderModule=
352-
createShaderModuleStubData->SinonTool.getDpFunc,
347+
~createShaderModule=createShaderModuleStubData->SinonTool.getDpFunc,
353348
~createBindGroupLayout=
354349
createBindGroupLayoutStubData->SinonTool.getDpFunc,
355350
~createPipelineLayout=

test/run/integration/initPathTracingCPJob_test.re

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ let _ =
5858
describe("create shader binding table and set to po", () => {
5959
testPromise("create all shader modules", () => {
6060
let ((device, _), _) = _prepare(sandbox);
61-
let baseShaderPath = "src/run/cloud_picture/domain_layer/domain/shader/ray_tracing";
61+
let baseShaderPath = "src/run/domain_layer/domain/shader/ray_tracing";
6262
let buffer = WebGPUDependencyTool.createBufferObject();
6363
let rayGenGLSL = "a1";
6464
let rayRChitGLSL = "a2";

0 commit comments

Comments
 (0)