Location of a value inside the GPU data buffer.
vec4Index is the global vec4 index the shader computes (or the base vec4 index for scalar-unaligned fetches). byteOffset is vec4Index * 16. row and col are the data-texture coordinates in WebGL2 and are -1 in WebGPU, which has no texture rows.
vec4Index
byteOffset
vec4Index * 16
row
col
-1
Optional
Location of a value inside the GPU data buffer.
vec4Indexis the global vec4 index the shader computes (or the base vec4 index for scalar-unaligned fetches).byteOffsetisvec4Index * 16.rowandcolare the data-texture coordinates in WebGL2 and are-1in WebGPU, which has no texture rows.