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

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                                            │
       ├────────────────┼──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┤
       │ Function1.101.201.301.401.503.304.004.104.204.304.404.50 │
       │ Name           │      │      │      │      │      │      │      │      │      │      │      │      │
       ├────────────────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┤
       │ imageAtomicMax │  -   │  -   │  -   │  -   │  -   │  -   │  -   │  -   │  ✔   │  ✔   │  ✔   │  ✔   │
       └────────────────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┘

See Also