slot 0.0.1
A real time UI render framework
载入中...
搜索中...
未找到
| 宏定义 | 类型定义 | 函数
slang-cpp-prelude.h 文件参考
#include <math.h>
#include <assert.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include "slang-cpp-scalar-intrinsics.h"
#include "slang-cpp-types.h"
slang-cpp-prelude.h 的引用(Include)关系图:

浏览源代码.

struct  SlangUUID
 
struct  ISlangUnknown
 

宏定义

#define SLANG_PRELUDE_STD
 
#define SLANG_INTPTR_TYPE_IS_DISTINCT   0
 
#define SLANG_PRELUDE_SHARED_LIB_EXPORT   __attribute__((__visibility__("default")))
 
#define SLANG_PRELUDE_EXTERN_C
 
#define SLANG_PRELUDE_EXTERN_C_START
 
#define SLANG_PRELUDE_EXTERN_C_END
 
#define SLANG_PRELUDE_EXPORT   SLANG_PRELUDE_EXTERN_C SLANG_PRELUDE_SHARED_LIB_EXPORT
 
#define SLANG_PRELUDE_EXPORT_START   SLANG_PRELUDE_EXTERN_C_START SLANG_PRELUDE_SHARED_LIB_EXPORT
 
#define SLANG_PRELUDE_EXPORT_END   SLANG_PRELUDE_EXTERN_C_END
 
#define INFINITY   float(1e+300 * 1e+300)
 
#define SLANG_INFINITY   INFINITY
 
#define SLANG_COMPILER
 
#define SLANG_VC   0
 
#define SLANG_CLANG   0
 
#define SLANG_SNC   0
 
#define SLANG_GHS   0
 
#define SLANG_GCC   0
 
#define SLANG_PLATFORM
 
#define SLANG_WINRT   0
 
#define SLANG_XBOXONE   0
 
#define SLANG_WIN64   0
 
#define SLANG_X360   0
 
#define SLANG_WIN32   0
 
#define SLANG_ANDROID   0
 
#define SLANG_LINUX   0
 
#define SLANG_IOS   0
 
#define SLANG_OSX   0
 
#define SLANG_PS3   0
 
#define SLANG_PS4   0
 
#define SLANG_PSP2   0
 
#define SLANG_WIIU   0
 
#define SLANG_GCC_FAMILY   (SLANG_CLANG || SLANG_SNC || SLANG_GHS || SLANG_GCC)
 
#define SLANG_WINDOWS_FAMILY   (SLANG_WINRT || SLANG_WIN32 || SLANG_WIN64)
 
#define SLANG_MICROSOFT_FAMILY   (SLANG_XBOXONE || SLANG_X360 || SLANG_WINDOWS_FAMILY)
 
#define SLANG_LINUX_FAMILY   (SLANG_LINUX || SLANG_ANDROID)
 
#define SLANG_APPLE_FAMILY   (SLANG_IOS || SLANG_OSX) /* equivalent to #if __APPLE__ */
 
#define SLANG_UNIX_FAMILY    (SLANG_LINUX_FAMILY || SLANG_APPLE_FAMILY) /* shortcut for unix/posix platforms */
 
#define SLANG_OFFSET_OF(X, Y)   offsetof(X, Y)
 
#define SLANG_BREAKPOINT(id)   (*((int*)0) = int(id));
 
#define SLANG_NO_THROW
 
#define SLANG_STDCALL
 
#define SLANG_MCALL   SLANG_STDCALL
 
#define SLANG_FORCE_INLINE   inline
 
#define SLANG_COM_INTERFACE(a, b, c, d0, d1, d2, d3, d4, d5, d6, d7)
 
#define SLANG_UNROLL
 

类型定义

typedef int32_t SlangResult
 

函数

static uint32_t _slang_atomic_add_u32 (uint32_t *ptr, uint32_t val)
 
static int32_t _slang_atomic_add_i32 (int32_t *ptr, int32_t val)
 

宏定义说明

◆ INFINITY

#define INFINITY   float(1e+300 * 1e+300)

◆ SLANG_ANDROID

#define SLANG_ANDROID   0

◆ SLANG_APPLE_FAMILY

#define SLANG_APPLE_FAMILY   (SLANG_IOS || SLANG_OSX) /* equivalent to #if __APPLE__ */

◆ SLANG_BREAKPOINT

#define SLANG_BREAKPOINT ( id)    (*((int*)0) = int(id));

◆ SLANG_CLANG

#define SLANG_CLANG   0

◆ SLANG_COM_INTERFACE

#define SLANG_COM_INTERFACE ( a,
b,
c,
d0,
d1,
d2,
d3,
d4,
d5,
d6,
d7 )
值:
public: \
SLANG_FORCE_INLINE static const SlangUUID& getTypeGuid() \
{ \
static const SlangUUID guid = {a, b, c, d0, d1, d2, d3, d4, d5, d6, d7}; \
return guid; \
}
#define SLANG_FORCE_INLINE
Definition slang-cpp-prelude.h:286
Definition slang-cpp-prelude.h:293

