Skip to main content
GameDev.net gamedev.net
🔒 Locked

Simple depth stencil buffer question

Started by UserX03 Jan 5, 2005 at 12:51 PM 1 replies 700+ views
Original Post
UserX03
UserX03
Here's a simple question that I can't find documentation on. In DirectX 9, Can a depth stencil buffer be created in system memory and be used by my video card that does not natively support the buffer's format? For example I want to use a D3DFMT_D24S8 buffer format in software that my hardware uses while still using my hardware for just about everything else. Or is what I'm asking just not feasible?
jollyjeffers
jollyjeffers
Quote:
Or is what I'm asking just not feasible?

Nope, it won't happen.. Not in hardware anyway, the refrast supports all formats and is run entirely on the CPU so your depth-stencil is technically in system memory...

I'm sure that if you were clever you could implement this sort of a feature (for example using a pixel shader to write the depth/stencil to a render target), but that would just be silly.

At a guess, any hardware you could succesfully emulate on would probably support the feature (in hardware) anyway thus making it pointless.

Also, most modern hardware is optimized for depth/stencil buffer reading/writing (e.g. ATI's Hyper-Z technology).

Just out of curiousity, why do you want to do this?

hth
Jack
<hr align="left" width="25%" />
Jack Hoxley <small>[</small><small> Forum FAQ | Revised FAQ |
UserX03
UserX03
There was no specific reason this came up actually, but the more I thought about it the more it didn't make sense. Having the depth/stencil buffer in software for use by the hardware kind of defeats its purpose.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.