yum-mirror/slang
Making it easier to work with shaders
git clone https://git.yummers.dev/yum-mirror/slang
f65d756bf
master
1// slang-rt.h 2#ifndef SLANG_RT_H 3#define SLANG_RT_H 4 5#include "../core/slang-com-object.h" 6#include "../core/slang-smart-pointer.h" 7#include "../core/slang-string.h" 8 9#ifdef SLANG_RT_DYNAMIC_EXPORT 10#define SLANG_RT_API SLANG_DLL_EXPORT 11#else 12#define SLANG_RT_API 13#endif 14 15#if defined(_MSC_VER ) 16#define SLANG_PRELUDE_SHARED_LIB_EXPORT __declspec(dllexport) 17#else 18#define SLANG_PRELUDE_SHARED_LIB_EXPORT __attribute__((__visibility__("default"))) 19// # define SLANG_PRELUDE_SHARED_LIB_EXPORT __attribute__ ((dllexport)) 20// __attribute__((__visibility__("default"))) 21#endif 22 23#define SLANG_PRELUDE_EXPORT extern "C" SLANG_PRELUDE_SHARED_LIB_EXPORT 24 25extern "C" 26{ 27SLANG_RT_API void SLANG_MCALL _slang_rt_abort (Slang ::String errorMessage ); 28SLANG_RT_API void * SLANG_MCALL _slang_rt_load_dll (Slang ::String modulePath ); 29SLANG_RT_API void * SLANG_MCALL 30_slang_rt_load_dll_func (void * moduleHandle ,Slang ::String modulePath ,uint32_t argSize ); 31} 32 33#endif