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

imageAtomicAnd - atomically compute the logical AND of a value with an existing value in memory, store

Declaration

uintimageAtomicAnd(gimage1Dimage,intP,uintdata);uintimageAtomicAnd(gimage2Dimage,ivec2P,uintdata);uintimageAtomicAnd(gimage3Dimage,ivec3P,uintdata);uintimageAtomicAnd(gimage2DRectimage,ivec2P,uintdata);uintimageAtomicAnd(gimageCubeimage,ivec3P,uintdata);uintimageAtomicAnd(gbufferImageimage,intP,uintdata);uintimageAtomicAnd(gimage1DArrayimage,ivec2P,uintdata);uintimageAtomicAnd(gimage2DArrayimage,ivec3P,uintdata);uintimageAtomicAnd(gimageCubeArrayimage,ivec3P,uintdata);uintimageAtomicAnd(gimage2DMSimage,ivec2P,intsample,uintdata);uintimageAtomicAnd(gimage2DMSArrayimage,ivec3P,intsample,uintdata);intimageAtomicAnd(gimage1Dimage,intP,intdata);intimageAtomicAnd(gimage2Dimage,ivec2P,intdata);intimageAtomicAnd(gimage3Dimage,ivec3P,intdata);intimageAtomicAnd(gimage2DRectimage,ivec2P,intdata);intimageAtomicAnd(gimageCubeimage,ivec3P,intdata);intimageAtomicAnd(gbufferImageimage,intP,intdata);intimageAtomicAnd(gimage1DArrayimage,ivec2P,intdata);intimageAtomicAnd(gimage2DArrayimage,ivec3P,intdata);intimageAtomicAnd(gimageCubeArrayimage,ivec3P,intdata);intimageAtomicAnd(gimage2DMSimage,ivec2P,intsample,intdata);intimageAtomicAnd(gimage2DMSArrayimage,ivec3P,intsample,intdata);

Description

imageAtomicAnd atomically computes a new value by logically ANDing the value of data to the contents of
       the texel at coordinate P and sample in the image bound to uint image, stores that value into the image
       and returns the original value.

Name

       imageAtomicAnd - atomically compute the logical AND of a value with an existing value in memory, store
       that value and return the original value

Parameters

image
           Specify the image unit into which to store data.

       P
           Specify the coordinate at which to store the data.

       sample
           When present, specifies the sample within the image to store into.

       data
           Specifies the data to logically AND into the image.

See Also

imageLoad(), imageStore(), imageAtomicAdd(), imageAtomicMin(), imageAtomicMax(), imageAtomicOr(),
       imageAtomicXor(), imageAtomicExchange(), imageAtomicCompSwap()

Version Support

       ┌────────────────┬───────────────────────────────────────────────────────────────────────────────────┐
       │                │        OpenGLShadingLanguageVersion                                            │
       ├────────────────┼──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┤
       │ Function1.101.201.301.401.503.304.004.104.204.304.404.50 │
       │ Name           │      │      │      │      │      │      │      │      │      │      │      │      │
       ├────────────────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┤
       │ imageAtomicAnd │  -   │  -   │  -   │  -   │  -   │  -   │  -   │  -   │  ✔   │  ✔   │  ✔   │  ✔   │
       └────────────────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┘

See Also