Edit

SKMeshVertexBuffer.Update Method

Definition

Overloads

Name Description
Update(ReadOnlySpan<Byte>, Int32)

Updates a region of a CPU-backed vertex buffer with the supplied bytes.

Update(GRContext, ReadOnlySpan<Byte>, Int32)

Updates a region of a GPU-backed vertex buffer with the supplied bytes.

Update(IntPtr, Int32, Int32)

Updates a region of a CPU-backed vertex buffer with size bytes read from data.

Update(GRContext, IntPtr, Int32, Int32)

Updates a region of a GPU-backed vertex buffer with size bytes read from data.

Update(ReadOnlySpan<Byte>, Int32)

Updates a region of a CPU-backed vertex buffer with the supplied bytes.

public bool Update(ReadOnlySpan<byte> data, int offset);

Parameters

data
ReadOnlySpan<Byte>

The bytes to copy into the buffer.

offset
Int32

The byte offset in the buffer, which must be a multiple of 4.

Returns

true if the update succeeded; otherwise false.

Remarks

Both offset and data length must be multiples of 4 bytes.

Applies to

Update(GRContext, ReadOnlySpan<Byte>, Int32)

Updates a region of a GPU-backed vertex buffer with the supplied bytes.

public bool Update(SkiaSharp.GRContext context, ReadOnlySpan<byte> data, int offset);

Parameters

context
GRContext

The GPU context that created the buffer.

data
ReadOnlySpan<Byte>

The bytes to copy into the buffer.

offset
Int32

The byte offset in the buffer, which must be a multiple of 4.

Returns

true if the update succeeded; otherwise false.

Remarks

Both offset and data length must be multiples of 4 bytes.

Applies to

Update(IntPtr, Int32, Int32)

Updates a region of a CPU-backed vertex buffer with size bytes read from data.

public bool Update(IntPtr data, int offset, int size);

Parameters

data
IntPtr

A pointer to the bytes to copy.

offset
Int32

The byte offset in the buffer, which must be a multiple of 4.

size
Int32

The number of bytes to copy, which must be a multiple of 4.

Returns

true if the update succeeded; otherwise false.

Applies to

Update(GRContext, IntPtr, Int32, Int32)

Updates a region of a GPU-backed vertex buffer with size bytes read from data.

public bool Update(SkiaSharp.GRContext context, IntPtr data, int offset, int size);

Parameters

context
GRContext

The GPU context that created the buffer.

data
IntPtr

A pointer to the bytes to copy.

offset
Int32

The byte offset in the buffer, which must be a multiple of 4.

size
Int32

The number of bytes to copy, which must be a multiple of 4.

Returns

true if the update succeeded; otherwise false.

Applies to