cepl icon indicating copy to clipboard operation
cepl copied to clipboard

Add Image read/write support

Open cbaggers opened this issue 7 years ago • 2 comments

Its part of the GL api so gotta do it some day

cbaggers avatar Nov 24 '17 14:11 cbaggers

one of the uses for this is voxel based global illumination by writing to a 3d texture (https://github.com/Friduric/voxel-cone-tracing/tree/master/Shaders/Voxelization) i monkey patched things together so I leave some notes for a proper implementation:

  • varjo needs a type for it
  • varjo needs to write a layout for each image-3d like
layout(RGBA8) uniform image3D texture3D;
  • cepl needs to add a call to %gl:bind-image-texture additionally to what it does for samples on the defpipeline-g
  • optional: %gl:clear-tex-image is needed for vxgi

azimut avatar Aug 18 '19 03:08 azimut

Cool, thanks @azimut. Maybe I'll try do this after layered attachments.

cbaggers avatar Aug 24 '19 22:08 cbaggers