Risk-Aware Code Review: Auto Approve Low-Risk Changes
LiveReview LiveReview LiveReview - Free, Risk-Aware Code Review: Auto Approve Low-Risk Changes | Product Hunt LiveReview - Free, Risk-Aware Code Review: Auto Approve Low-Risk Changes | Product Hunt GitHub Install Now

We'd appreciate a star

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                                            │
       ├────────────────┼──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┤
       │ Function       │ 1.10 │ 1.20 │ 1.30 │ 1.40 │ 1.50 │ 3.30 │ 4.00 │ 4.10 │ 4.20 │ 4.30 │ 4.40 │ 4.50 │
       │ Name           │      │      │      │      │      │      │      │      │      │      │      │      │
       ├────────────────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┤
       │ imageAtomicAnd │  -   │  -   │  -   │  -   │  -   │  -   │  -   │  -   │  ✔   │  ✔   │  ✔   │  ✔   │
       └────────────────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┘

See Also