Class BufferViewModel
This wraps a buffer.
Namespace: Evergine.Framework.Assets.GltfModel
Assembly: Evergine.Framework.dll
Syntax
public class BufferViewModel
Fields
BufferId
Gets the buffer ID.
Declaration
public Guid BufferId
Field Value
Type | Description |
---|---|
Guid |
BufferIndex
The buffer index.
Declaration
public int BufferIndex
Field Value
Type | Description |
---|---|
int |
BufferLength
Gets the buffer length.
Declaration
public int BufferLength
Field Value
Type | Description |
---|---|
int |
BufferOffset
Gets or sets the buffer offset.
Declaration
public int BufferOffset
Field Value
Type | Description |
---|---|
int |
Flags
The buffer's flags.
Declaration
public BufferFlags Flags
Field Value
Type | Description |
---|---|
BufferFlags |
StartPtr
Gets the buffer pointer.
Declaration
public nint StartPtr
Field Value
Type | Description |
---|---|
nint |
Stride
Gets the buffer stride.
Declaration
public int? Stride
Field Value
Type | Description |
---|---|
int? |
Methods
Read(BinaryReader)
Reads this asset part.
Declaration
public static BufferViewModel Read(BinaryReader reader)
Parameters
Type | Name | Description |
---|---|---|
BinaryReader | reader | The binary reader. |
Returns
Type | Description |
---|---|
BufferViewModel | The loaded asset part. |
Write(BinaryWriter)
Writes this asset.
Declaration
public void Write(BinaryWriter writer)
Parameters
Type | Name | Description |
---|---|---|
BinaryWriter | writer | The binary writer. |