GenerateMipChains Data Member Function

Populates a <TypeBuffer> with MIP image slices for each <Image> object submitted in the <TypeBuffer> p_apSlices.

Prototype

int32 GenerateMipChains( Texture src_tex, Image src_img, int32 p_nSlices, Int32Array dims, TypeBuffer p_apSlices, TypeBuffer p_apChains )

Parameters

Parameter Type Parameter Name Documentation
<Texture>src_texA pointer to the source <Texture> object.
<Image>src_imgA pointer to the source <Image> object. Often this will be the first <Image> object inside the <Texture> object, but not always.
int32p_nSlicesThe number of slices, which is equivalent to the <Texture> object's array count, 3D array count, or 6 for a cubemap.
<Int32Array>dimsA pointer to an <Int32Array> containing the dimensions for each slice.
<TypeBuffer>p_apSlicesA pointer to a <TypeBuffer> containing the basic set of slices for the layered <Texture>. This <TypeBuffer> must not own these objects.
<TypeBuffer>p_apChainsA pointer to a <TypeBuffer> that contains the final Images. This <TypeBuffer> object owns the pointers to the newly allocated <Image> objects.

Examples

Copy Text To Clipboard

None published. Please look for an example in the Scenome Scripting Language code base.