소스 검색

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

The value obtained by calling table.Get was not actually returned.
Ehsan 7 년 전
부모
커밋
8df58eaf32
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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