Post

Replies

Boosts

Views

Activity

How to open window like Photos app
I notice that Photos app open photo detail window in very special way, by enabling the "Collision Shapes & Axis" you could see the window actually floating above the others, especially you could tap the dismiss button on the bottom without closing the app! Is it the private API?
0
0
520
Feb ’24
Gamma issue when display linear color
Hi, I'm displaying linear gray by CAMetalLayer with the shader below. fragment float4 fragmentShader(VertexOut in [[stage_in]], texture2d<float, access::sample> BGRATexture [[ texture(0) ]]) { float color = in.texCoordinates.x; return float4(float3(color), 1.0); } And my CAMetalLayer has been set to linearSRGB. metalLayer.colorspace = CGColorSpace(name: CGColorSpace.linearSRGB) metalLayer.pixelFormat = .bgra8Unorm Why the display seem add gamma? Apparently the middle gray is 187 but not 128.
1
0
1.2k
Mar ’24
Can AVSampleBufferDisplayLayer display MV-HEVC Compressed SampleBuffer?
I'm working on a custom spatial video player that uses AVSampleBufferDisplayLayer as render layer. When I feed it with CMSampleBuffer that output from VTCompressionSession using new encoding API it can display normally but I don't know if it can work in VisionPro. Anyone has idea?
Replies
0
Boosts
1
Views
882
Activity
Jan ’24
How to open window like Photos app
I notice that Photos app open photo detail window in very special way, by enabling the "Collision Shapes & Axis" you could see the window actually floating above the others, especially you could tap the dismiss button on the bottom without closing the app! Is it the private API?
Replies
0
Boosts
0
Views
520
Activity
Feb ’24
Gamma issue when display linear color
Hi, I'm displaying linear gray by CAMetalLayer with the shader below. fragment float4 fragmentShader(VertexOut in [[stage_in]], texture2d<float, access::sample> BGRATexture [[ texture(0) ]]) { float color = in.texCoordinates.x; return float4(float3(color), 1.0); } And my CAMetalLayer has been set to linearSRGB. metalLayer.colorspace = CGColorSpace(name: CGColorSpace.linearSRGB) metalLayer.pixelFormat = .bgra8Unorm Why the display seem add gamma? Apparently the middle gray is 187 but not 128.
Replies
1
Boosts
0
Views
1.2k
Activity
Mar ’24
Where can I download the demo for ScreenTime?
Where can I download screentime demo 'Worklog'? I couldn't found it on sample section? Apple didn't provide demo for ScreenTime in last WWDC neither.
Replies
9
Boosts
5
Views
4.1k
Activity
Jun ’23