mesh.py 文件源码

python
阅读 39 收藏 0 点赞 0 评论 0

项目:vulk 作者: realitix 项目源码 文件源码
def upload_vertices(self, context):
        '''
        Upload vertices to graphic card

        *Parameters:*

        - `context`: `VulkContext`
        '''
        if not self.dirty_vertices:
            return

        self.dirty_vertices = False
        with self.vertices_buffer.bind(context) as b:
            np.copyto(np.array(b, copy=False),
                      self.vertices_array.view(dtype=np.uint8),
                      casting='no')
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号