Home > 未分类 > OcclusionQuery:硬件遮挡查询的Device设置

OcclusionQuery:硬件遮挡查询的Device设置

D3D9中进行OcclusionQuery时,必须开启ZBuffer。否则尽管所有可见像素都被绘制到缓冲,但它们不能算作“通过Z测试的像素”,因此Query结果始终是0。
Advertisements
Categories: 未分类
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: