edgar-mtz-e / slimdx

Automatically exported from code.google.com/p/slimdx
0 stars 0 forks source link

SampleFramework - DirectX10 DepthStencil creation #455

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
If i try to create a device with these settings :

            DeviceSettings ds = new DeviceSettings();
            ds.BackBufferWidth = InitialWidth;
            ds.BackBufferHeight = InitialHeight;
            ds.BackBufferCount = 1;
            ds.BackBufferFormat = SlimDX.Direct3D9.Format.D24S8;
            ds.DepthStencilFormat = SlimDX.Direct3D9.Format.D24S8;
            ds.DeviceType = SlimDX.Direct3D9.DeviceType.Hardware;
            ds.DeviceVersion = DeviceVersion.Direct3D10;
            ds.EnableVSync = true;
            ds.MultisampleType = SlimDX.Direct3D9.MultisampleType.None;
            ds.Multithreaded = false;
            ds.RefreshRate = 60;
            ds.Windowed = true;
            GraphicsDeviceManager.ChangeDevice(ds);

It does not create the depth stencil. I debugged it and it seems that the 
DepthStencilFormat is forgotten somewhere. It is Unknown at the creation 
of the depthstencil.

I hardcoded a solution ATM, but any help to resolve this issue would be 
appreciated. :D

Original issue reported on code.google.com by feal87@gmail.com on 20 Mar 2009 at 4:11

GoogleCodeExporter commented 9 years ago
Ah, i forgot. I'm using the latest SVN Revision. :)

Original comment by feal87@gmail.com on 20 Mar 2009 at 4:19

GoogleCodeExporter commented 9 years ago
Fixed in r691.

Original comment by Mike.Popoloski on 25 Mar 2009 at 3:16