· Appendix A 3. Resource for Direct3D
(Cai Junsheng copyright)
There are many resources in Direct3D, but there are main textures and buffers. Applications To create, load, copy, and use these resources. The interface of the resource is inherited in COM interface idirect3dResource9, where the interface of the texture and buffer day is inheriting the above interface. The interface of these resources is shown below:
There are many things to do, such as understanding resource properties, operational resources, synchronizing with resource access, synchronization to use locks, etc., there are resource relationships, how to manage and allocate resources. It is very important to handle, how to deal with resources, such as what kind of texture is placed in the graphics card, what kind of vertex data is placed in system memory.