all
This commit is contained in:
@@ -63,4 +63,16 @@ queueDesc.Flags = D3D12_COMMAND_QUEUE_FLAG_NONE;
|
||||
ThrowIfFailed(md3Device->CreateCommandQueue(&queueDesc,IID_PPV_ARGS(&mCommandQueue)));
|
||||
```
|
||||
|
||||
IID_PPV_ARGS
|
||||
IID_PPV_ARGS:获得Com接口的GUID。
|
||||
|
||||
```c++
|
||||
void ID3D12CommandQueue::ExecuteCommandLists(
|
||||
//命令数量
|
||||
UINT NumCommandLists,
|
||||
//待执行命令的数组,指向第一个命令的指针
|
||||
ID3D12CommandList *const *ppCommandLists)
|
||||
```
|
||||
添加完命令后并不会立即执行ExecuteCommandLists()后才算将命令加入命令队列。加入操作执行完之后需要调用ExecuteCommandLists::Close()来结束命令记录。
|
||||
|
||||
ID3D12CommandAllocator
|
||||
ID3D12Device::CreateCommandAllocator()
|
||||
Reference in New Issue
Block a user