Class VertexBuffer
[Obsolete("Use the new buffer API instead.")]
public class VertexBuffer : IDisposable
- Inheritance
-
VertexBuffer
- Implements
- Inherited Members
Constructors
VertexBuffer(IEnumerable<VertexAttribute>)
public VertexBuffer(IEnumerable<VertexAttribute> attributes)
Parameters
attributes
IEnumerable<VertexAttribute>
Properties
Attributes
public IReadOnlyList<VertexAttribute> Attributes { get; }
Property Value
Pointer
public nint Pointer { get; }
Property Value
Size
public long Size { get; }
Property Value
Span
public Span<byte> Span { get; }
Property Value
Methods
AsSpan<T>()
public Span<T> AsSpan<T>() where T : unmanaged
Returns
- Span<T>
Type Parameters
T
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
~VertexBuffer()
protected ~VertexBuffer()
GetAccessor<T>(int)
public AttributeAccessor<T> GetAccessor<T>(int attributeIndex) where T : unmanaged
Parameters
attributeIndex
int
Returns
Type Parameters
T
Resize(long)
public void Resize(long size)
Parameters
size
long