Not able to Use gpgpu::primitives::pixels::Luma8 and Luma8Norm; #12
RahulDas-dev
started this conversation in
Show and tell
Replies: 1 comment
-
They are tricky to use in WGSL shaders. First they are loaded as a texture of a 32-bit primitive, thus making every 4 pixels on the CPU data a channel of a single pixel on the GPU (4 to 1). Then, the result cannot be properly saved because R32Uint storage textures or anything similar useful won't work on the shader. So they are difficult to work with and then challenging to save :) I still trying bring them again, but for now, you have to upload the image as a Rgba8 one, duplicating or zeroing the extra data, and then only using 1 channel of the image/texture on the shader. Hope this helps! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
HI ,
Using gpgpu-rs, I am doing RGB to Gray Conversation, but I have not found Luma8 or Luma8Norm. I see they were commented off in v.0.2.0
However, this two were present in v.0.1.0
I would appreciate any feedback on that.
Beta Was this translation helpful? Give feedback.
All reactions