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

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

See Also