Results 96 comments of Le Hoang Quyen

Will do some researches on what can be done in Qt 6.

For now, the easiest method you can do is creating a metal texture to be shared between Metal & MetalANGLE's GL context. Then in your draw() function: - Draw to...

I created an example of mixing MetalANGLE with Qt's Metal here https://github.com/kakashidinho/qml-metalangle/blob/master/metaltextureimport/metaltextureimport.mm#L430 From repo https://github.com/kakashidinho/qml-metalangle It is based on Qt's [metaltextureimport](https://code.qt.io/cgit/qt/qtdeclarative.git/tree/examples/quick/scenegraph/metaltextureimport?h=5.15) example where a custom Metal texture is displayed on...

Sorry may I know how do you use UIScreen’s scale/nativeScale currently. MetalANGLE actually doesn’t interact with any of the above properties. It only interacts with CALayer.contentsScale/MGLKView.contentsScaleFactor.

I think `GLKit`'s view's default `contentScaleFactor` is set to `[[UIScreen mainScreen] nativeScale]`. Whereas, `MetalANGLE`'s `MGLKView`'s default `contentScaleFactor` is set to `[[UIScreen mainScreen] scale]`. The view's `contentScaleFactor` can be changed to...

That is translated shader source done by ANGLE. If you want to get translated metal shader done by spirv-cross, you can use `glGetProgramBinaryOES`, see example here: https://github.com/kakashidinho/metalangle/blob/78017f07e5adee0692506c94cdb299d92c854ad3/src/tests/gl_tests/ProgramBinaryTest.cpp#L94 I don't think...

I'm not sure how is the bt2020 colorspace used to be honest? When you render a video frame to a texture, it is in linear space, isn't it? when the...

Another way to debug this type of mismatch rendering result is using `glReadPixels` to read an identical rendered frame's pixels into a float array, and then compare the array's content...

I’m curious anw, why multiply by 100 then divide by 100 (multiply by 0.01). Doesn’t it produce the (nearly) exact same old value? Maybe I misunderstood something.

I just noticed that `kCGColorSpaceITUR_2020_PQ` is deprecated https://developer.apple.com/documentation/coregraphics/kcgcolorspaceitur_2020_pq?language=objc