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

imageLoad - load a single texel from an image

Declaration

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

Description

imageLoad loads the texel at the coordinate P from the image unit image. For multi-sample loads, the
       sample number is given by sample. When image, P, sample identify a valid texel, the bits used to
       represent the selected texel in memory are converted to a vec4, ivec4, or uvec4 in the manner described
       in the OpenGL Specification and returned.

Name

       imageLoad - load a single texel from an image

Parameters

image
           Specify the image unit from which to load a texel.

       P
           Specify the coordinate from which to load the texel.

       sample
           When present, specifies the sample within the image to load

See Also

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

See Also