Files
XCSDD/docs/api/rhi/command-list/set-vertex-buffers.md
ssdfasd 58a83f445a fix: improve doc link navigation and tree display
- Fix link resolution with proper relative/absolute path handling
- Improve link styling with underline decoration
- Hide leaf nodes from tree, only show directories
- Fix log file path for packaged app
2026-03-19 12:44:08 +08:00

696 B

RHICommandList::SetVertexBuffers

virtual void SetVertexBuffers(uint32_t startSlot, uint32_t count, const uint64_t* buffers, const uint64_t* offsets, const uint32_t* strides) = 0;

设置多个顶点缓冲区。

参数:

  • startSlot - 起始槽位
  • count - 缓冲区数量
  • buffers - 缓冲区指针数组
  • offsets - 偏移量数组
  • strides - 步长数组

示例:

uint64_t buffers[2] = {(uint64_t)vb1, (uint64_t)vb2};
uint64_t offsets[2] = {0, 0};
uint32_t strides[2] = {sizeof(Vertex), sizeof(Vertex)};
cmdList->SetVertexBuffers(0, 2, buffers, offsets, strides);

相关文档