You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
When using a readonly image2D uniform in a shader with imageStore(), there is currently no way of binding a specific mip-level to write to. It seems to be possible though with some graphics APIs and can be handy for a series of downsampling operations for example.
Describe the solution you'd like
A setTexture() function with a parameter to specify the mip level.
Describe alternatives you've considered
Using individual textures for each mip level, as for my concrete use case (downsampling an image) mip levels are not required and I only need one level per shader dispatch because each operation requires the result of the previous iteration.
The text was updated successfully, but these errors were encountered:
MoritzBrueckner
changed the title
Separately binding mip-levels for images in compute API
Binding specific mip-levels for images in compute API
Mar 19, 2022
MoritzBrueckner
changed the title
Binding specific mip-levels for images in compute API
Allow to write custom data to specific mip levels in g4 and compute API
Sep 30, 2022
MoritzBrueckner
changed the title
Allow to write custom data to specific mip levels in g4 and compute API
Binding specific mip-levels for images
Sep 30, 2022
Looks like I can achieve my concrete use case also with Image.setMipmaps(), whose existence I didn't know about until a few minutes ago. Before that I changed the issue description above, but now that I realized that the feature I described is already available, I reverted it back to the original issue that is still not implemented in Kha as far as I know. However, my issue is resolved, and if you think that Kha doesn't need this specific feature (which still would be nice to have though), feel free to close this issue.
Is your feature request related to a problem? Please describe.
When using a
readonly image2D
uniform in a shader withimageStore()
, there is currently no way of binding a specific mip-level to write to. It seems to be possible though with some graphics APIs and can be handy for a series of downsampling operations for example.Describe the solution you'd like
A
setTexture()
function with a parameter to specify the mip level.Describe alternatives you've considered
Using individual textures for each mip level, as for my concrete use case (downsampling an image) mip levels are not required and I only need one level per shader dispatch because each operation requires the result of the previous iteration.
The text was updated successfully, but these errors were encountered: