SkillAgentSearch skills...

MetalResizePixelBuffer

Use MetalKit and MetalPerformanceShaders to resize CVPixelBuffer

Install / Use

/learn @YuanfuC/MetalResizePixelBuffer
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

PerformancePixelBufferResize

This project is an example: How to Use Metal to resize CVPixelBuffer on the GPU.

Resize detail steps:

  • Create MTLTexture from CVPixelBuffer

  • MPSImageBilinearScale shaders scale texture for scaleToFill\scaleAspectFit\ scaleAspectFill mode

  • Copy MTLTexture to MTLBuffer

  • Create CVPixelBuffer from MTLBuffer

View on GitHub
GitHub Stars19
CategoryDevelopment
Updated3mo ago
Forks2

Languages

Swift

Security Score

72/100

Audited on Dec 8, 2025

No findings