Class StructuredBufferInfo
Structured buffer resource information.
Inherited Members
Namespace: Evergine.Framework.Graphics.Effects.Analyzer
Assembly: Evergine.Framework.dll
Syntax
public class StructuredBufferInfo : GraphicsResourceInfo
Constructors
StructuredBufferInfo(string, string, int)
Initializes a new instance of the StructuredBufferInfo class.
Declaration
public StructuredBufferInfo(string name, string structType, int slot)
Parameters
Type | Name | Description |
---|---|---|
string | name | The name of the StructuredBuffer. |
string | structType | The type of the struct. |
int | slot | The slot of the StructuredBuffer. |
StructuredBufferInfo(string, string, string)
Initializes a new instance of the StructuredBufferInfo class.
Declaration
public StructuredBufferInfo(string name, string structType, string slot)
Parameters
Type | Name | Description |
---|---|---|
string | name | Name of the structured buffer. |
string | structType | Type of the struct. |
string | slot | Slot of the structured buffer. |
Fields
StructType
Struct type within StructuredBuffer.
Declaration
public Type StructType
Field Value
Type | Description |
---|---|
Type |
StructTypeSize
Struct type size.
Declaration
public int StructTypeSize
Field Value
Type | Description |
---|---|
int |
sStructType
Structured string type inside of StructuredBuffer.
Declaration
public string sStructType
Field Value
Type | Description |
---|---|
string |
Methods
Read(BinaryReader)
Reads a StructuredBuffer from a binary file.
Declaration
public static StructuredBufferInfo Read(BinaryReader reader)
Parameters
Type | Name | Description |
---|---|---|
BinaryReader | reader | The binary reader. |
Returns
Type | Description |
---|---|
StructuredBufferInfo | The read StructuredBuffer. |
Write(BinaryWriter)
Writes a structured buffer into a binary file.
Declaration
public override void Write(BinaryWriter writer)
Parameters
Type | Name | Description |
---|---|---|
BinaryWriter | writer | The binary writer. |