Class GraphicsResourceInfo
Contains information about the graphics resource.
Inheritance
Namespace: Evergine.Framework.Graphics.Effects.Analyzer
Assembly: Evergine.Framework.dll
Syntax
public abstract class GraphicsResourceInfo
Constructors
GraphicsResourceInfo(string, int, ResourceTypes)
Initializes a new instance of the GraphicsResourceInfo class.
Declaration
public GraphicsResourceInfo(string name, int slot, GraphicsResourceInfo.ResourceTypes type)
Parameters
Type | Name | Description |
---|---|---|
string | name | Graphics resource name. |
int | slot | Resource slot. |
GraphicsResourceInfo.ResourceTypes | type | Resource type. |
GraphicsResourceInfo(string, string, ResourceTypes)
Initializes a new instance of the GraphicsResourceInfo class.
Declaration
public GraphicsResourceInfo(string name, string slot, GraphicsResourceInfo.ResourceTypes type)
Parameters
Type | Name | Description |
---|---|---|
string | name | The graphics resource name. |
string | slot | The resource slot. |
GraphicsResourceInfo.ResourceTypes | type | The resource type. |
Fields
Name
The name of the graphic resource.
Declaration
public string Name
Field Value
Type | Description |
---|---|
string |
Slot
The graphical resource slot.
Declaration
public int Slot
Field Value
Type | Description |
---|---|
int |
Type
The graphics resource type.
Declaration
public GraphicsResourceInfo.ResourceTypes Type
Field Value
Type | Description |
---|---|
GraphicsResourceInfo.ResourceTypes |
Methods
Equals(GraphicsResourceInfo)
Indicates whether the current object is equal to another object of the same type.
Declaration
public virtual bool Equals(GraphicsResourceInfo other)
Parameters
Type | Name | Description |
---|---|---|
GraphicsResourceInfo | other | An object to compare with this object. |
Returns
Type | Description |
---|---|
bool | true if the current object is equal to the |
Equals(object)
Determines whether the specified object is equal to the current object.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
object | obj | The object to compare with the current object. |
Returns
Type | Description |
---|---|
bool | true if the specified object is equal to the current object; otherwise, false. |
Overrides
GetHashCode()
Serves as the default hash function.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int | A hash code for the current object. |
Overrides
Write(BinaryWriter)
Writes graphics resource info into a binary file.
Declaration
public abstract void Write(BinaryWriter writer)
Parameters
Type | Name | Description |
---|---|---|
BinaryWriter | writer | The binary writer. |
Operators
operator ==(GraphicsResourceInfo, GraphicsResourceInfo)
Declaration
public static bool operator ==(GraphicsResourceInfo value1, GraphicsResourceInfo value2)
Parameters
Type | Name | Description |
---|---|---|
GraphicsResourceInfo | value1 | |
GraphicsResourceInfo | value2 |
Returns
Type | Description |
---|---|
bool |
operator !=(GraphicsResourceInfo, GraphicsResourceInfo)
Declaration
public static bool operator !=(GraphicsResourceInfo value1, GraphicsResourceInfo value2)
Parameters
Type | Name | Description |
---|---|---|
GraphicsResourceInfo | value1 | |
GraphicsResourceInfo | value2 |
Returns
Type | Description |
---|---|
bool |