kmuCalculateKamuiWorkareaSize

Calculates Kamui Work Area Size.

KMSTATUS KMAPI
kmuCalculateKamuiWorkareaSize(
IN OUT PKMWORKAREASIZE pWorkareaSize,
)

Description:

This function calculates the size of the work area that is specified by the contents of the dwTextureStructNum and dwSmallVQStructNum members of the SystemConfigStruct that is set by kmSetSystemConfiguration, and the pAddress member according to the parameters specified in the KMWORKAREASIZE structure.
Set the values described below for each member of the KMWORKAREASIZE structure.
typedef struct tagKMWORKAREASIZE
{
/* Inputs by user */

KMDWORD dwNumberOfFameBuffes;
  This specifies the number of frame buffers. For example, in the case of a double buffer, specify "2."
KMDWORD dwNumberOfNativeBuffers;
  This specifies the number of native command buffers. For example, in the case of a double buffer, specify "2."
KMDWORD dwNumberOfTextures;
  This specifies the total number of non-Small VQ textures to be used at one time.
KMDWORD dwNumberOf8x8SmallVQ;
  This specifies the total number of 8x8 small VQ textures to be used at one time.
KMDWORD dwNumberOf8x8SmallVQmm;
  This specifies the total number of 8x8 small VQ mipmap textures to be used at one time.
KMDWORD dwNumberOf16x16SmallVQ;
  This specifies the total number of 16x16 small VQ textures to be used at one time.
KMDWORD dwNumberOf16x16SmallVQmm;
  This specifies the total number of 16x16 small VQ mipmap textures to be used at one time.
KMDWORD dwNumberOf32x32SmallVQ;
  This specifies the total number of 32x32 small VQ textures to be used at one time.
KMDWORD dwNumberOf32x32SmallVQmm;
  This specifies the total number of 32x32 small VQ mipmap textures to be used at one time.
KMDWORD dwNumberOf64x64SmallVQ;
  This specifies the total number of 64x64 small VQ textures to be used at one time.
KMDWORD dwNumberOf64x64SmallVQmm;
  This specifies the total number of 64x64 small VQ mipmap textures to be used at one time.

/* Outputs for SystemConfigStruct */

KMDWORD dwTextureStructNum;
  This returns the maximum number of texture management structures that Kamui requires in order to manage the number of textures/buffers specified above. This is the value that is set in the dwTextureStructNum member of SystemConfigStruct.
KMDWORD dwSmallVQStructNum;
  This returns the maximum number of Small VQ texture management structures that Kamui requires in order to manage the number of Small VQ textures specified above. This is the value that is set in the dwSmallVQStructNum member of SystemConfigStruct.
KMDWORD dwKamuiWorkareaSize;
  This returns the maximum work area capacity that is required in order to store the number of texture management structures specified above. This is the size of the work area that is specified in the pAddress member of SystemConfigStruct.

} KMWORKAREASIZE, *PKMWORKAREASIZE;

Parameters:

pWorkareaSize(input/output)
This is the structure in which the input parameters and results are saved.

Return values:

Value | Explanetion
--- | ---
KMSTATUS_SUCCESS | Success

kmuCalculateKamuiWorkareaSize