Examples: DirectX12: Various tidying up.

This commit is contained in:
omar
2019-03-29 16:18:26 +01:00
parent 512d39d031
commit 163779da51
2 changed files with 47 additions and 50 deletions

View File

@@ -90,7 +90,7 @@ void ImGui_ImplDX11_RenderDrawData(ImDrawData* draw_data)
return;
}
// Copy and convert all vertices into a single contiguous buffer
// Upload vertex/index data into a single contiguous GPU buffer
D3D11_MAPPED_SUBRESOURCE vtx_resource, idx_resource;
if (ctx->Map(g_pVB, 0, D3D11_MAP_WRITE_DISCARD, 0, &vtx_resource) != S_OK)
return;