yum-mirror/slang

Making it easier to work with shaders

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

Ellie Hermaszewskaformatf65d756bf

master
514 B28 linesraw
1// cuda-shader-program.h
2#pragma once
3#include "cuda-base.h"
4#include "cuda-context.h"
5#include "cuda-shader-object-layout.h"
6
7namespace gfx
8{
9#ifdef GFX_ENABLE_CUDA
10using namespace Slang;
11
12namespace cuda
13{
14
15class ShaderProgramImpl : public ShaderProgramBase
16{
17public:
18    CUmodule cudaModule = nullptr;
19    CUfunction cudaKernel;
20    String kernelName;
21    RefPtr<RootShaderObjectLayoutImpl> layout;
22    RefPtr<CUDAContext> cudaContext;
23    ~ShaderProgramImpl();
24};
25
26} // namespace cuda
27#endif
28} // namespace gfx