Jump to content
  • Advertisement
Sign in to follow this  
Samurai Jack

D3D Device-Reset

This topic is 5056 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Greetings compadres! I was wondering what parameters are neccesary when I call D3DDevice->Reset(). I would like to reset the device in the WM_Size signal. When I create the device I remember the settings used. When I call Device->Reset( same settings ) nothing happens. Am I supposed to fill additional information ( new widht and height ? ) altough no width/height was given when the device was created. The Result of the Device->Reset( old settings ) function remains 0. Any suggestions?

Share this post


Link to post
Share on other sites
Advertisement
Reset Method, resets the type, size, and format of the swap chain.
It want a D3DPRESENT_PARAMETERS* as DX SDK shows
Quote:

HRESULT Reset( D3DPRESENT_PARAMETERS* pPresentationParameters
);


D3DPRESENT_PARAMETERS is a structure with these parameters:
typedef struct _D3DPRESENT_PARAMETERS_ {
UINT BackBufferWidth, BackBufferHeight;
D3DFORMAT BackBufferFormat;
UINT BackBufferCount;
D3DMULTISAMPLE_TYPE MultiSampleType;
DWORD MultiSampleQuality;
D3DSWAPEFFECT SwapEffect;
HWND hDeviceWindow;
BOOL Windowed;
BOOL EnableAutoDepthStencil;
D3DFORMAT AutoDepthStencilFormat;
DWORD Flags;
UINT FullScreen_RefreshRateInHz;
UINT PresentationInterval;
} D3DPRESENT_PARAMETERS;

byez.......

Share this post


Link to post
Share on other sites
Blue what does that suppose to mean?

I can press F1 by myself. I have written, that I allready have a static PRESENT PARAMETERS structure that works on create device but when I use the same settings on reset() it does not work.

I allready said I did not enter any width/height information and it worked fine, just the reset device does not work for me.

Anyone who has been using this allready?

Share this post


Link to post
Share on other sites
If the Reset if failing to work then you should be getting debug output explaining why. If you haven't set up your debug information you should do so. See the Forum FAQ for details.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!