Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试使用计算着色器修改顶点缓冲区的内容。
问题是我不知道如何使顶点缓冲区可用于计算着色器,我应该如何绑定它。
可能吗?
为顶点缓冲区创建无序访问视图ID3D11UnorderedAccessView
ID3D11UnorderedAccessView
通过以下方式将其分配给 CS:
ID3D11UnorderedAccessView *uavs[] = {pUnorderedAccessView}; UINT offsets[2] = {0}; m_pd3dImmediateContext->CSSetUnorderedAccessViews( 0, 1, uavs, offsets);