[SOLVED] BlackmagicRawResourceFormat & MTLPixelFormat
Posted: Fri Sep 30, 2022 10:26 pm
I'm having trouble matching the 32-bit BlackmagicRawResourceFormat's to their MTLPixelFormat equivalent.
For example:
blackmagicRawResourceFormatRGBAU8 = MTLPixelFormatRGBA8Unorm
blackmagicRawResourceFormatRGBAU16 = MTLPixelFormatRGBA16Unorm
blackmagicRawResourceFormatRGBF32 = ??
blackmagicRawResourceFormatRGBF32Planar = ??
blackmagicRawResourceFormatBGRAF32 = ??
Is there any reason why 8-bit and 16-bit use RGBA, but 32-bit uses just RGB (or BGRA)?
To give some back story, essentially, I'm trying to take the output from the MTLBuffer of the BRAW API, and use it as a texture on a different MTLDevice. I'm only just starting to play with Metal and the BRAW SDK, so apologies if I'm asking something silly. Thanks team!
For example:
blackmagicRawResourceFormatRGBAU8 = MTLPixelFormatRGBA8Unorm
blackmagicRawResourceFormatRGBAU16 = MTLPixelFormatRGBA16Unorm
blackmagicRawResourceFormatRGBF32 = ??
blackmagicRawResourceFormatRGBF32Planar = ??
blackmagicRawResourceFormatBGRAF32 = ??
Is there any reason why 8-bit and 16-bit use RGBA, but 32-bit uses just RGB (or BGRA)?
To give some back story, essentially, I'm trying to take the output from the MTLBuffer of the BRAW API, and use it as a texture on a different MTLDevice. I'm only just starting to play with Metal and the BRAW SDK, so apologies if I'm asking something silly. Thanks team!