# RHICommandList::SetStencilRef ```cpp virtual void SetStencilRef(uint8_t ref) = 0; ``` 设置模板参考值。 **参数:** - `ref` - 模板参考值 **示例:** ```cpp cmdList->SetStencilRef(0xFF); ``` ## 相关文档 - [RHICommandList 总览](command-list.md) - 返回类总览