StaticbulkStaticcolorStaticcompressCompresses the provided data asynchronously using the specified compression options.
StaticconvertStaticcreateCreates a grayscale pixel data from the given source image, using the given channel.
The source image to create the grayscale from.
The pixel channel to retrieve the pixel data information from.
The pixel data that represents a grayscale information image from the given source.
StaticfillCreates a grayscale pixel data from the given source image, using the given channel.
The pixel data that represents a grayscale information image from the given source.
StaticgetReturns the dimensions of a single compressed block, in number of pixels. Returns 1x1 for non-block-compressed formats.
StaticgetReturns the size of a single compressed block, in bytes. Returns pixel size if the format is not block compressed.
StaticgetReturns the size of a single pixel of the provided pixel format, in bits.
StaticgetReturns the size of a single pixel of the provided pixel format, in bytes.
StaticgetReturns the number of pixel elements in the provided format.
StaticgetGets the image compression format, for the specified format.
StaticgetReturns the maximum number of mip maps that can be generated until we reach the minimum size possible. This does not count the base level.
StaticgetReturns the size of the memory region required to hold pixels of the provided size and format.
OptionalfaceCount: numberOptionalmipCount: numberStaticgetCalculates row and depth pitch for a texture surface of the specified size and format. For most formats row pitch will equal the number of bytes required for storing "width" pixels, and slice pitch will equal the number of bytes required for storing "width*height" pixels. But some texture formats (especially compressed ones) might require extra padding. Input width/height/depth values are in pixels, while output pitch values are in bytes.
StaticgetGets the pixel format, for the specified image compression.
StaticgetFinds a PixelFormat value that has a given name.
Name of PixelFormat to search for.
PixelFormat that matches given name or PixelFormat::Unknown if not found.
StaticgetReturns the name of the pixel format.
StaticgetGets the preferred pixel format for the specified uncompressed format.
StaticgetStatichasChecks if the provided pixel format has an alpha channel.
StaticisReturns true if the pixel data in the format can be directly accessed and read. This is generally not true for compressed formats.
StaticisCreates a grayscale pixel data from the given source image, using the given channel.
The pixel data that represents a grayscale information image from the given source.
StaticisChecks is the provided pixel format compressed.
StaticisChecks is the provided pixel format a depth/stencil buffer format.
StaticisChecks is the provided pixel format a floating point format.
StaticisDetermines if the specified format format is a single channel grayscale format.
StaticisChecks does the provided format store data in normalized range.
StaticisChecks does the provided format store data in normalized range.
StaticlinearConverts pixel data in linear space to one in sRGB space. Only converts the RGB components.
StaticmirrorMirrors the contents of the provided object along the X, Y and/or Z axes.
StaticsaveSaves the provided pixels as an image at the specified file path and file format. If file path extension is not provided one will be appended based on the selected format.
StaticscaleScales the input texture so it matches the size of the output texture. The operation will be performed asynchonously on the GPU.
OptionalsourceFace: numberOptionalscaleMode: EnumValue<TextureScaleMode, number>StaticsrgbConverts pixel data in sRGB space to one in linear space. Only converts the RGB components.
Utility methods for converting and managing pixel data and formats.