resume vab_offset but don't use it in short time.

This commit is contained in:
hyzboy 2024-06-02 15:27:03 +08:00
parent 01bb4b2153
commit 0da0290fc6
2 changed files with 2 additions and 5 deletions

View File

@ -20,11 +20,8 @@ struct PrimitiveDataBuffer
// 理论上讲每个VAB绑定时都是可以指定byte offsets的。但是随后Draw时又可以指定vertexOffset。
// 在我们支持的两种draw模式中一种是每个模型一批VAB所有VAB的offset都是0。
// 另一种是使用VDM为了批量渲染所有的VAB又必须对齐所以每个VAB单独指定offset也不可行。
// 所以干脆不支持VAB的offset只支持vertexOffset。
VkDeviceSize * vab_offset; //注意这里的offset是相对于vertex的代表第几个顶点不是字节偏移
// IndexBuffer 同理也不再支持buffer的offset
VkDeviceSize * vab_offset; //注意这里的offset是字节偏移不是顶点偏移
IndexBuffer * ibo;

View File

@ -253,7 +253,7 @@ bool MaterialRenderList::BindVAB(const PrimitiveDataBuffer *pdb,const uint ri_in
//Basic组它所有的VAB信息均来自于Primitive由vid参数传递进来
{
vab_list->Add(pdb->vab_list,
nullptr,//prb->vab_offset,
pdb->vab_offset,
pdb->vab_count);
}