diff options
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 |
