Skip to content
This repository has been archived by the owner on Apr 21, 2022. It is now read-only.

Commit

Permalink
fix for win32
Browse files Browse the repository at this point in the history
  • Loading branch information
azhirnov committed Sep 22, 2020
1 parent 77e6165 commit 1f9fa42
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions framegraph/Public/MultiSamples.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ namespace FG
constexpr MultiSamples () : _value{0} {}

explicit MultiSamples (uint samples) : _value{ CheckCast<uint8_t>( IntLog2( samples ))} {}
explicit MultiSamples (uint64_t samples) : _value{ CheckCast<uint8_t>( IntLog2( samples ))} {}

ND_ constexpr uint Get () const { return 1u << _value; }
ND_ constexpr uint8_t GetPowerOf2 () const { return _value; }
Expand All @@ -39,7 +38,7 @@ namespace FG
};


ND_ inline MultiSamples operator "" _samples (unsigned long long value) { return MultiSamples{ uint64_t(value) }; }
ND_ inline MultiSamples operator "" _samples (unsigned long long value) { return MultiSamples{ uint(value) }; }


} // FG
Expand Down

0 comments on commit 1f9fa42

Please sign in to comment.