• Announcements

    • khawk

      Download the Game Design and Indie Game Marketing Freebook   07/19/17

      GameDev.net and CRC Press have teamed up to bring a free ebook of content curated from top titles published by CRC Press. The freebook, Practices of Game Design & Indie Game Marketing, includes chapters from The Art of Game Design: A Book of Lenses, A Practical Guide to Indie Game Marketing, and An Architectural Approach to Level Design. The GameDev.net FreeBook is relevant to game designers, developers, and those interested in learning more about the challenges in game development. We know game development can be a tough discipline and business, so we picked several chapters from CRC Press titles that we thought would be of interest to you, the GameDev.net audience, in your journey to design, develop, and market your next game. The free ebook is available through CRC Press by clicking here. The Curated Books The Art of Game Design: A Book of Lenses, Second Edition, by Jesse Schell Presents 100+ sets of questions, or different lenses, for viewing a game’s design, encompassing diverse fields such as psychology, architecture, music, film, software engineering, theme park design, mathematics, anthropology, and more. Written by one of the world's top game designers, this book describes the deepest and most fundamental principles of game design, demonstrating how tactics used in board, card, and athletic games also work in video games. It provides practical instruction on creating world-class games that will be played again and again. View it here. A Practical Guide to Indie Game Marketing, by Joel Dreskin Marketing is an essential but too frequently overlooked or minimized component of the release plan for indie games. A Practical Guide to Indie Game Marketing provides you with the tools needed to build visibility and sell your indie games. With special focus on those developers with small budgets and limited staff and resources, this book is packed with tangible recommendations and techniques that you can put to use immediately. As a seasoned professional of the indie game arena, author Joel Dreskin gives you insight into practical, real-world experiences of marketing numerous successful games and also provides stories of the failures. View it here. An Architectural Approach to Level Design This is one of the first books to integrate architectural and spatial design theory with the field of level design. The book presents architectural techniques and theories for level designers to use in their own work. It connects architecture and level design in different ways that address the practical elements of how designers construct space and the experiential elements of how and why humans interact with this space. Throughout the text, readers learn skills for spatial layout, evoking emotion through gamespaces, and creating better levels through architectural theory. View it here. Learn more and download the ebook by clicking here. Did you know? GameDev.net and CRC Press also recently teamed up to bring GDNet+ Members up to a 20% discount on all CRC Press books. Learn more about this and other benefits here.

Ashkan_Irni

Members
  • Content count

    4
  • Joined

  • Last visited

Community Reputation

103 Neutral

About Ashkan_Irni

  • Rank
    Newbie
  1.   Thank you so mcuh Martins Mozeiko for your help, you are correct the problem was passing NULL pointer to GetDesc1().   @NewDisplayName thanks for the link and for your replies
  2. Hello there    thanks for your reply.   I checked the while loop where the enumeration is being done, it appears that the pointer to the device (adapter_ptr) contains an address and it does have the GetDesc1() method, the method receives a DXGI_ADAPTER_DESC1 pointer and it is supposed to fill the pointer with an address, but when the method returns the DXGI_ADAPTER_DESC1 pointer, it is NULL so something is wrong with the GetDesc1() method but I'm not sure what.   Here is a screenshot from debugging:   I have also changed nullptr to NULL the problem still exists. I don't think nullptr needs /clr, I thought /clr is only needed when Microsoft's C++ managed extensions are being used, nullptr is standard C++. Honestly I'm not a fan of managed C++ so I prefer not using /clr... unless I have to. Even then it will cause other problems since I have to turn off quite a number of other compiler options.
  3.   Hi MJP,   Thank you for your help.   The documentation on IDXGIFactory2 is not clear because if I use 1.1 approach to get the devices then I won't have GetDesc2() method available, and another problem is that if I use IDXGI 1 or 1.1 I can't get any descriptions using GetDesc() and GetDesc1(). I wrote the following code to test IDXGI 1.1 and 2 and in both cases the pointers that I get from enumerating adapters point to nothing:     and this is the whole test code: #include <iostream> #include <tchar.h> #include <vector> #include <d3d11.h> #include <dxgi.h> #include <dxgi1_2.h> #pragma comment(lib, "dxgi.lib") typedef unsigned int uint32_t; void Test_DXGI_1() { IDXGIFactory1* DXGI_device_ptr = nullptr; IDXGIAdapter1* adapter_ptr = nullptr; if( FAILED( CreateDXGIFactory1( __uuidof( IDXGIFactory1 ), ( void** ) &DXGI_device_ptr ) ) ) { fprintf( stderr, "\tCould not Create IDXGIFactory\n" ); } uint32_t i = 0; std::vector<IDXGIAdapter1*> adapter_list; while ( DXGI_device_ptr->EnumAdapters1( i, &adapter_ptr ) != DXGI_ERROR_NOT_FOUND ) { adapter_list.push_back( adapter_ptr ); ++i; } DXGI_ADAPTER_DESC1* temp_desc = nullptr; for ( int i = 0; i < adapter_list.size(); ++i ) { adapter_list[i]->GetDesc1( temp_desc ); std::wcout << temp_desc->Description; std::cin.get(); // wait } } void Test_DXGI_2() { IDXGIFactory2* DXGI_device_ptr = nullptr; IDXGIAdapter2* adapter_ptr = nullptr; if( FAILED( CreateDXGIFactory( __uuidof( IDXGIFactory2 ), ( void** ) &DXGI_device_ptr ) ) ) { fprintf( stderr, "\tCould not Create IDXGIFactory\n" ); } uint32_t i = 0; std::vector<IDXGIAdapter1*> adapter_list; IDXGIAdapter1* adapter1_ptr = nullptr; while ( DXGI_device_ptr->EnumAdapters1( i, &adapter1_ptr ) != DXGI_ERROR_NOT_FOUND ) { adapter_list.push_back( adapter1_ptr ); ++i; } DXGI_ADAPTER_DESC1* temp_desc = nullptr; for ( int i = 0; i < adapter_list.size(); ++i ) { adapter_list[i]->GetDesc1( temp_desc ); std::wcout << temp_desc->Description; std::cin.get(); // wait } } int main( int argc, char* argv[] ) { Test_DXGI_1(); Test_DXGI_2(); std::cin.get(); // wait return 0; }
  4. Hi there,   I'm not familiar with D3D11 but for my C++ AMP application I need to query the available devices, choose one that is not connected to a display to use it as a dedicated accelerator, and to turn off the TDR for that device.   This blog post discusses how to create a D3D11 device with TDR turned off. My problem is that I don't know how to choose the correct pAdapter parameter (an adapter without a display).   I tried to find the solution on MSDN, I think I should enumerate IDXGIAdapter2 and store the available adapters on an std::vector<IDXGIAdapter2*>, then use GetDesc2 on each element in the vector to get a DXGI_ADAPTER_DESC2 structure, then read its Description data member.   The problem is that there is no example or guidelines on how to enumerate IDXGIAdapter2. Two examples with descriptions exist but they are for IDXGIAdapter and IDXGIAdapter1.   So I would like to ask you guys to kindly help me or give me some hints on how to query the available devices and check their description.   Thanks in advance