So, it's dead simple.
object->SetConstBuffer(put here first thing);
object->SetConstBuffer(here goes second thing);
object->UpdateConstantBuffer(exactly the same one, we overwriting);
Update is where your Map/Unmap/updateSubresource happen. Nothing needs to be changed in ...
I am answering my own question. I trust you are all doing well. This is regarding the SetDisplayMode() method of DirectX. The below method works fine to initialize the Video 1024x768x32. Sorry for the slow reply. The first comment cost me in lost time, I did not find the code to be deprecated. Just a tip if you install the "DirectX Control Panel" you can ...
I think there are another two options: Angle, https://github.com/google/angle, or Dawn, https://dawn.googlesource.com/dawn.
If your game is written by OpenGL, Angle can help you translate it into several backends, such as Vulkan, D3D.
And if you are designing a game from the beginning, you may try writing it by Dawn. Dawn is similar to a middle layer, if ...