游戏开发论坛

 找回密码
 立即注册
搜索
查看: 1742|回复: 2

有关IDirect3DDevice::UpdateTexture的问题

[复制链接]

13

主题

74

帖子

74

积分

注册会员

Rank: 2

积分
74
发表于 2007-5-30 14:21:00 | 显示全部楼层 |阅读模式


IDirect3DDevice::UpdateTexture只能COPY创建时候源Texture使用D3DPOOL_SYSTEMMEM,目标Texture使用D3DPOOL_DEFAULT的Texture。

如果是源Texture使用D3DPOOL_DEFAULT,目标Texture使用D3DPOOL_SYSTEMMEM,则有没有类似的接口?

36

主题

1047

帖子

1147

积分

金牌会员

Rank: 6Rank: 6

积分
1147
发表于 2007-5-30 22:11:00 | 显示全部楼层

Re:有关IDirect3DDevice::UpdateTexture的问题

IDirect3DDevice9::UpdateSurface

13

主题

74

帖子

74

积分

注册会员

Rank: 2

积分
74
 楼主| 发表于 2007-5-31 16:17:00 | 显示全部楼层

Re:有关IDirect3DDevice::UpdateTexture的问题

IDirect3DDevice9::UpdateSurface 不能满足上面提到的要求

// DXSDK DOC
This function has the following restrictions.

The source surface must have been created with D3DPOOL_SYSTEMMEM.
The destination surface must have been created with D3DPOOL_DEFAULT
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

GMT+8, 2026-1-26 06:57

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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