- 专利标题: System and method for reading arrays of data by rebuilding an index buffer while preserving order
-
申请号: US17149094申请日: 2021-01-14
-
公开(公告)号: US11417059B1公开(公告)日: 2022-08-16
- 发明人: Alexey Ivanov , Evgeny Nikitenko , Nikolay Dobrovolskiy
- 申请人: PARALLELS INTERNATIONAL GmbH
- 申请人地址: CH Schaffhausen
- 专利权人: PARALLELS INTERNATIONAL GmbH
- 当前专利权人: PARALLELS INTERNATIONAL GmbH
- 当前专利权人地址: CH Schaffhausen
- 代理机构: Rosenberg, Klein & Lee
- 主分类号: G06T17/10
- IPC分类号: G06T17/10 ; G06F9/30 ; G06F9/38 ; G06T1/20 ; G06T15/00
摘要:
Disclosed herein are systems and methods for reading input data into a geometry shader by rebuilding an index buffer. In one aspect, an exemplary method comprises constructing T-vectors for one-element ranges of the index buffer by defining each T-vector as a 4-component vector, calculating T-vectors for ranges [0; i] for all vertices of the index buffer by prefix scanning, for each vertex and for each primitive featuring the vertex, determining if the primitive is complete, and for each complete primitive, calculating an offset in an output index buffer using a component of the T-vector used to indicate, for the vertex, a number of complete primitives inside the range and a component that indicates a number of vertices since a last primitive restart, and writing an index value in an output index buffer, and reading input data into the geometry shader in accordance with the written index values.
信息查询