yum-mirror/slang

Making it easier to work with shaders

git clone https://git.yummers.dev/yum-mirror/slang

lucy96chenSplit render-cuda.cpp into smaller files (#2334)ce6e946f6

master
421 B22 linesraw
1// cuda-pipeline-state.cpp
2#include "cuda-pipeline-state.h"
3
4namespace gfx
5{
6#ifdef GFX_ENABLE_CUDA
7using namespace Slang;
8
9namespace cuda
10{
11
12void ComputePipelineStateImpl::init(const ComputePipelineStateDesc& inDesc)
13{
14    PipelineStateDesc pipelineDesc;
15    pipelineDesc.type = PipelineType::Compute;
16    pipelineDesc.compute = inDesc;
17    initializeBase(pipelineDesc);
18}
19
20} // namespace cuda
21#endif
22} // namespace gfx