浏览代码

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

Ehsan Nasiri 7 年之前
父节点
当前提交
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 };