Преглед на файлове

[linux-port] Address comments. Use uintXX_t instead of unsigned __intXX.

Ehsan Nasiri преди 6 години
родител
ревизия
2bfa749226
променени са 1 файла, в които са добавени 6 реда и са изтрити 11 реда
  1. 6 11
      lib/HLSL/DxilPatchShaderRecordBindingsShared.h

+ 6 - 11
lib/HLSL/DxilPatchShaderRecordBindingsShared.h

@@ -21,11 +21,6 @@
 #define FallbackLayerDispatchConstantsRegister 0
 #define FallbackLayerAccelerationStructureList 1
 
-#ifndef _WIN32
-#define __int32 int
-#define __int64 long long
-#endif
-
 #ifndef HLSL
 struct ViewKey {
   unsigned int ViewType;
@@ -51,14 +46,14 @@ struct ShaderInfo {
 };
 
 struct DispatchRaysConstants {
-  unsigned __int32 RayDispatchDimensionsWidth;
-  unsigned __int32 RayDispatchDimensionsHeight;
-  unsigned __int32 HitGroupShaderRecordStride;
-  unsigned __int32 MissShaderRecordStride;
+  uint32_t RayDispatchDimensionsWidth;
+  uint32_t RayDispatchDimensionsHeight;
+  uint32_t HitGroupShaderRecordStride;
+  uint32_t MissShaderRecordStride;
 
   // 64-bit values
-  unsigned __int64 SamplerDescriptorHeapStart;
-  unsigned __int64 SrvCbvUavDescriptorHeapStart;
+  uint64_t SamplerDescriptorHeapStart;
+  uint64_t SrvCbvUavDescriptorHeapStart;
 };
 
 enum DescriptorRangeTypes { SRV = 0, CBV, UAV, Sampler, NumRangeTypes };