Class TexDmpTexture
Texture dump loader/writer.
Inherited Members
Namespace: Evergine.Assets.Extensions.TexDmp
Assembly: Evergine.Assets.dll
Syntax
public class TexDmpTexture
Fields
Id
Texture Id.
Declaration
public Guid Id
Field Value
Type | Description |
---|---|
Guid |
SamplerId
The sampler state Id.
Declaration
public Guid? SamplerId
Field Value
Type | Description |
---|---|
Guid? |
SubResources
The texture data per subresource.
Declaration
public TexDmpDataBox[] SubResources
Field Value
Type | Description |
---|---|
TexDmpDataBox[] |
TextureDescription
The texture description.
Declaration
public TextureDescription TextureDescription
Field Value
Type | Description |
---|---|
TextureDescription |
Methods
Load(BinaryReader, bool)
Loads the texture.
Declaration
public static TexDmpTexture Load(BinaryReader reader, bool onlyHeader)
Parameters
Type | Name | Description |
---|---|---|
BinaryReader | reader | The binary reader. |
bool | onlyHeader | Read only the header. |
Returns
Type | Description |
---|---|
TexDmpTexture | The KTX texture. |
Write(GraphicsContext, BinaryWriter, Texture)
Loads the texture.
Declaration
public static void Write(GraphicsContext graphicsContext, BinaryWriter writer, Texture texture)
Parameters
Type | Name | Description |
---|---|---|
GraphicsContext | graphicsContext | The graphics context. |
BinaryWriter | writer | The binary writer. |
Texture | texture | The KTX texture. |