mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2025-09-12 18:09:42 +00:00
updated vulkan to make use of cm2
This commit is contained in:
parent
40adb8af35
commit
29b57d2175
99 changed files with 96968 additions and 35296 deletions
|
@ -1,8 +1,8 @@
|
|||
#ifndef SLANG_CPP_HOST_PRELUDE_H
|
||||
#define SLANG_CPP_HOST_PRELUDE_H
|
||||
|
||||
#include <cstdio>
|
||||
#include <cmath>
|
||||
#include <cstdio>
|
||||
#include <cstring>
|
||||
|
||||
#define SLANG_COM_PTR_ENABLE_REF_OPERATOR 1
|
||||
|
@ -14,42 +14,45 @@
|
|||
#ifdef SLANG_LLVM
|
||||
#include "slang-llvm.h"
|
||||
#else // SLANG_LLVM
|
||||
# if SLANG_GCC_FAMILY && __GNUC__ < 6
|
||||
# include <cmath>
|
||||
# define SLANG_PRELUDE_STD std::
|
||||
# else
|
||||
# include <math.h>
|
||||
# define SLANG_PRELUDE_STD
|
||||
# endif
|
||||
#if SLANG_GCC_FAMILY && __GNUC__ < 6
|
||||
#include <cmath>
|
||||
#define SLANG_PRELUDE_STD std::
|
||||
#else
|
||||
#include <math.h>
|
||||
#define SLANG_PRELUDE_STD
|
||||
#endif
|
||||
|
||||
# include <assert.h>
|
||||
# include <stdlib.h>
|
||||
# include <string.h>
|
||||
# include <stdint.h>
|
||||
#include <assert.h>
|
||||
#include <stdint.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#endif // SLANG_LLVM
|
||||
|
||||
#if defined(_MSC_VER)
|
||||
# define SLANG_PRELUDE_SHARED_LIB_EXPORT __declspec(dllexport)
|
||||
#define SLANG_PRELUDE_SHARED_LIB_EXPORT __declspec(dllexport)
|
||||
#else
|
||||
# define SLANG_PRELUDE_SHARED_LIB_EXPORT __attribute__((__visibility__("default")))
|
||||
//# define SLANG_PRELUDE_SHARED_LIB_EXPORT __attribute__ ((dllexport)) __attribute__((__visibility__("default")))
|
||||
#endif
|
||||
#define SLANG_PRELUDE_SHARED_LIB_EXPORT __attribute__((__visibility__("default")))
|
||||
// # define SLANG_PRELUDE_SHARED_LIB_EXPORT __attribute__ ((dllexport))
|
||||
// __attribute__((__visibility__("default")))
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
# define SLANG_PRELUDE_EXTERN_C extern "C"
|
||||
# define SLANG_PRELUDE_EXTERN_C_START extern "C" {
|
||||
# define SLANG_PRELUDE_EXTERN_C_END }
|
||||
#ifdef __cplusplus
|
||||
#define SLANG_PRELUDE_EXTERN_C extern "C"
|
||||
#define SLANG_PRELUDE_EXTERN_C_START \
|
||||
extern "C" \
|
||||
{
|
||||
#define SLANG_PRELUDE_EXTERN_C_END }
|
||||
#else
|
||||
# define SLANG_PRELUDE_EXTERN_C
|
||||
# define SLANG_PRELUDE_EXTERN_C_START
|
||||
# define SLANG_PRELUDE_EXTERN_C_END
|
||||
#endif
|
||||
#define SLANG_PRELUDE_EXTERN_C
|
||||
#define SLANG_PRELUDE_EXTERN_C_START
|
||||
#define SLANG_PRELUDE_EXTERN_C_END
|
||||
#endif
|
||||
|
||||
#include "slang-cpp-scalar-intrinsics.h"
|
||||
|
||||
using namespace Slang;
|
||||
|
||||
template<typename TResult, typename... Args>
|
||||
using Slang_FuncType = TResult(SLANG_MCALL *)(Args...);
|
||||
using Slang_FuncType = TResult(SLANG_MCALL*)(Args...);
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue