mirror of
https://git.mirrors.martin98.com/https://github.com/syoyo/tinygltf.git
synced 2025-08-16 21:25:53 +08:00
pbrMetallicRoughnes default noexcept move operator
This commit is contained in:
parent
6f08785e9f
commit
23467959ca
10
tiny_gltf.h
10
tiny_gltf.h
@ -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(const PbrMetallicRoughness &) = default;
|
||||
PbrMetallicRoughness(PbrMetallicRoughness &&rhs) noexcept = default;
|
||||
PbrMetallicRoughness &operator=(const PbrMetallicRoughness &) = default;
|
||||
PbrMetallicRoughness(PbrMetallicRoughness &&rhs) noexcept
|
||||
: 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)) {}
|
||||
PbrMetallicRoughness &operator=(PbrMetallicRoughness &&) noexcept = default;
|
||||
bool operator==(const PbrMetallicRoughness &) const;
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user