Procházet zdrojové kódy

Fix PSVSemanticIndexes::Get function return value. (#1231)

The value obtained by calling table.Get was not actually returned.
Ehsan před 7 roky
rodič
revize
8df58eaf32
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      include/dxc/HLSL/DxilPipelineStateValidation.h

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

@@ -198,7 +198,7 @@ struct PSVSemanticIndexes {
   uint32_t Offset;
   PSVSemanticIndexes() : Offset(0) {}
   PSVSemanticIndexes(uint32_t offset) : Offset(offset) {}
-  uint32_t *Get(const PSVSemanticIndexTable &table) const { table.Get(Offset); }
+  const uint32_t *Get(const PSVSemanticIndexTable &table) const { return table.Get(Offset); }
 };
 
 enum class PSVSemanticKind : uint8_t    // DXIL::SemanticKind