| 241 | } |
| 242 | |
| 243 | void MeshObject::DrawPrimitivesSubset(ref_ptr<dp::GraphicsContext> context, uint32_t vertexCount, uint32_t startVertex) |
| 244 | { |
| 245 | CHECK(m_impl != nullptr, ()); |
| 246 | CHECK(!m_buffers.empty(), ()); |
| 247 | auto const & buffer = m_buffers[0]; |
| 248 | auto const vertexNum = buffer->GetSizeInBytes() / buffer->GetStrideInBytes(); |
| 249 | CHECK_LESS(startVertex, vertexNum, ()); |
| 250 | CHECK_LESS_OR_EQUAL(startVertex + vertexCount, vertexNum, ()); |
| 251 | |
| 252 | m_impl->DrawPrimitives(context, vertexCount, startVertex); |
| 253 | } |
| 254 | |
| 255 | void MeshObject::DrawPrimitivesSubsetIndexed(ref_ptr<dp::GraphicsContext> context, uint32_t indexCount, |
| 256 | uint32_t startIndex) |
nothing calls this directly
no test coverage detected