-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(architecture): add InitPathTracingCPJobEntity, InitAccumulationC…
…PJobEntity pass unit test;
- Loading branch information
Showing
41 changed files
with
2,748 additions
and
68 deletions.
There are no files selected for viewing
3 changes: 3 additions & 0 deletions
3
src/construct/application_layer/dependency/WebGPURayTracingDpApService.re
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
let set = dp => { | ||
DpContainer.setWebGPURayTracingDp(dp); | ||
}; |
19 changes: 19 additions & 0 deletions
19
src/construct/application_layer/scene/DirectionLightApService.re
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
let getColor = light => { | ||
OperateDirectionLightDoService.getColor(light); | ||
}; | ||
|
||
let getIntensity = light => { | ||
OperateDirectionLightDoService.getIntensity(light); | ||
}; | ||
|
||
let getAllLights = (sceneGameObject) => { | ||
AllDirectionLightsDoService.getAllLights(sceneGameObject); | ||
}; | ||
|
||
let getDirection = light => { | ||
DirectionDirectionLightDoService.getDirection(light); | ||
}; | ||
|
||
let getLightCount = (sceneGameObject) => { | ||
AllDirectionLightsDoService.getLightCount(sceneGameObject); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
src/construct/domain_layer/domain/scene/scene_graph/entity/DirectionLightEntity.re
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
type t = | ||
| DirectionLight(SceneGraphType.directionLight); | ||
|
||
let create = index => DirectionLight(index); | ||
|
||
let value = directionLight => | ||
switch (directionLight) { | ||
| DirectionLight(index) => index | ||
}; |
10 changes: 10 additions & 0 deletions
10
...ain_layer/domain/scene/scene_graph/service/direction_light/AllDirectionLightsDoService.re
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
let getAllLights = sceneGameObject => { | ||
DpContainer.unsafeGetDirectionLightRepoDp().getAllLights( | ||
sceneGameObject->GameObjectEntity.value, | ||
) | ||
->ListSt.map(DirectionLightEntity.create); | ||
}; | ||
|
||
let getLightCount = sceneGameObject => { | ||
getAllLights(sceneGameObject)->ListSt.length; | ||
}; |
5 changes: 5 additions & 0 deletions
5
...ayer/domain/scene/scene_graph/service/direction_light/DirectionDirectionLightDoService.re
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
let getDirection = light => | ||
DpContainer.unsafeGetDirectionLightRepoDp().getDirection( | ||
light->DirectionLightEntity.value, | ||
) | ||
->DirectionVO.create; |
11 changes: 11 additions & 0 deletions
11
..._layer/domain/scene/scene_graph/service/direction_light/OperateDirectionLightDoService.re
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
let getColor = light => | ||
DpContainer.unsafeGetDirectionLightRepoDp().getColor( | ||
light->DirectionLightEntity.value, | ||
) | ||
->Color3VO.create; | ||
|
||
let getIntensity = light => | ||
DpContainer.unsafeGetDirectionLightRepoDp().getIntensity( | ||
light->DirectionLightEntity.value, | ||
) | ||
->IntensityVO.create; |
9 changes: 9 additions & 0 deletions
9
src/construct/domain_layer/domain/scene/scene_graph/value_object/Color3VO.re
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
type t = | ||
| Color3(SceneGraphType.color3); | ||
|
||
let create = value => Color3(value); | ||
|
||
let value = color => | ||
switch (color) { | ||
| Color3(value) => value | ||
}; |
9 changes: 9 additions & 0 deletions
9
src/construct/domain_layer/domain/scene/scene_graph/value_object/DirectionVO.re
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
type t = | ||
| Direction(SceneGraphType.direction); | ||
|
||
let create = value => Direction(value); | ||
|
||
let value = direction => | ||
switch (direction) { | ||
| Direction(value) => value | ||
}; |
9 changes: 9 additions & 0 deletions
9
src/construct/domain_layer/domain/scene/scene_graph/value_object/IntensityVO.re
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
type t = | ||
| Intensity(SceneGraphType.intensity); | ||
|
||
let create = value => Intensity(value); | ||
|
||
let value = intensity => | ||
switch (intensity) { | ||
| Intensity(value) => value | ||
}; |
7 changes: 7 additions & 0 deletions
7
src/construct/external_layer/api/dependency/WebGPURayTracingDpRunAPI.re
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
let unsafeGet = () => { | ||
DpContainer.unsafeGetWebGPURayTracingDp(); | ||
}; | ||
|
||
let set = (dp: IWebGPURayTracingDp.webgpuRayTracing) => { | ||
WebGPURayTracingDpApService.set(dp); | ||
}; |
19 changes: 19 additions & 0 deletions
19
src/construct/external_layer/api/domain/DirectionLightRunAPI.re
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
let getColor = light => { | ||
DirectionLightApService.getColor(light); | ||
}; | ||
|
||
let getIntensity = light => { | ||
DirectionLightApService.getIntensity(light); | ||
}; | ||
|
||
let getAllLights = (sceneGameObject) => { | ||
DirectionLightApService.getAllLights(sceneGameObject); | ||
}; | ||
|
||
let getDirection = light => { | ||
DirectionLightApService.getDirection(light); | ||
}; | ||
|
||
let getLightCount = (sceneGameObject) => { | ||
DirectionLightApService.getLightCount(sceneGameObject); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.