游戏开发论坛

 找回密码
 立即注册
搜索
查看: 2052|回复: 0

copy texture to texture,both are D3DPOOL_SYSTEMMEM

[复制链接]

414

主题

611

帖子

621

积分

高级会员

Rank: 4

积分
621
发表于 2008-4-17 00:42:00 | 显示全部楼层 |阅读模式
I know the three methods of copying the texture
1.IDirect3DDevice9::StretchRect
texture to RT texture
RT texture to RT texture

2.IDirect3DDevice9::GetRenderTargetData
POOL_DEFAULT to D3DPOOL_SYSTEMMEM (RT texture to texture)

3.IDirect3DDevice9::UpdateTexture
D3DPOOL_SYSTEMMEM to D3DPOOL_DEFAULT (texture to RT texure)

About texture to texture:
But I have a question about the copying of textures create with D3DPOOL_SYSTEMMEM. Do I just has the way of using the lockrect and copy memory?
If the two texture create with D3DPOOL_SYSTEMMEM have different size and format, how do I copy thems?
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

作品发布|文章投稿|广告合作|关于本站|游戏开发论坛 ( 闽ICP备17032699号-3 )

GMT+8, 2026-1-22 19:23

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表