Sign in to follow this  

D3D Device-Reset

This topic is 4842 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
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

This topic is 4842 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this