| 272 | } |
| 273 | |
| 274 | bool MeshAccessor::AllocateBuffer(MeshBufferType bufferType, int32 count, GPUVertexLayout* layout) |
| 275 | { |
| 276 | CHECK_RETURN(count, true); |
| 277 | CHECK_RETURN(layout, true); |
| 278 | const int32 idx = (int32)bufferType; |
| 279 | _data[idx].Allocate(count * layout->GetStride()); |
| 280 | _layouts[idx] = layout; |
| 281 | return false; |
| 282 | } |
| 283 | |
| 284 | bool MeshAccessor::AllocateBuffer(MeshBufferType bufferType, int32 count, PixelFormat format) |
| 285 | { |
no test coverage detected