Copies the specified data bytes into the underlying Metal buffer for use by a shader.
Required.
SDKs
- iOS 9.0+
- macOS 10.11+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 3.0+
Framework
- Scene
Kit
Declaration
func writeBytes(_ bytes: Unsafe Raw Pointer, count length: Int)
Parameters
bytes
The memory address from which to copy data.
length
The number of bytes to copy into the Metal buffer.