Sign in to follow this  
derek7

D3DUSAGE and D3DPOOL

Recommended Posts

1. the D3DUSAGE flag is DWORD type and D3DPOOL is enumerated type. So what is different between them? it seem to do the same job. it could be replaced by each other? 2. OMG I forgot it. :->)

Share this post


Link to post
Share on other sites
Usage is about the intended use for the resource. It depends on the type of resource. IE. A texture can be used as a source of information (colors, normals, UV). But it also can be used as a rendertarget (D3DUSAGE_RENDERTARGET) or even a secondary zbuffer (D3DUSAGE_DEPTHSTENCIL). A vertex buffer can be used for a mesh, but it also can be used as a point storage for particle systems (D3DUSAGE_POINTS). THere are other usages in the D3DUSAGE list (check manual).

Pool is the memory location of the resource and how you will manage it. Usually you will have the resource (be it a texture or a VB/IB) located in video memory (POOL_DEFAULT) but you can allow the API to manage it (POOL_MANAGED). That means the API will keep a copy of the resource in system memory so it can quicly restore the memory. But sometimes the usage forces you to manage the resources by yourself, or maybe you consider that locating the resource in system memory is useful (D3DPOOL_SYSTEMMEM) read a little about this in the manuals.

Luck!
Guimo

Share this post


Link to post
Share on other sites
If you are wondering the difference between simple #define's and enumerations, then this is a C/C++ question, and you should direct your queries to Mr. Google (just try 'C++ enumeration', it's that easy).

In all seriousness, along the lines of your numerous other threads in the recent past, the docs do exist for a reason. As do search engines. Starting a new thread should not be the first thing you do when you have a problem or question. First, start with the docs, then to google or whatever you use. Then check the FAQ's here. Then search through old posts here on GDNet. At that point, seeing as you have done the proper reasearch, post. 30 new topics in ONE week is *not* following this.

Edit: uhh, yea, what Mnizzle said [wink]

Share this post


Link to post
Share on other sites
Quote:
Original post by Muhammad Haggag
How about you read the documentation to figure out what the difference between them is?

I'll help you. You're suspended for a week. Do some reading.


That was TOO much.

Share this post


Link to post
Share on other sites
Quote:
Original post by Code-R
Quote:
Original post by Muhammad Haggag
How about you read the documentation to figure out what the difference between them is?

I'll help you. You're suspended for a week. Do some reading.


That was TOO much.

Checked his posting history? My action was not based on this thread alone. I'm honestly sick of having a billion questions that can be quite simply answered by reading very straight-forward pages of documentation.

Share this post


Link to post
Share on other sites
He doesn't have that bad post istory, and still, simply ignoring him or giving him the RTFM wuld have been enough. Now you've cut him off, which won't help him the slightest, nor will it make any difference for all of use here on the forums that'll simply choose to ignore him. Refuse to help him, but don't cut his vocal cords so he won't be able to ask for help again...

Share this post


Link to post
Share on other sites
Quote:
Original post by Code-R
He doesn't have that bad post istory, and still, simply ignoring him or giving him the RTFM wuld have been enough. Now you've cut him off, which won't help him the slightest, nor will it make any difference for all of use here on the forums that'll simply choose to ignore him. Refuse to help him, but don't cut his vocal cords so he won't be able to ask for help again...

Dude he posted 30 topics in ONE WEEK. That speaks for itself. And if you look at the questions, they are straight out of the docs.

Muhammad had talked with him in the past about his posting, and he simply chose to ignore it.

Share this post


Link to post
Share on other sites
Quote:
Original post by Promit
In other news, the color for suspended users is a fantastically terrible choice.

[lol] Agreed - I'm hoping thats one of the things they're still going to 'tweak'.

Jack

Share this post


Link to post
Share on other sites
Quote:
Original post by jollyjeffers
Quote:
Original post by Promit
In other news, the color for suspended users is a fantastically terrible choice.

[lol] Agreed - I'm hoping thats one of the things they're still going to 'tweak'.

Hey, as long as they start "tweaking" the search engine soon, I could care less :P

Share this post


Link to post
Share on other sites
Quote:
Original post by Code-R
He doesn't have that bad post istory, and still, simply ignoring him or giving him the RTFM wuld have been enough. Now you've cut him off, which won't help him the slightest, nor will it make any difference for all of use here on the forums that'll simply choose to ignore him. Refuse to help him, but don't cut his vocal cords so he won't be able to ask for help again...


It's a one week suspension, I don't think that qualifies as "he won't be able to ask for help again". If previous warnings weren't enough then things have to escalate.

Honestly, Muhammad has gone out of his way so many times to help people and has been very lenient. Far more lenient than I would have been in many cases. These forums are only useful as long as the signal is much greater than the noise. At times in the past it has been the complete opposite. A moderator's job is a pain in the ass, and ours has done a hell of a job.

Share this post


Link to post
Share on other sites
Quote:
Original post by jollyjeffers
Quote:
Original post by Promit
In other news, the color for suspended users is a fantastically terrible choice.

[lol] Agreed - I'm hoping thats one of the things they're still going to 'tweak'.

Jack


Nah, I think it's good. It really makes you want to avoid getting suspended... [wink]

Share this post


Link to post
Share on other sites

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