Sfoglia il codice sorgente

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

Ehsan Nasiri 7 anni fa
parent
commit
be1b8b36e4
1 ha cambiato i file con 6 aggiunte e 1 eliminazioni
  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