不得不使用32位顶点索引,发现有些N年前的机器没法用.
然后使用如下代码却发现不好用,d3ddebug下会抱错.
if (FAILED(m_d3d9->CheckDeviceFormat(D3DADAPTER_DEFAULT, D3DDEVTYPE_HAL, d3ddm.Format, 0, D3DRTYPE_INDEXBUFFER, D3DFMT_INDEX32))) { _WHY_CORE->Trace(YE_LOG_WARNING, "CheckDeviceFormat: The device not support D3DFMT_INDEX32."); m_bSupportIndex32 = false; }
这参数该怎么设置?