KomputeProject / kompute

General purpose GPU compute framework built on Vulkan to support 1000s of cross vendor graphics cards (AMD, Qualcomm, NVIDIA & friends). Blazing fast, mobile-enabled, asynchronous and optimized for advanced GPU data processing usecases. Backed by the Linux Foundation.
http://kompute.cc/
Apache License 2.0
1.88k stars 145 forks source link

Add Support for Computations with 8-Bit Data. #374

Open ballaib opened 2 months ago

ballaib commented 2 months ago

I wanted to use Kompute to do processing on 8-bit images. However, this does not appear to be possible without converting the image to another format beforehand. This made Kompute infeasible for my use case. It would be really helpful if Kompute supported computations with 8-bit data.

axsaucedo commented 4 days ago

You can add uint_8 data type quite easily by following https://github.com/KomputeProject/kompute/blob/a1555854bb035feb9f15c3049224d2f6dd961409/test/TestOpShadersFromStringAndFile.cpp#L12-L59

We are looking to add this by default however.