Class GraphicsResourceUsage
Graphics resource usage.
Namespace: Evergine.Framework.Graphics.Effects.Analyzer
Assembly: Evergine.Framework.dll
Syntax
public class GraphicsResourceUsage
Constructors
GraphicsResourceUsage(GraphicsResourceInfo)
Initializes a new instance of the GraphicsResourceUsage class.
Declaration
public GraphicsResourceUsage(GraphicsResourceInfo resource)
Parameters
Type | Name | Description |
---|---|---|
GraphicsResourceInfo | resource | Graphics resource info. |
GraphicsResourceUsage(int, ResourceTypes, ShaderStages)
Initializes a new instance of the GraphicsResourceUsage class.
Declaration
public GraphicsResourceUsage(int slot, GraphicsResourceInfo.ResourceTypes type, ShaderStages stages)
Parameters
Type | Name | Description |
---|---|---|
int | slot | Graphics resource slot. |
GraphicsResourceInfo.ResourceTypes | type | Graphics resource type. |
ShaderStages | stages | Graphics resource stages in use. |
Fields
Slot
The graphical resource slot.
Declaration
public int Slot
Field Value
Type | Description |
---|---|
int |
Stages
List of stages where the resource is used.
Declaration
public ShaderStages Stages
Field Value
Type | Description |
---|---|
ShaderStages |
Type
The graphics resource type.
Declaration
public GraphicsResourceInfo.ResourceTypes Type
Field Value
Type | Description |
---|---|
GraphicsResourceInfo.ResourceTypes |
Methods
ClearStages()
Clears information about stages in use.
Declaration
public virtual void ClearStages()
Clone()
Clones the current instance.
Declaration
public virtual object Clone()
Returns
Type | Description |
---|---|
object | A new cloned instance. |
Read(BinaryReader, ResourceTypes)
Reads a Graphics Resource Usage from a binary file.
Declaration
public static GraphicsResourceUsage Read(BinaryReader reader, GraphicsResourceInfo.ResourceTypes type)
Parameters
Type | Name | Description |
---|---|---|
BinaryReader | reader | The binary reader. |
GraphicsResourceInfo.ResourceTypes | type | Resource type. |
Returns
Type | Description |
---|---|
GraphicsResourceUsage | The read graphics resource usage. |
Write(BinaryWriter)
Writes a Graphics Resource Usage into a binary file.
Declaration
public virtual void Write(BinaryWriter writer)
Parameters
Type | Name | Description |
---|---|---|
BinaryWriter | writer | The binary writer. |