Populates a <TypeBuffer> with MIP image slices for each <Image> object submitted in the <TypeBuffer> p_apSlices.
int32 GenerateMipChains( Texture src_tex, Image src_img, int32 p_nSlices, Int32Array dims, TypeBuffer p_apSlices, TypeBuffer p_apChains )
Parameter Type | Parameter Name | Documentation |
---|---|---|
<Texture> | src_tex | A pointer to the source <Texture> object. |
<Image> | src_img | A pointer to the source <Image> object. Often this will be the first <Image> object inside the <Texture> object, but not always. |
int32 | p_nSlices | The number of slices, which is equivalent to the <Texture> object's array count, 3D array count, or 6 for a cubemap. |
<Int32Array> | dims | A pointer to an <Int32Array> containing the dimensions for each slice. |
<TypeBuffer> | p_apSlices | A pointer to a <TypeBuffer> containing the basic set of slices for the layered <Texture>. This <TypeBuffer> must not own these objects. |
<TypeBuffer> | p_apChains | A pointer to a <TypeBuffer> that contains the final Images. This <TypeBuffer> object owns the pointers to the newly allocated <Image> objects. |
None published. Please look for an example in the Scenome Scripting Language code base.