Skip to content

Commit

Permalink
feat(dependency): add IWebGPUCoreDp, IWebGPURayTracingDp
Browse files Browse the repository at this point in the history
  • Loading branch information
yyc-git committed Sep 3, 2020
1 parent a9fdb71 commit 5e62880
Show file tree
Hide file tree
Showing 3 changed files with 771 additions and 1 deletion.
44 changes: 43 additions & 1 deletion src/construct/domain_layer/dependency/container/DpContainer.re
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,21 @@ type t = {
mutable poConfig: option(IConfigDp.poConfig),
mutable repo: option(IRepoDp.repo),
mutable time: option(ITimeDp.time),
mutable webgpuCore: option(IWebGPUCoreDp.webgpuCore),
mutable webgpuRayTracing: option(IWebGPURayTracingDp.webgpuRayTracing),
// mutable network: option(INetworkDp.network),
};

let dpContainer = {otherConfig: None, poConfig: None, repo: None, time: None};
let dpContainer = {
otherConfig: None,
poConfig: None,
repo: None,
time: None,

webgpuCore: None,
webgpuRayTracing: None,
// network: None,
};

let unsafeGetOtherConfigDp = () => {
dpContainer.otherConfig->OptionSt.unsafeGet;
Expand Down Expand Up @@ -90,3 +102,33 @@ let setTimeDp = dp => {

();
};

let unsafeGetWebGPUCoreDp = () => {
dpContainer.webgpuCore->OptionSt.unsafeGet;
};

let setWebGPUCoreDp = dp => {
dpContainer.webgpuCore = dp->Some;

();
};

let unsafeGetWebGPURayTracingDp = () => {
dpContainer.webgpuRayTracing->OptionSt.unsafeGet;
};

let setWebGPURayTracingDp = dp => {
dpContainer.webgpuRayTracing = dp->Some;

();
};

// let unsafeGetNetworkDp = () => {
// dpContainer.network->OptionSt.unsafeGet;
// };

// let setNetworkDp = dp => {
// dpContainer.network = dp->Some;

// ();
// };
Loading

0 comments on commit 5e62880

Please sign in to comment.