AcademySoftwareFoundation / AcademySoftwareFoundation/OpenColorIO

Add support for RGBA format in GpuShaderCreator for better Metal support?

Aperta
#1,956 8 commenti 0 reazioni 1 assegnatario Rivendicata da @wRosie Vedi su GitHub
Feature Request
Lingua principale
C++
Stelle
2.1k
Fork
505
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

Hi everyone,

Only single channel and RGB texture formats are currently supported in `GpuShaderCreator::TextureType.` However, it appears that Apple does not support simple RGB format textures in Metal. Please refer to https://developer.apple.com/documentation/metal/mtlpixelformat.

Working with OCIO shaders in Metal becomes inconvenient. When I query the GpuShaderDesc for a Metal shader and its textures, I sometimes get RGB textures that are not accepted by Metal. I have to insert a placeholder alpha channel to convert them to RGBA format.

Is it an intentional decision that OCIO does not support RGBA texture? If not, is it a plan for the future?

Thanks a lot!

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.