Interface IHardwareTextureDecoder ​
Namespace: ValveResourceFormat.Utils
Assembly: ValveResourceFormat.dll
Defines the contract for texture decoders that leverage hardware acceleration.
csharp
public interface IHardwareTextureDecoderMethods ​
Decode(SKBitmap, Resource, uint, CubemapFace, uint, TextureCodec) ​
Decode a texture.
csharp
bool Decode(SKBitmap bitmap, Resource resource, uint depth, Texture.CubemapFace face, uint mipLevel, TextureCodec decodeFlags)Parameters ​
bitmap SKBitmap
The bitmap to put the result into.
resource Resource
The texture resource to decode.
depth uint
The depth to extract.
face Texture.CubemapFace
The face to extract for cube textures.
mipLevel uint
The mip level to extract.
decodeFlags TextureCodec
Hints for selecting the desired decoding path.
Returns ​
Return false if decode is unsuccessful, will fallback to software decode.

