瀏覽代碼

Add new feature info names to disassembler (#476)

- also update ShaderFeatureInfoCount and static_assert that the
count matches in disassembler
Tex Riddell 8 年之前
父節點
當前提交
bcbaa611ed
共有 2 個文件被更改,包括 4 次插入1 次删除
  1. 1 1
      include/dxc/HLSL/DxilContainer.h
  2. 3 0
      tools/clang/tools/dxcompiler/dxcdisassembler.cpp

+ 1 - 1
include/dxc/HLSL/DxilContainer.h

@@ -106,7 +106,7 @@ static const uint64_t ShaderFeatureInfo_Int64Ops = 0x8000;
 static const uint64_t ShaderFeatureInfo_ViewID = 0x10000;
 static const uint64_t ShaderFeatureInfo_Barycentrics = 0x20000;
 
-static const unsigned ShaderFeatureInfoCount = 16;
+static const unsigned ShaderFeatureInfoCount = 18;
 
 struct DxilShaderFeatureInfo {
   uint64_t FeatureFlags;

+ 3 - 0
tools/clang/tools/dxcompiler/dxcdisassembler.cpp

@@ -311,7 +311,10 @@ PCSTR g_pFeatureInfoNames[] = {
     "feeding rasterizer",
     "Wave level operations",
     "64-Bit integer",
+    "View Instancing",
+    "Barycentrics",
 };
+static_assert(_countof(g_pFeatureInfoNames) == ShaderFeatureInfoCount, "g_pFeatureInfoNames needs to be updated");
 
 void PrintFeatureInfo(const DxilShaderFeatureInfo *pFeatureInfo,
                              raw_string_ostream &OS, StringRef comment) {