yum-mirror/slang
Making it easier to work with shaders
git clone https://git.yummers.dev/yum-mirror/slang
f65d756bf
master
1// cpu-pipeline-state.cpp 2#include "cpu-pipeline-state.h" 3 4#include "cpu-shader-program.h" 5 6namespace gfx 7{ 8using namespace Slang ; 9 10namespace cpu 11{ 12 13ShaderProgramImpl * PipelineStateImpl ::getProgram () 14{ 15return static_cast < ShaderProgramImpl *> (m_program .Ptr ()); 16} 17 18void PipelineStateImpl ::init (const ComputePipelineStateDesc & inDesc ) 19{ 20PipelineStateDesc pipelineDesc ; 21pipelineDesc .type = PipelineType ::Compute ; 22pipelineDesc .compute = inDesc ; 23initializeBase (pipelineDesc ); 24} 25 26}// namespace cpu 27}// namespace gfx