Replies: 1 comment
-
Another issue is about |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
https://github.com/bkaradzic/bgfx/blob/master/src/bgfx_p.h#L2560-L2563
stream.m_startVertex = _tvb->startVertex + _startVertex; stream.m_handle = _tvb->handle; stream.m_layoutHandle = isValid(_layoutHandle) ? _layoutHandle : _tvb->layoutHandle; m_numVertices[_stream] = bx::min(bx::uint32_imax(0, _tvb->size/_tvb->stride - _startVertex), _numVertices);
The
m_startVertex
of stream is calculated by_tvb->startVertex
, butstream.m_layoutHandle
can be_layoutHandle
rather than_tvb->layoutHandle
. The offset will be not correct when the stride is different. And I don't think the max number of vertices can be calculated by_tvb->size/_tvb->stride
when I specify a vertex layout.Beta Was this translation helpful? Give feedback.
All reactions