yum-mirror/slang
Making it easier to work with shaders
git clone https://git.yummers.dev/yum-mirror/slang
f65d756bf
master
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 : 18CUmodule cudaModule = nullptr ; 19CUfunction cudaKernel ; 20String kernelName ; 21RefPtr < RootShaderObjectLayoutImpl > layout ; 22RefPtr < CUDAContext > cudaContext ; 23 ~ShaderProgramImpl (); 24}; 25 26}// namespace cuda 27#endif 28}// namespace gfx