Edit

SKMeshVertexBuffer Class

Definition

Represents a CPU- or GPU-backed buffer holding the vertex data of a mesh.

public class SKMeshVertexBuffer : SkiaSharp.SKObject
Inheritance
SKMeshVertexBuffer

Properties

Name Description
Handle

Gets or sets the handle to the underlying native object.

(Inherited from SKObject)
IgnorePublicDispose

Gets a value indicating whether the call the public Dispose() should be no-op.

(Inherited from SKNativeObject)
IsDisposed

Gets a value indicating whether the object has already been disposed.

(Inherited from SKNativeObject)
OwnsHandle

Gets or sets a value indicating whether this object owns its handle and should destroy the native object when it is disposed.

(Inherited from SKNativeObject)
Size

Gets the size of the buffer, in bytes.

Methods

Name Description
Copy()

Creates a CPU-backed copy of this vertex buffer.

Copy(GRContext)

Creates a GPU-backed copy of this vertex buffer.

Create(GRContext, Int32)

Creates a zero-initialized GPU-backed vertex buffer of the specified size.

Create(GRContext, IntPtr, Int32)

Creates a GPU-backed vertex buffer containing a copy of size bytes read from data.

Create(GRContext, ReadOnlySpan<Byte>)

Creates a GPU-backed vertex buffer containing a copy of the supplied data.

Create(Int32)

Creates a zero-initialized CPU-backed vertex buffer of the specified size.

Create(IntPtr, Int32)

Creates a CPU-backed vertex buffer containing a copy of size bytes read from data.

Create(ReadOnlySpan<Byte>)

Creates a CPU-backed vertex buffer containing a copy of the supplied data.

Dispose()

Releases all resources used by this SKNativeObject.

(Inherited from SKNativeObject)
Dispose(Boolean)

Releases the unmanaged resources used by the buffer and optionally releases the managed resources.

DisposeInternal()

Triggers a dispose, ignoring the value of IgnorePublicDispose.

(Inherited from SKNativeObject)
DisposeManaged()

Implemented by derived SKObject types to destroy any managed objects.

(Inherited from SKObject)
DisposeNative()

Implemented by derived SKObject types to destroy any native objects.

(Inherited from SKObject)
DisposeUnownedManaged()

Implemented by derived SKObject types to dispose managed objects that are not owned by this instance.

(Inherited from SKObject)
Update(GRContext, IntPtr, Int32, Int32)

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

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(ReadOnlySpan<Byte>, Int32)

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

Applies to