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

Method CopyTo

Source/Engine/Graphics/Models/MeshBase.cpp:139–152  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

137}
138
139void MeshAccessor::Stream::CopyTo(Span<Float2> dst) const
140{
141 const int32 count = GetCount();
142 ASSERT(dst.Length() >= count);
143 if (IsLinear(PixelFormat::R32G32_Float))
144 {
145 Platform::MemoryCopy(dst.Get(), _data.Get(), _data.Length());
146 }
147 else
148 {
149 for (int32 i = 0; i < count; i++)
150 dst.Get()[i] = Float2(_sampler.Read(_data.Get() + i * _stride));
151 }
152}
153
154void MeshAccessor::Stream::CopyTo(Span<Float3> dst) const
155{

Callers 9

WriteArrayReferencesMethod · 0.45
GetDictionaryKeysMethod · 0.45
CookCollisionMethod · 0.45
CreateClothMethod · 0.45
AddMethod · 0.45
DirectoryCopyMethod · 0.45
OnDragDropMethod · 0.45
BuildMethod · 0.45

Calls 7

Float2Class · 0.85
Float3Class · 0.85
DecompressFunction · 0.85
ColorFunction · 0.70
LengthMethod · 0.45
GetMethod · 0.45
ReadMethod · 0.45

Tested by 1