473 B
473 B
OpenGLDepthStencilView::ClearDepthStencil
void ClearDepthStencil(float depth, uint8_t stencil)
同时清除深度和模板缓冲区。此操作会先绑定帧缓冲,然后执行清除。
参数:
depth- 深度值(通常为 0.0 到 1.0)stencil- 模板值(0-255)
返回值: void
示例:
dsv.ClearDepthStencil(1.0f, 0);
相关文档
- OpenGLDepthStencilView - 返回类总览