pbrMetallicRoughnes default noexcept move operator

This commit is contained in:
Selmar Kok 2019-10-21 19:23:15 +02:00
parent 6f08785e9f
commit 23467959ca

View File

@ -720,15 +720,9 @@ struct PbrMetallicRoughness {
PbrMetallicRoughness() : baseColorFactor(std::vector<double>{ 1.0,1.0,1.0,1.0 }), metallicFactor(1.0), roughnessFactor(1.0) {} PbrMetallicRoughness() : baseColorFactor(std::vector<double>{ 1.0,1.0,1.0,1.0 }), metallicFactor(1.0), roughnessFactor(1.0) {}
PbrMetallicRoughness(const PbrMetallicRoughness &) = default; PbrMetallicRoughness(const PbrMetallicRoughness &) = default;
PbrMetallicRoughness(PbrMetallicRoughness &&rhs) noexcept = default;
PbrMetallicRoughness &operator=(const PbrMetallicRoughness &) = default; PbrMetallicRoughness &operator=(const PbrMetallicRoughness &) = default;
PbrMetallicRoughness(PbrMetallicRoughness &&rhs) noexcept PbrMetallicRoughness &operator=(PbrMetallicRoughness &&) noexcept = default;
: baseColorFactor(std::move(rhs.baseColorFactor)),
baseColorTexture(std::move(rhs.baseColorTexture)),
metallicFactor(rhs.metallicFactor),
roughnessFactor(rhs.roughnessFactor),
metallicRoughnessTexture(std::move(rhs.metallicRoughnessTexture)),
extras(std::move(rhs.extras)),
extensions(std::move(rhs.extensions)) {}
bool operator==(const PbrMetallicRoughness &) const; bool operator==(const PbrMetallicRoughness &) const;
}; };