浏览代码

[linux-port] define__int32 and __int64 for linux/macOS.

Ehsan Nasiri 7 年之前
父节点
当前提交
be1b8b36e4
共有 1 个文件被更改,包括 6 次插入1 次删除
  1. 6 1
      lib/HLSL/DxilPatchShaderRecordBindingsShared.h

+ 6 - 1
lib/HLSL/DxilPatchShaderRecordBindingsShared.h

@@ -21,10 +21,15 @@
 #define FallbackLayerDispatchConstantsRegister 0
 #define FallbackLayerAccelerationStructureList 1
 
+#ifndef _WIN32
+#define __int32 int
+#define __int64 long long
+#endif
+
 #ifndef HLSL
 struct ViewKey {
   unsigned int ViewType;
-  union 
+  union
   {
     unsigned int StructuredStride; // When ViewType == StructuredBuffer
     unsigned int SRVComponentType; // When ViewType != StructuredBuffer &&  ViewType != RawBuffer