logo
Free, Micro AI Code Reviews That Run on Git Commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, Micro AI Code Reviews That Run on Git Commit | Product Hunt git-lrc - Free, Micro AI Code Reviews That Run on Git Commit | Product Hunt

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

See Also