◆ SLANG_COMPILER

#define SLANG_COMPILER

◆ SLANG_FORCE_INLINE

#define SLANG_FORCE_INLINE   inline

◆ SLANG_GCC

#define SLANG_GCC   0

◆ SLANG_GCC_FAMILY

#define SLANG_GCC_FAMILY   (SLANG_CLANG || SLANG_SNC || SLANG_GHS || SLANG_GCC)

◆ SLANG_GHS

#define SLANG_GHS   0

◆ SLANG_INFINITY

#define SLANG_INFINITY   INFINITY

◆ SLANG_INTPTR_TYPE_IS_DISTINCT

#define SLANG_INTPTR_TYPE_IS_DISTINCT   0

◆ SLANG_IOS

#define SLANG_IOS   0

◆ SLANG_LINUX

#define SLANG_LINUX   0

◆ SLANG_LINUX_FAMILY

#define SLANG_LINUX_FAMILY   (SLANG_LINUX || SLANG_ANDROID)

◆ SLANG_MCALL

#define SLANG_MCALL   SLANG_STDCALL

◆ SLANG_MICROSOFT_FAMILY

#define SLANG_MICROSOFT_FAMILY   (SLANG_XBOXONE || SLANG_X360 || SLANG_WINDOWS_FAMILY)

◆ SLANG_NO_THROW

#define SLANG_NO_THROW

◆ SLANG_OFFSET_OF

#define SLANG_OFFSET_OF ( X,
Y )   offsetof(X, Y)

◆ SLANG_OSX

#define SLANG_OSX   0

◆ SLANG_PLATFORM

#define SLANG_PLATFORM

◆ SLANG_PRELUDE_EXPORT

#define SLANG_PRELUDE_EXPORT   SLANG_PRELUDE_EXTERN_C SLANG_PRELUDE_SHARED_LIB_EXPORT

◆ SLANG_PRELUDE_EXPORT_END

#define SLANG_PRELUDE_EXPORT_END   SLANG_PRELUDE_EXTERN_C_END

◆ SLANG_PRELUDE_EXPORT_START

#define SLANG_PRELUDE_EXPORT_START   SLANG_PRELUDE_EXTERN_C_START SLANG_PRELUDE_SHARED_LIB_EXPORT

◆ SLANG_PRELUDE_EXTERN_C

#define SLANG_PRELUDE_EXTERN_C

◆ SLANG_PRELUDE_EXTERN_C_END

#define SLANG_PRELUDE_EXTERN_C_END

◆ SLANG_PRELUDE_EXTERN_C_START

#define SLANG_PRELUDE_EXTERN_C_START

◆ SLANG_PRELUDE_SHARED_LIB_EXPORT

#define SLANG_PRELUDE_SHARED_LIB_EXPORT   __attribute__((__visibility__("default")))

◆ SLANG_PRELUDE_STD

#define SLANG_PRELUDE_STD

◆ SLANG_PS3

#define SLANG_PS3   0

◆ SLANG_PS4

#define SLANG_PS4   0

◆ SLANG_PSP2

#define SLANG_PSP2   0

◆ SLANG_SNC

#define SLANG_SNC   0

◆ SLANG_STDCALL

#define SLANG_STDCALL

◆ SLANG_UNIX_FAMILY

#define SLANG_UNIX_FAMILY    (SLANG_LINUX_FAMILY || SLANG_APPLE_FAMILY) /* shortcut for unix/posix platforms */

◆ SLANG_UNROLL

#define SLANG_UNROLL

◆ SLANG_VC

#define SLANG_VC   0

◆ SLANG_WIIU

#define SLANG_WIIU   0

◆ SLANG_WIN32

#define SLANG_WIN32   0

◆ SLANG_WIN64

#define SLANG_WIN64   0

◆ SLANG_WINDOWS_FAMILY

#define SLANG_WINDOWS_FAMILY   (SLANG_WINRT || SLANG_WIN32 || SLANG_WIN64)

◆ SLANG_WINRT

#define SLANG_WINRT   0

◆ SLANG_X360

#define SLANG_X360   0

◆ SLANG_XBOXONE

#define SLANG_XBOXONE   0

类型定义说明

◆ SlangResult

typedef int32_t SlangResult

函数说明

◆ _slang_atomic_add_i32()

static int32_t _slang_atomic_add_i32 ( int32_t * ptr,
int32_t val )
inlinestatic

◆ _slang_atomic_add_u32()

static uint32_t _slang_atomic_add_u32 ( uint32_t * ptr,
uint32_t val )
inlinestatic