ProtectedconstructorOptionalisInternalConstructor: booleanThe content type of the texture.
Returns the depth of the texture (only applicable for 3D textures).
Preferred sampling mode when rendering this texture.
Returns a reference handle for this resource.
Returns the height of the texture.
Determines if the texture source data is sRGB colorspaced. If the texture format supports hardware sRGB conversion, the underlying data will be sRGB and convered to linear when sampled. Otherwise the data will be linearized on import.
Determines if the resource is destroyed.
Checks if all of the streaming data has been assigned.
True if all the streaming data has been assigned via SetStreamingData.
Checks wheteher the format is grayscale.
true if the format is grayscale.
Determines the maximum number of samples allowed during anisotropic filtering. Should be in range [1, 16], but the maximum range can be higher or lower depending on the hardware.
Returns the meta data of this resource.
Gets the number of mipmaps to be used for this texture. This number excludes the top level map (which is always assumed to be present).
Name of the resource. Use primarily for easier identification and not important to the engine itself.
Returns the pixel format for the texture surface.
Gets the number of samples used for multisampling (0 or 1 if multisampling is not used).
Gets the type of texture.
Returns a value that signals the engine in what way is the texture expected to be used.
Returns the width of the texture.
Blits the contents a subresource in this texture to another texture.
Texture that contains the destination subresource.
Structure used for customizing the blit operation. buffer is used.
Asynchronously compresses the texture using the specified compression options.
The compression options.
The compressed texture or null if the compression
Copies the contents a subresource in this texture to another texture. Texture format and size of the subresource must match.
You are allowed to copy from a multisampled to non-multisampled surface, which will resolve the multisampled surface before copying.
Texture that contains the destination subresource.
Structure used for customizing the copy operation.
Reads internal texture data into a newly allocated buffer. Performs the read asynchronously without blocking the GPU.
Optionalface: numberTexture face to read from.
OptionalmipLevel: numberMipmap level to read from.
Async operation object that will contain the buffer with the data once the operation completes.
Returns pixels for the specified mip level & face. Pixels will be read from system memory, which means the texture has to be created with TextureUsageFlag.CPUCached. If the texture was updated from the GPU the pixels retrieved from this method will not reflect that, and you should use GetGPUPixels instead.
Optionalface: EnumValue<CubemapFace, number>Face to read the pixels from. Cubemap textures have six faces whose face indices are as specified in the CubemapFace enum. Array textures can have an arbitrary number of faces (if it's a cubemap array it has to be a multiple of 6).
OptionalmipLevel: numberMip level to retrieve pixels for. Top level (0) is the highest quality.
A set of pixels for the specified mip level.
Sets pixels for the specified mip level and face.
Options object for the function call.
Staticcreate1DCreates an empty 1D texture.
Width of the texture in pixels.
Optionalformat: EnumValue<PixelFormat, number>Format of the pixels.
Optionalusage: EnumValue<TextureUsageFlag, number>Describes planned texture use.
OptionalhasMipmaps: booleanDetermines if the texture allocates memory for the mip-map chain or only the top level.
OptionalisColorspaceSRGB: booleanIf true the texture data is assumed be in sRGB color space.
Staticcreate2DCreates an empty 2D texture.
Width of the texture in pixels.
Height of the texture in pixels.
Optionalformat: EnumValueTyped<PixelFormat, number>Format of the pixels.
Optionalusage: EnumValue<TextureUsageFlag, number>Describes planned texture use.
OptionalhasMipmaps: booleanDetermines if the texture allocates memory for the mip-map chain or only the top level.
OptionalisColorspaceSRGB: booleanIf true the texture data is assumed be in sRGB color space.
Staticcreate3DCreates an empty 3D texture.
Width of the texture in pixels.
Height of the texture in pixels.
Depth of the texture in pixels.
Optionalformat: EnumValueTyped<PixelFormat, number>Format of the pixels.
Optionalusage: EnumValue<TextureUsageFlag, number>Describes planned texture use.
OptionalhasMipmaps: booleanDetermines if the texture allocates memory for the mip-map chain or only the top level.
StaticcreateCreates an empty cubemap texture.
Width and height of a single cubemap face in pixels.
Optionalformat: EnumValueTyped<PixelFormat, number>Format of the pixels.
Optionalusage: EnumValue<TextureUsageFlag, number>Describes planned texture use.
OptionalhasMipmaps: booleanDetermines if the texture allocates memory for the mip-map chain or only the top level.
OptionalisColorspaceSRGB: booleanIf true the texture data is assumed be in sRGB color space.
StaticcreateCreates an empty multi-sampled 2D texture.
Width of the texture in pixels.
Height of the texture in pixels.
The number of samples per pixel. Must be higher than 1.
Optionalformat: EnumValueTyped<PixelFormat, number>Format of the pixels.
Optionalusage: EnumValue<TextureUsageFlag, number>Describes planned texture use.
OptionalhasMipmaps: booleanDetermines if the texture allocates memory for the mip-map chain or only the top level.
OptionalisColorspaceSRGB: booleanIf true the texture data is assumed be in sRGB color space.
Addtogroup
Rendering @{