summaryrefslogtreecommitdiffstats
path: root/tools/gfx/cpu/cpu-pipeline-state.cpp
blob: d0de985327d50be25279ef95ec6f9b0990eaed2f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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