summaryrefslogtreecommitdiffstats
path: root/tools/gfx/d3d11/d3d11-pipeline-state.cpp
diff options
context:
space:
mode:
authorlucy96chen <47800040+lucy96chen@users.noreply.github.com>2022-06-30 11:09:45 -0700
committerGitHub <noreply@github.com>2022-06-30 11:09:45 -0700
commit5eee6b03c391d0bb6ed0ded2d8d91c2e525fdb97 (patch)
tree0d47d3ebc385699ff195c8a19400dd3780107667 /tools/gfx/d3d11/d3d11-pipeline-state.cpp
parentabc100f81d4b22229105f9ed569a7efafc653a3a (diff)
Split render-d3d11.cpp into smaller files (#2307)
* render-d3d11 split, does not compile * Compiles but unit tests failing * ran premake.bat * Readded constructor code that was accidentally removed
Diffstat (limited to 'tools/gfx/d3d11/d3d11-pipeline-state.cpp')
-rw-r--r--tools/gfx/d3d11/d3d11-pipeline-state.cpp29
1 files changed, 29 insertions, 0 deletions
diff --git a/tools/gfx/d3d11/d3d11-pipeline-state.cpp b/tools/gfx/d3d11/d3d11-pipeline-state.cpp
new file mode 100644
index 000000000..f4a6d7dbd
--- /dev/null
+++ b/tools/gfx/d3d11/d3d11-pipeline-state.cpp
@@ -0,0 +1,29 @@
+// d3d11-pipeline-state.cpp
+#include "d3d11-pipeline-state.h"
+
+namespace gfx
+{
+
+using namespace Slang;
+
+namespace d3d11
+{
+
+void GraphicsPipelineStateImpl::init(const GraphicsPipelineStateDesc& inDesc)
+{
+ PipelineStateBase::PipelineStateDesc pipelineDesc;
+ pipelineDesc.graphics = inDesc;
+ pipelineDesc.type = PipelineType::Graphics;
+ initializeBase(pipelineDesc);
+}
+
+void ComputePipelineStateImpl::init(const ComputePipelineStateDesc& inDesc)
+{
+ PipelineStateBase::PipelineStateDesc pipelineDesc;
+ pipelineDesc.compute = inDesc;
+ pipelineDesc.type = PipelineType::Compute;
+ initializeBase(pipelineDesc);
+}
+
+} // namespace d3d11
+} // namespace gfx