Skip to content

Commit

Permalink
Make RuntimeDataFunctionInfo_Reader::GetFeatureFlags const
Browse files Browse the repository at this point in the history
  • Loading branch information
tex3d committed Feb 6, 2024
1 parent 2c97e89 commit 1f1649f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/dxc/DxilContainer/RDAT_LibraryTypes.inl
Original file line number Diff line number Diff line change
Expand Up @@ -154,10 +154,10 @@ RDAT_STRUCT_TABLE(RuntimeDataFunctionInfo, FunctionTable)

#if DEF_RDAT_TYPES == DEF_RDAT_READER_DECL
// uint64_t GetFeatureFlags() convenience method
uint64_t GetFeatureFlags();
uint64_t GetFeatureFlags() const;
#elif DEF_RDAT_TYPES == DEF_RDAT_READER_IMPL
// uint64_t GetFeatureFlags() convenience method
uint64_t RuntimeDataFunctionInfo_Reader::GetFeatureFlags() {
uint64_t RuntimeDataFunctionInfo_Reader::GetFeatureFlags() const {
return asRecord() ? (((uint64_t)asRecord()->FeatureInfo2 << 32) |
(uint64_t)asRecord()->FeatureInfo1)
: 0;
Expand Down

0 comments on commit 1f1649f

Please sign in to comment.