#1524·sokol

Storage image views: allow to define array layer range.

Author: flooohCreated May 28, 2026Updated May 29, 2026
Labelssokol-gfx
  • storage image views currently only allow to select a single array layer, this should be extended to an array layer range
  • mip level cannot be a range though, there must be exactly one mip-slice selected in a storage image view
  • fix the confused GL storage image binding code:
    • use glTextureView() also for storage image, which allows to select a layer range
    • use that view object in the glBindImageTexture call
    • there's also a bug in glBindImageTexture for the in the layered arg vs layer arg, when layered is true, the actual layer arg is ignored (this one is already fixed via https://github.com/floooh/sokol/issues/1525)