Quantcast
Channel: Questions in topic: "compute shader"
Viewing all articles
Browse latest Browse all 287

Use compute shader to go RGBA to RGB

$
0
0
Is it possible to write a compute shader that can convert an RGBA image to a RGB image? I am new to HLSL and I cannot find a type of byte or uchar to make a structured buffer like RWStructuredBuffer< uchar > WouldntThisBeNice; Many functions in OpenCV work on RGB images but not RGBA. I am already successful in flipping my RGBA images up/down before sending them to OpenCV and figured it would nice to avoid an OpenCV call to convert the image on the CPU.

Viewing all articles
Browse latest Browse all 287

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>