名称
glSampleMaski —设置样本蒙版的子词的值
C规范
void glSampleMaski( GLuint maskNumber, GLbitfield mask);
参数
maskNumber
指定要更新的示例掩码的哪个32位子字。
mask
指定掩码子字的新值。
描述
glSampleMaski设置多字样本掩码GL_SAMPLE_MASK_VALUE中的一个32位子字。
maskIndex指定要更新的示例掩码的哪个32位子字,而mask指定要用于该子字的新值。 maskIndex必须小于GL_MAX_SAMPLE_MASK_WORDS的值。掩码字M的位B对应于样本32 x M +B。
错误
如果maskIndex大于或等于GL_MAX_SAMPLE_MASK_WORDS的值,则生成GL_INVALID_VALUE。
API 支持版本
函数名 | 2.0 | 3.0 | 3.1 | 3.2 |
---|---|---|---|---|
glSampleMaski | - | - | ✔ | ✔ |
另见
glEnable, glDisable
版权
https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glSampleMaski.xhtml
Copyright © 2010-2015 Khronos Group. This material may be distributed subject to the terms and conditions set forth in the Open Publication License, v 1.0, 8 June 1999. http://opencontent.org/openpub/.