IPixEngine5Callbacks::LoadTextureFromFileComplete method

A callback function used to notify the host when a texture load has been completed.

Syntax

HRESULT LoadTextureFromFileComplete(
   UINT                               textureId,
   PixEngineTextureDescriptor         textureDesc,
   UINT                               numSlices,
   PixEngineTextureSliceIndex []      count2_sliceIndicies,
   PixEngineTextureSliceDescriptor [] count2_sliceDescriptors,
   UINT                               numFormatOverrides,
   int []                             count5_formatOverrides,
   PixEngineHistogram*                histogram
);

Parameters

  • textureId
    The ID of the loaded texture.

  • textureDesc
    The texture descriptor of the loaded texture.

  • numSlices
    The number of slices the texture has.

  • count2_sliceIndicies
    Slice indicies associated with the texture.

  • count2_sliceDescriptors
    Descriptors for each slice.

  • numFormatOverrides
    The number of format overrides.

  • count5_formatOverrides
    The format overrides.

  • histogram
    The address of histogram data for the loaded texture.

Return value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

Header

Vspixengine.h

See also

IPixEngine5Callbacks