Synced
TextureAsset.Constructor
Section titled “TextureAsset.Constructor”
- Creates an immutable imported texture description.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.Rendering.Assets
Declaration
Section titled “Declaration”public Inno.Rendering.Assets.TextureAsset.TextureAsset(int width, int height, Inno.Rendering.Assets.TextureColorSpace colorSpace, string sourceFormat)Parameters
Section titled “Parameters”Parameter width: The positive source pixel width.
Parameter height: The positive source pixel height.
Parameter colorSpace: The color-space interpretation used when sampling the texture.
Parameter sourceFormat: The normalized source container name without a leading period.
Exceptions
Section titled “Exceptions”Exception T:System.ArgumentOutOfRangeException: Thrown when width or height is not positive.
Exception T:System.ArgumentException: Thrown when sourceFormat is empty or contains only white-space characters.