소스 검색

[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