[dxbc] Add ostream operator for DxbcScalarType

This commit is contained in:
Liam Middlebrook 2019-07-10 13:27:44 -07:00 committed by Philip Rebohle
parent 89afd586ef
commit 2164a44887
2 changed files with 15 additions and 0 deletions

View File

@ -428,4 +428,18 @@ namespace dxvk {
}
}
std::ostream& operator << (std::ostream& os, dxvk::DxbcScalarType e) {
switch (e) {
ENUM_NAME(DxbcScalarType::Uint32);
ENUM_NAME(DxbcScalarType::Uint64);
ENUM_NAME(DxbcScalarType::Sint32);
ENUM_NAME(DxbcScalarType::Sint64);
ENUM_NAME(DxbcScalarType::Float32);
ENUM_NAME(DxbcScalarType::Float64);
ENUM_NAME(DxbcScalarType::Bool);
ENUM_DEFAULT(e);
}
}
} //namespace dxvk

View File

@ -21,5 +21,6 @@ namespace dxvk {
std::ostream& operator << (std::ostream& os, DxbcSystemValue e);
std::ostream& operator << (std::ostream& os, DxbcProgramType e);
std::ostream& operator << (std::ostream& os, DxbcCustomDataClass e);
std::ostream& operator << (std::ostream& os, DxbcScalarType e);
} // namespace dxvk