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

Method Index

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

Source from the content-addressed store, hash-verified

366}
367
368MeshAccessor::Stream MeshAccessor::Index()
369{
370 Span<byte> data;
371 PixelFormat format = PixelFormat::Unknown;
372 int32 stride = 0, count = 0;
373 auto& ib = _data[(int32)MeshBufferType::Index];
374 if (ib.IsValid())
375 {
376 data = ib;
377 format = _formats[(int32)MeshBufferType::Index];
378 stride = PixelFormatExtensions::SizeInBytes(format);
379 count = data.Length() / stride;
380 }
381 return Stream(data, format, stride, count);
382}
383
384MeshAccessor::Stream MeshAccessor::Attribute(VertexElement::Types attribute)
385{

Callers 6

cacheStaticGeometryTreeFunction · 0.45
UpdateMeshFunction · 0.45
DownloadIndexBufferMethod · 0.45
UpdateMeshFunction · 0.45
AddMethod · 0.45
RenderMethod · 0.45

Calls 3

StreamClass · 0.70
IsValidMethod · 0.45
LengthMethod · 0.45

Tested by

no test coverage detected