[D3D12] Command list, fence cleanup

This commit is contained in:
Triang3l
2018-07-19 14:51:07 +03:00
parent ffcf18f193
commit f5e91ba97c
4 changed files with 133 additions and 2 deletions

View File

@@ -40,7 +40,7 @@ CPUFence::~CPUFence() {
bool CPUFence::Initialize() {
if (FAILED(device_->CreateFence(0, D3D12_FENCE_FLAG_NONE,
IID_PPV_ARGS(&fence_)))) {
XELOGE("Failed to create a Direct3D fence");
XELOGE("Failed to create a fence");
return false;
}
completion_event_ = CreateEvent(nullptr, false, false, nullptr);