Files
XCSDD/docs/api/rhi/opengl/depth-stencil-view/clear-depth-stencil.md
ssdfasd 58a83f445a fix: improve doc link navigation and tree display
- Fix link resolution with proper relative/absolute path handling
- Improve link styling with underline decoration
- Hide leaf nodes from tree, only show directories
- Fix log file path for packaged app
2026-03-19 12:44:08 +08:00

394 B
Raw Blame History

OpenGLDepthStencilView::ClearDepthStencil

void ClearDepthStencil(float depth, uint8_t stencil)

同时清除深度和模板缓冲区。

参数:

  • depth - 深度值(通常为 0.0 到 1.0
  • stencil - 模板值0-255

示例:

dsv.ClearDepthStencil(1.0f, 0);

相关文档