Hello.
I am trying to work above yumtard's project
At this point i have problem with graphic card therefore i try adding IDXGIAdapter.
if i solve this problem, i suppose solve other problems on behalf of me
IDXGIAdapter
-
- Posts: 52
- Joined: April 15th, 2017, 10:48 am
IDXGIAdapter
- Attachments
-
- hw3D - 14.rar
- (73.96 KiB) Downloaded 150 times
-
- Posts: 4373
- Joined: February 28th, 2013, 3:23 am
- Location: Oklahoma, United States
Re: IDXGIAdapter
A couple things.
1) Missing Window::HrException::GetErrorDescription function definition.
2) When quitting the program, I get an exception thrown from released DX interfaces. When you use Microsoft::WRL::ComPtr you do not have to call Release(), ComPtr is a smart pointer like unique_ptr or shared_ptr, it will release the resources for you. Since that is all you're doing in Graphics, you can just get rid of the Graphics::~Graphics() destructor in Graphics.cpp and ~Graphics(); in Graphics.h files.
After fixing those two things, the program runs and exits without errors for me.
1) Missing Window::HrException::GetErrorDescription function definition.
2) When quitting the program, I get an exception thrown from released DX interfaces. When you use Microsoft::WRL::ComPtr you do not have to call Release(), ComPtr is a smart pointer like unique_ptr or shared_ptr, it will release the resources for you. Since that is all you're doing in Graphics, you can just get rid of the Graphics::~Graphics() destructor in Graphics.cpp and ~Graphics(); in Graphics.h files.
After fixing those two things, the program runs and exits without errors for me.
If you think paging some data from disk into RAM is slow, try paging it into a simian cerebrum over a pair of optical nerves. - gameprogrammingpatterns.com