Blast-Radius Aware AI Code Review for Business-Critical Systems
LiveReview LiveReview Explore LiveReview

imageAtomicMax - atomically compute the minimum of a value with an existing value in memory, store that

Declaration

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

Description

imageAtomicMax atomically computes a new value by finding the maximum of the value of data and 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

       imageAtomicMax - atomically compute the minimum 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 of which to take the minimum with that stored in the image.

See Also

imageLoad(), imageStore(), imageAtomicAdd(), imageAtomicMin(), imageAtomicXor(), imageAtomicOr(),
       imageAtomicAnd(), 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           │      │      │      │      │      │      │      │      │      │      │      │      │
       ├────────────────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┤
       │ imageAtomicMax │  -   │  -   │  -   │  -   │  -   │  -   │  -   │  -   │  ✔   │  ✔   │  ✔   │  ✔   │
       └────────────────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┘

See Also