Selaa lähdekoodia

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

The value obtained by calling table.Get was not actually returned.
Ehsan 7 vuotta sitten
vanhempi
commit
8df58eaf32
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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