logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

glSampleMaski - set the value of a sub-word of the sample mask

C Specification

voidglSampleMaski(GLuintmaskNumber,GLbitfieldmask);

Description

glSampleMaski sets one 32-bit sub-word of the multi-word sample mask, GL_SAMPLE_MASK_VALUE.

       maskIndex specifies which 32-bit sub-word of the sample mask to update, and mask specifies the new value
       to use for that sub-word.  maskIndex must be less than the value of GL_MAX_SAMPLE_MASK_WORDS. Bit B of
       mask word M corresponds to sample 32 x M + B.

Errors

GL_INVALID_VALUE is generated if maskIndex is greater than or equal to the value of
       GL_MAX_SAMPLE_MASK_WORDS.

Name

       glSampleMaski - set the value of a sub-word of the sample mask

Notes

glSampleMaski is available only if the GL version is 3.2 or greater, or if the ARB_texture_multisample
       extension is supported.

Parameters

maskNumber
           Specifies which 32-bit sub-word of the sample mask to update.

       mask
           Specifies the new value of the mask sub-word.

See Also

glGenRenderbuffers(), glBindRenderbuffer(), glRenderbufferStorageMultisample(),
       glFramebufferRenderbuffer(), glDeleteRenderbuffers()

Version Support

       ┌───────────────┬───────────────────────────────────────────────────────────────────────┐
       │               │                OpenGLVersion                                         │
       ├───────────────┼─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┤
       │ Function2.02.13.03.13.23.34.04.14.24.34.44.5 │
       │ /             │     │     │     │     │     │     │     │     │     │     │     │     │
       │ Feature       │     │     │     │     │     │     │     │     │     │     │     │     │
       │ Name          │     │     │     │     │     │     │     │     │     │     │     │     │
       ├───────────────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┤
       │ glSampleMaski │  -  │  -  │  -  │  -  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │
       └───────────────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┘

See Also