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

imageStore - write a single texel into an image

Declaration

voidimageStore(gimage1Dimage,intP,gvec4data);voidimageStore(gimage2Dimage,ivec2P,gvec4data);voidimageStore(gimage3Dimage,ivec3P,gvec4data);voidimageStore(gimage2DRectimage,ivec2P,gvec4data);voidimageStore(gimageCubeimage,ivec3P,gvec4data);voidimageStore(gbufferImageimage,intP,gvec4data);voidimageStore(gimage1DArrayimage,ivec2P,gvec4data);voidimageStore(gimage2DArrayimage,ivec3P,gvec4data);voidimageStore(gimageCubeArrayimage,ivec3P,gvec4data);voidimageStore(gimage2DMSimage,ivec2P,intsample,gvec4data);voidimageStore(gimage2DMSArrayimage,ivec3P,intsample,gvec4data);

Description

imageStore stores data into the texel at the coordinate P from the image specified by image. For
       multi-sample stores, the sample number is given by sample. When image, P, and sample identify a valid
       texel, the bits used to represent data are converted to the format of the image unit in the manner
       described in of the OpenGL Specification and stored to the specified texel.

Name

       imageStore - write a single texel into an image

Parameters

image
           Specify the image unit into which to store a texel.

       P
           Specify the coordinate at which to store the texel.

       sample
           When present, specifies the sample within the image to store into.

       data
           Specifies the data to store into the image.

See Also

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

Version Support

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

See Also