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

imageAtomicOr - atomically compute the logical OR of a value with an existing value in memory, store that

Declaration

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

Description

imageAtomicOr atomically computes a new value by logically ORing 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

       imageAtomicOr - atomically compute the logical OR 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 OR into the image.

See Also

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

Version Support

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

See Also