MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / Clone

Method Clone

Source/Engine/Graphics/Materials/MaterialParams.cpp:626–638  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

624}
625
626void MaterialParams::Clone(MaterialParams& result)
627{
628 ASSERT(this != &result);
629
630 // Clone all parameters
631 result.Resize(Count(), false);
632 for (int32 i = 0; i < Count(); i++)
633 {
634 result.At(i).clone(&At(i));
635 }
636
637 result._versionHash = _versionHash;
638}
639
640void MaterialParams::Dispose()
641{

Callers 1

SetStreamFloat3Method · 0.45

Calls 3

CountFunction · 0.85
ResizeMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected