diff options
| author | lucy96chen <47800040+lucy96chen@users.noreply.github.com> | 2022-07-27 15:53:36 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-07-27 15:53:36 -0700 |
| commit | ed37dcbc175d07134cb0493f5e379a19e97c82f5 (patch) | |
| tree | 0abd3202401d89e76a979ab7c18569afd63db8a6 /tools/gfx/cpu/cpu-pipeline-state.cpp | |
| parent | de0f8cf1be0770b87a117b637943db4ad4e1158b (diff) | |
Split render-cpu into smaller files (#2340)
* render-cpu split, does not compile
* split finished, one compile error
* added missing include and missing destructor implementation
* Rerun TeamCity CI
Diffstat (limited to 'tools/gfx/cpu/cpu-pipeline-state.cpp')
| -rw-r--r-- | tools/gfx/cpu/cpu-pipeline-state.cpp | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/tools/gfx/cpu/cpu-pipeline-state.cpp b/tools/gfx/cpu/cpu-pipeline-state.cpp new file mode 100644 index 000000000..7d2b6a636 --- /dev/null +++ b/tools/gfx/cpu/cpu-pipeline-state.cpp @@ -0,0 +1,27 @@ +// cpu-pipeline-state.cpp +#include "cpu-pipeline-state.h" + +#include "cpu-shader-program.h" + +namespace gfx +{ +using namespace Slang; + +namespace cpu +{ + + ShaderProgramImpl* PipelineStateImpl::getProgram() + { + return static_cast<ShaderProgramImpl*>(m_program.Ptr()); + } + + void PipelineStateImpl::init(const ComputePipelineStateDesc& inDesc) + { + PipelineStateDesc pipelineDesc; + pipelineDesc.type = PipelineType::Compute; + pipelineDesc.compute = inDesc; + initializeBase(pipelineDesc); + } + +} // namespace cpu +} // namespace gfx |
