OpenColorIO icon indicating copy to clipboard operation
OpenColorIO copied to clipboard

Is it possible to request RGBA texture formats

Open timeinpixels opened this issue 3 years ago • 2 comments

Hi,

Is it possible to request RGBA pixel format textures buffers for the GPU shader transform? In Metal RGB is not supported so it would need to be manually converted to RGBA...

Thanks in advance, Tom

timeinpixels avatar Sep 05 '22 16:09 timeinpixels

Sorry for the late reply, just noting that you can look at https://github.com/AcademySoftwareFoundation/OpenColorIO/blob/main/src/libutils/oglapphelpers/msl.mm#L19 for an example of how this is handled in the current metal application in OCIO. Also checking with @Morteeza if there is any plan to support RGB texture at some point in Metal?

remia avatar Oct 25 '22 20:10 remia

Yes, that's my point. We need to iterate over the whole array and copy it to the new buffer. We could fill the RGBA buffer directly with the OCIO API call. Faster and less memory used.

timeinpixels avatar Oct 25 '22 20:10 timeinpixels