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

imageAtomicXor - atomically compute the logical exclusive OR of a value with an existing value in memory,

Declaration

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

Description

imageAtomicXor atomically computes a new value by logically XORing 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

       imageAtomicXor - atomically compute the logical exclusive 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 XOR into the image.

See Also

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

Version Support

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

See Also