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

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

Declaration

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

Description

imageAtomicMin atomically computes a new value by finding the minimum 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

       imageAtomicMin - 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(), imageAtomicMax(), 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           │      │      │      │      │      │      │      │      │      │      │      │      │
       ├────────────────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┤
       │ imageAtomicMin │  -   │  -   │  -   │  -   │  -   │  -   │  -   │  -   │  ✔   │  ✔   │  ✔   │  ✔   │
       └────────────────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┘

See Also