Scripting API
Scripting API
ImportedTexture
Record struct in Abyss.Core, from Abyss.Core.
What an import made: its size, its mipmaps, its format and what it takes on the GPU.
public readonly record struct ImportedTextureRemarks
Laid out to match the engine's own ImportedTexture, thirty-two bytes.
Constructors
ImportedTexture
public ImportedTexture(uint Width, uint Height, uint Levels, ImportedFormat Format, ulong Bytes, uint SourceWidth, uint SourceHeight)What an import made: its size, its mipmaps, its format and what it takes on the GPU.
Parameters
Width: Its width, after its Max Size.Height: Its height, after its Max Size.Levels: How many mipmaps it has, its own size counted: one with none.Format: What the GPU is given.Bytes: How many bytes all its mipmaps take on the GPU.SourceWidth: Its source's width.SourceHeight: Its source's height.
Laid out to match the engine's own ImportedTexture, thirty-two bytes.
Properties
Width
public uint Width { get; init; }Its width, after its Max Size.
Height
public uint Height { get; init; }Its height, after its Max Size.
Levels
public uint Levels { get; init; }How many mipmaps it has, its own size counted: one with none.
Format
public ImportedFormat Format { get; init; }What the GPU is given.
Bytes
public ulong Bytes { get; init; }How many bytes all its mipmaps take on the GPU.
SourceWidth
public uint SourceWidth { get; init; }Its source's width.
SourceHeight
public uint SourceHeight { get; init; }Its source's height.
FormatName
public string FormatName { get; }The format as the inspector names it: RGBA8 sRGB, BC1 sRGB, BC5 linear.
