Class TextureInfo
Texture graphic resource information.
Inherited Members
Namespace: Evergine.Framework.Graphics.Effects.Analyzer
Assembly: Evergine.Framework.dll
Syntax
public class TextureInfo : GraphicsResourceInfo
Constructors
TextureInfo(string, int, TextureType, TextureSemantic, int)
Initializes a new instance of the TextureInfo class.
Declaration
public TextureInfo(string name, int slot, TextureType textureType, TextureInfo.TextureSemantic semantic, int semanticIndex)
Parameters
Type | Name | Description |
---|---|---|
string | name | Texture name. |
int | slot | Texture slot. |
TextureType | textureType | Texture type. |
TextureInfo.TextureSemantic | semantic | Texture semantic. |
int | semanticIndex | Texture semantic index. |
TextureInfo(string, string, string, string)
Initializes a new instance of the TextureInfo class.
Declaration
public TextureInfo(string name, string textureType, string offset, string tag)
Parameters
Type | Name | Description |
---|---|---|
string | name | Texture Name. |
string | textureType | Texture Type. |
string | offset | Texture Offset. |
string | tag | Texture Tag. |
Fields
Semantic
The texture semantic.
Declaration
public TextureInfo.TextureSemantic Semantic
Field Value
Type | Description |
---|---|
TextureInfo.TextureSemantic |
SemanticIndex
The semantic index.
Declaration
public int SemanticIndex
Field Value
Type | Description |
---|---|
int |
TextureType
The texture type.
Declaration
public TextureType TextureType
Field Value
Type | Description |
---|---|
TextureType |
Methods
Read(BinaryReader)
Read a samplerInfo from a binary file.
Declaration
public static TextureInfo Read(BinaryReader reader)
Parameters
Type | Name | Description |
---|---|---|
BinaryReader | reader | The binary reader. |
Returns
Type | Description |
---|---|
TextureInfo | The read samplerInfo. |
Write(BinaryWriter)
Write a samplerInfo into a binary file.
Declaration
public override void Write(BinaryWriter writer)
Parameters
Type | Name | Description |
---|---|---|
BinaryWriter | writer | The binary writer. |