TextureData2D

Description

sealed class Tinman.Engine.Rendering.TextureData2D

Derived from

ResourceData abstract

A IResourceData implementation that holds a texel buffer for creating static ITexture2D resources.

Public / Constructors

For

2 overloads


[OwnerReturn]
public static method For1 → (2)

texels in : TexelBuffer own

[not-null]
The texel buffer.

namePrefix opt : string = null

Optional resource name prefix to apply.

returns → TextureData2D

The created TextureData2D object.

Creates a new instance of TextureData2D.


[OwnerReturn]
public static method For2 → (2)

texels in : TexelBuffer [ ] own

[not-null]
The texel buffer of each texture array slice.

namePrefix opt : string = null

Optional resource name prefix to apply.

returns → TextureData2D

The created TextureData2D object.

Creates a new instance of TextureData2D.