| 366 | } |
| 367 | |
| 368 | MeshAccessor::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 | |
| 384 | MeshAccessor::Stream MeshAccessor::Attribute(VertexElement::Types attribute) |
| 385 | { |
no test coverage detected