| 233 | } |
| 234 | |
| 235 | bool MeshAccessor::LoadBuffer(MeshBufferType bufferType, Span<byte> bufferData, GPUVertexLayout* layout) |
| 236 | { |
| 237 | CHECK_RETURN(layout, true); |
| 238 | CHECK_RETURN(bufferData.IsValid(), true); |
| 239 | const int32 idx = (int32)bufferType; |
| 240 | _data[idx].Link(bufferData); |
| 241 | _layouts[idx] = layout; |
| 242 | return false; |
| 243 | } |
| 244 | |
| 245 | bool MeshAccessor::LoadFromMeshData(const void* meshDataPtr) |
| 246 | { |
no test coverage detected