RenderScript एलोकेशन बनाने वाले फ़ंक्शन

खास जानकारी

नीचे दिए गए फ़ंक्शन का इस्तेमाल, स्क्रिप्ट से ऐलोकेशन बनाने के लिए किया जा सकता है.

इन फ़ंक्शन को सीधे तौर पर या किसी दूसरे तरीके से, कॉल किए जा सकने वाले फ़ंक्शन से कॉल किया जा सकता है. अगर किसी कंट्रोल-फ़्लो पाथ की वजह से, RenderScript के किसी कोर फ़ंक्शन से इन फ़ंक्शन को कॉल किया जा सकता है, तो कंपाइलर गड़बड़ी जनरेट करेगा.

खास जानकारी

फ़ंक्शन
rsCreateAllocation दिए गए टाइप का rs_allocation ऑब्जेक्ट बनाएं.
rsCreateElement तय किए गए डेटा टाइप का rs_element ऑब्जेक्ट बनाता है
rsCreatePixelElement तय किए गए डेटा टाइप और डेटा टाइप के rs_element ऑब्जेक्ट बनाता है
rsCreateType तय किए गए एलिमेंट और शेप एट्रिब्यूट के साथ rs_type ऑब्जेक्ट बनाता है
rsCreateVectorElement तय किए गए डेटा टाइप और वेक्टर की चौड़ाई का rs_element ऑब्जेक्ट बनाता है

फ़ंक्शन

rsCreateAllocation : दिए गए टाइप का rs_allocation ऑब्जेक्ट बनाएं.

rs_allocation rsCreateAllocation(rs_type type); एपीआई लेवल 24 में जोड़ा गया
rs_allocation rsCreateAllocation(rs_type टाइप, rs_allocation_mipmap_control mipmap, uint32_t इस्तेमाल, void* ptr); एपीआई लेवल 24 में जोड़ा गया
rs_allocation rsCreateAllocation(rs_type टाइप, uint32_t इस्तेमाल); एपीआई लेवल 24 में जोड़ा गया
rs_allocation rsCreateAllocation_char(uint32_t dimX); एपीआई लेवल 24 में जोड़ा गया
rs_allocation rsCreateAllocation_char(uint32_t dimX, uint32_t dimY); एपीआई लेवल 24 में जोड़ा गया
rs_allocation rsCreateAllocation_char(uint32_t dimX, uint32_t dimY, uint32_t dimZ); एपीआई लेवल 24 में जोड़ा गया
rs_allocation rsCreateAllocation_char2(uint32_t dimX); एपीआई लेवल 24 में जोड़ा गया
rs_allocation rsCreateAllocation_char2(uint32_t dimX, uint32_t dimY); एपीआई लेवल 24 में जोड़ा गया
rs_allocation rsCreateAllocation_char2(uint32_t dimX, uint32_t dimY, uint32_t dimZ); एपीआई लेवल 24 में जोड़ा गया
rs_allocation rsCreateAllocation_char3(uint32_t dimX); एपीआई लेवल 24 में जोड़ा गया
rs_allocation rsCreateAllocation_char3(uint32_t dimX, uint32_t dimY); एपीआई लेवल 24 में जोड़ा गया
rs_allocation rsCreateAllocation_char3(uint32_t dimX, uint32_t dimY, uint32_t dimZ); एपीआई लेवल 24 में जोड़ा गया
rs_allocation rsCreateAllocation_char4(uint32_t dimX); एपीआई लेवल 24 में जोड़ा गया
rs_allocation rsCreateAllocation_char4(uint32_t dimX, uint32_t dimY); एपीआई लेवल 24 में जोड़ा गया
rs_allocation rsCreateAllocation_char4(uint32_t dimX, uint32_t dimY, uint32_t dimZ); एपीआई लेवल 24 में जोड़ा गया
rs_allocation rsCreateAllocation_double(uint32_t dimX); एपीआई लेवल 24 में जोड़ा गया
rs_allocation rsCreateAllocation_double(uint32_t dimX, uint32_t dimY); एपीआई लेवल 24 में जोड़ा गया
rs_allocation rsCreateAllocation_double(uint32_t dimX, uint32_t dimY, uint32_t dimZ); एपीआई लेवल 24 में जोड़ा गया
rs_allocation rsCreateAllocation_double2(uint32_t dimX); एपीआई लेवल 24 में जोड़ा गया
rs_allocation rsCreateAllocation_double2(uint32_t dimX, uint32_t dimY); एपीआई लेवल 24 में जोड़ा गया
rs_allocation rsCreateAllocation_double2(uint32_t dimX, uint32_t dimY, uint32_t dimZ); एपीआई लेवल 24 में जोड़ा गया
rs_allocation rsCreateAllocation_double3(uint32_t dimX); एपीआई लेवल 24 में जोड़ा गया
rs_allocation rsCreateAllocation_double3(uint32_t dimX, uint32_t dimY); एपीआई लेवल 24 में जोड़ा गया
rs_allocation rsCreateAllocation_double3(uint32_t dimX, uint32_t dimY, uint32_t dimZ); एपीआई लेवल 24 में जोड़ा गया
rs_allocation rsCreateAllocation_double4(uint32_t dimX); एपीआई लेवल 24 में जोड़ा गया
rs_allocation rsCreateAllocation_double4(uint32_t dimX, uint32_t dimY); एपीआई लेवल 24 में जोड़ा गया
rs_allocation rsCreateAllocation_double4(uint32_t dimX, uint32_t dimY, uint32_t dimZ); एपीआई लेवल 24 में जोड़ा गया
rs_allocation rsCreateAllocation_float(uint32_t dimX); एपीआई लेवल 24 में जोड़ा गया
rs_allocation rsCreateAllocation_float(uint32_t dimX, uint32_t dimY); एपीआई लेवल 24 में जोड़ा गया
rs_allocation rsCreateAllocation_float(uint32_t dimX, uint32_t dimY, uint32_t dimZ); एपीआई लेवल 24 में जोड़ा गया
rs_allocation rsCreateAllocation_float2(uint32_t dimX); एपीआई लेवल 24 में जोड़ा गया
rs_allocation rsCreateAllocation_float2(uint32_t dimX, uint32_t dimY); एपीआई लेवल 24 में जोड़ा गया
rs_allocation rsCreateAllocation_float2(uint32_t dimX, uint32_t dimY, uint32_t dimZ); एपीआई लेवल 24 में जोड़ा गया
rs_allocation rsCreateAllocation_float3(uint32_t dimX); एपीआई लेवल 24 में जोड़ा गया
rs_allocation rsCreateAllocation_float3(uint32_t dimX, uint32_t dimY); एपीआई लेवल 24 में जोड़ा गया
rs_allocation rsCreateAllocation_float3(uint32_t dimX, uint32_t dimY, uint32_t dimZ); एपीआई लेवल 24 में जोड़ा गया
rs_allocation rsCreateAllocation_float4(uint32_t dimX); एपीआई लेवल 24 में जोड़ा गया
rs_allocation rsCreateAllocation_float4(uint32_t dimX, uint32_t dimY); एपीआई लेवल 24 में जोड़ा गया
rs_allocation rsCreateAllocation_float4(uint32_t dimX, uint32_t dimY, uint32_t dimZ); एपीआई लेवल 24 में जोड़ा गया
rs_allocation rsCreateAllocation_half(uint32_t dimX); एपीआई लेवल 24 में जोड़ा गया
rs_allocation rsCreateAllocation_half(uint32_t dimX, uint32_t dimY); एपीआई लेवल 24 में जोड़ा गया
rs_allocation rsCreateAllocation_half(uint32_t dimX, uint32_t dimY, uint32_t dimZ); एपीआई लेवल 24 में जोड़ा गया
rs_allocation rsCreateAllocation_half2(uint32_t dimX); एपीआई लेवल 24 में जोड़ा गया
rs_allocation rsCreateAllocation_half2(uint32_t dimX, uint32_t dimY); एपीआई लेवल 24 में जोड़ा गया
rs_allocation rsCreateAllocation_half2(uint32_t dimX, uint32_t dimY, uint32_t dimZ); एपीआई लेवल 24 में जोड़ा गया
rs_allocation rsCreateAllocation_half3(uint32_t dimX); एपीआई लेवल 24 में जोड़ा गया
rs_allocation rsCreateAllocation_half3(uint32_t dimX, uint32_t dimY); एपीआई लेवल 24 में जोड़ा गया
rs_allocation rsCreateAllocation_half3(uint32_t dimX, uint32_t dimY, uint32_t dimZ); एपीआई लेवल 24 में जोड़ा गया
rs_allocation rsCreateAllocation_half4(uint32_t dimX); एपीआई लेवल 24 में जोड़ा गया
rs_allocation rsCreateAllocation_half4(uint32_t dimX, uint32_t dimY); एपीआई लेवल 24 में जोड़ा गया
rs_allocation rsCreateAllocation_half4(uint32_t dimX, uint32_t dimY, uint32_t dimZ); एपीआई लेवल 24 में जोड़ा गया
rs_allocation rsCreateAllocation_int(uint32_t dimX); एपीआई लेवल 24 में जोड़ा गया
rs_allocation rsCreateAllocation_int(uint32_t dimX, uint32_t dimY); एपीआई लेवल 24 में जोड़ा गया
rs_allocation rsCreateAllocation_int(uint32_t dimX, uint32_t dimY, uint32_t dimZ); एपीआई लेवल 24 में जोड़ा गया
rs_allocation rsCreateAllocation_int2(uint32_t dimX); एपीआई लेवल 24 में जोड़ा गया
rs_allocation rsCreateAllocation_int2(uint32_t dimX, uint32_t dimY); एपीआई लेवल 24 में जोड़ा गया
rs_allocation rsCreateAllocation_int2(uint32_t dimX, uint32_t dimY, uint32_t dimZ); एपीआई लेवल 24 में जोड़ा गया
rs_allocation rsCreateAllocation_int3(uint32_t dimX); एपीआई लेवल 24 में जोड़ा गया
rs_allocation rsCreateAllocation_int3(uint32_t dimX, uint32_t dimY); एपीआई लेवल 24 में जोड़ा गया
rs_allocation rsCreateAllocation_int3(uint32_t dimX, uint32_t dimY, uint32_t dimZ); एपीआई लेवल 24 में जोड़ा गया
rs_allocation rsCreateAllocation_int4(uint32_t dimX); एपीआई लेवल 24 में जोड़ा गया
rs_allocation rsCreateAllocation_int4(uint32_t dimX, uint32_t dimY); एपीआई लेवल 24 में जोड़ा गया
rs_allocation rsCreateAllocation_int4(uint32_t dimX, uint32_t dimY, uint32_t dimZ); एपीआई लेवल 24 में जोड़ा गया
rs_allocation rsCreateAllocation_long(uint32_t dimX); एपीआई लेवल 24 में जोड़ा गया
rs_allocation rsCreateAllocation_long(uint32_t dimX, uint32_t dimY); एपीआई लेवल 24 में जोड़ा गया
rs_allocation rsCreateAllocation_long(uint32_t dimX, uint32_t dimY, uint32_t dimZ); एपीआई लेवल 24 में जोड़ा गया
rs_allocation rsCreateAllocation_long2(uint32_t dimX); एपीआई लेवल 24 में जोड़ा गया
rs_allocation rsCreateAllocation_long2(uint32_t dimX, uint32_t dimY); एपीआई लेवल 24 में जोड़ा गया
rs_allocation rsCreateAllocation_long2(uint32_t dimX, uint32_t dimY, uint32_t dimZ); एपीआई लेवल 24 में जोड़ा गया
rs_allocation rsCreateAllocation_long3(uint32_t dimX); एपीआई लेवल 24 में जोड़ा गया
rs_allocation rsCreateAllocation_long3(uint32_t dimX, uint32_t dimY); एपीआई लेवल 24 में जोड़ा गया
rs_allocation rsCreateAllocation_long3(uint32_t dimX, uint32_t dimY, uint32_t dimZ); एपीआई लेवल 24 में जोड़ा गया
rs_allocation rsCreateAllocation_long4(uint32_t dimX); एपीआई लेवल 24 में जोड़ा गया
rs_allocation rsCreateAllocation_long4(uint32_t dimX, uint32_t dimY); एपीआई लेवल 24 में जोड़ा गया
rs_allocation rsCreateAllocation_long4(uint32_t dimX, uint32_t dimY, uint32_t dimZ); एपीआई लेवल 24 में जोड़ा गया
rs_allocation rsCreateAllocation_short(uint32_t dimX); एपीआई लेवल 24 में जोड़ा गया
rs_allocation rsCreateAllocation_short(uint32_t dimX, uint32_t dimY); एपीआई लेवल 24 में जोड़ा गया
rs_allocation rsCreateAllocation_short(uint32_t dimX, uint32_t dimY, uint32_t dimZ); एपीआई लेवल 24 में जोड़ा गया
rs_allocation rsCreateAllocation_short2(uint32_t dimX); एपीआई लेवल 24 में जोड़ा गया
rs_allocation rsCreateAllocation_short2(uint32_t dimX, uint32_t dimY); एपीआई लेवल 24 में जोड़ा गया
rs_allocation rsCreateAllocation_short2(uint32_t dimX, uint32_t dimY, uint32_t dimZ); एपीआई लेवल 24 में जोड़ा गया
rs_allocation rsCreateAllocation_short3(uint32_t dimX); एपीआई लेवल 24 में जोड़ा गया
rs_allocation rsCreateAllocation_short3(uint32_t dimX, uint32_t dimY); एपीआई लेवल 24 में जोड़ा गया
rs_allocation rsCreateAllocation_short3(uint32_t dimX, uint32_t dimY, uint32_t dimZ); एपीआई लेवल 24 में जोड़ा गया
rs_allocation rsCreateAllocation_short4(uint32_t dimX); एपीआई लेवल 24 में जोड़ा गया
rs_allocation rsCreateAllocation_short4(uint32_t dimX, uint32_t dimY); एपीआई लेवल 24 में जोड़ा गया
rs_allocation rsCreateAllocation_short4(uint32_t dimX, uint32_t dimY, uint32_t dimZ); एपीआई लेवल 24 में जोड़ा गया
rs_allocation rsCreateAllocation_uchar(uint32_t dimX); एपीआई लेवल 24 में जोड़ा गया
rs_allocation rsCreateAllocation_uchar(uint32_t dimX, uint32_t dimY); एपीआई लेवल 24 में जोड़ा गया
rs_allocation rsCreateAllocation_uchar(uint32_t dimX, uint32_t dimY, uint32_t dimZ); एपीआई लेवल 24 में जोड़ा गया
rs_allocation rsCreateAllocation_uchar2(uint32_t dimX); एपीआई लेवल 24 में जोड़ा गया
rs_allocation rsCreateAllocation_uchar2(uint32_t dimX, uint32_t dimY); एपीआई लेवल 24 में जोड़ा गया
rs_allocation rsCreateAllocation_uchar2(uint32_t dimX, uint32_t dimY, uint32_t dimZ); एपीआई लेवल 24 में जोड़ा गया
rs_allocation rsCreateAllocation_uchar3(uint32_t dimX); एपीआई लेवल 24 में जोड़ा गया
rs_allocation rsCreateAllocation_uchar3(uint32_t dimX, uint32_t dimY); एपीआई लेवल 24 में जोड़ा गया
rs_allocation rsCreateAllocation_uchar3(uint32_t dimX, uint32_t dimY, uint32_t dimZ); एपीआई लेवल 24 में जोड़ा गया
rs_allocation rsCreateAllocation_uchar4(uint32_t dimX); एपीआई लेवल 24 में जोड़ा गया
rs_allocation rsCreateAllocation_uchar4(uint32_t dimX, uint32_t dimY); एपीआई लेवल 24 में जोड़ा गया
rs_allocation rsCreateAllocation_uchar4(uint32_t dimX, uint32_t dimY, uint32_t dimZ); एपीआई लेवल 24 में जोड़ा गया
rs_allocation rsCreateAllocation_uint(uint32_t dimX); एपीआई लेवल 24 में जोड़ा गया
rs_allocation rsCreateAllocation_uint(uint32_t dimX, uint32_t dimY); एपीआई लेवल 24 में जोड़ा गया
rs_allocation rsCreateAllocation_uint(uint32_t dimX, uint32_t dimY, uint32_t dimZ); एपीआई लेवल 24 में जोड़ा गया
rs_allocation rsCreateAllocation_uint2(uint32_t dimX); एपीआई लेवल 24 में जोड़ा गया
rs_allocation rsCreateAllocation_uint2(uint32_t dimX, uint32_t dimY); एपीआई लेवल 24 में जोड़ा गया
rs_allocation rsCreateAllocation_uint2(uint32_t dimX, uint32_t dimY, uint32_t dimZ); एपीआई लेवल 24 में जोड़ा गया
rs_allocation rsCreateAllocation_uint3(uint32_t dimX); एपीआई लेवल 24 में जोड़ा गया
rs_allocation rsCreateAllocation_uint3(uint32_t dimX, uint32_t dimY); एपीआई लेवल 24 में जोड़ा गया
rs_allocation rsCreateAllocation_uint3(uint32_t dimX, uint32_t dimY, uint32_t dimZ); एपीआई लेवल 24 में जोड़ा गया
rs_allocation rsCreateAllocation_uint4(uint32_t dimX); एपीआई लेवल 24 में जोड़ा गया
rs_allocation rsCreateAllocation_uint4(uint32_t dimX, uint32_t dimY); एपीआई लेवल 24 में जोड़ा गया
rs_allocation rsCreateAllocation_uint4(uint32_t dimX, uint32_t dimY, uint32_t dimZ); एपीआई लेवल 24 में जोड़ा गया
rs_allocation rsCreateAllocation_ulong(uint32_t dimX); एपीआई लेवल 24 में जोड़ा गया
rs_allocation rsCreateAllocation_ulong(uint32_t dimX, uint32_t dimY); एपीआई लेवल 24 में जोड़ा गया
rs_allocation rsCreateAllocation_ulong(uint32_t dimX, uint32_t dimY, uint32_t dimZ); एपीआई लेवल 24 में जोड़ा गया
rs_allocation rsCreateAllocation_ulong2(uint32_t dimX); एपीआई लेवल 24 में जोड़ा गया
rs_allocation rsCreateAllocation_ulong2(uint32_t dimX, uint32_t dimY); एपीआई लेवल 24 में जोड़ा गया
rs_allocation rsCreateAllocation_ulong2(uint32_t dimX, uint32_t dimY, uint32_t dimZ); एपीआई लेवल 24 में जोड़ा गया
rs_allocation rsCreateAllocation_ulong3(uint32_t dimX); एपीआई लेवल 24 में जोड़ा गया
rs_allocation rsCreateAllocation_ulong3(uint32_t dimX, uint32_t dimY); एपीआई लेवल 24 में जोड़ा गया
rs_allocation rsCreateAllocation_ulong3(uint32_t dimX, uint32_t dimY, uint32_t dimZ); एपीआई लेवल 24 में जोड़ा गया
rs_allocation rsCreateAllocation_ulong4(uint32_t dimX); एपीआई लेवल 24 में जोड़ा गया
rs_allocation rsCreateAllocation_ulong4(uint32_t dimX, uint32_t dimY); एपीआई लेवल 24 में जोड़ा गया
rs_allocation rsCreateAllocation_ulong4(uint32_t dimX, uint32_t dimY, uint32_t dimZ); एपीआई लेवल 24 में जोड़ा गया
rs_allocation rsCreateAllocation_ushort(uint32_t dimX); एपीआई लेवल 24 में जोड़ा गया
rs_allocation rsCreateAllocation_ushort(uint32_t dimX, uint32_t dimY); एपीआई लेवल 24 में जोड़ा गया
rs_allocation rsCreateAllocation_ushort(uint32_t dimX, uint32_t dimY, uint32_t dimZ); एपीआई लेवल 24 में जोड़ा गया
rs_allocation rsCreateAllocation_ushort2(uint32_t dimX); एपीआई लेवल 24 में जोड़ा गया
rs_allocation rsCreateAllocation_ushort2(uint32_t dimX, uint32_t dimY); एपीआई लेवल 24 में जोड़ा गया
rs_allocation rsCreateAllocation_ushort2(uint32_t dimX, uint32_t dimY, uint32_t dimZ); एपीआई लेवल 24 में जोड़ा गया
rs_allocation rsCreateAllocation_ushort3(uint32_t dimX); एपीआई लेवल 24 में जोड़ा गया
rs_allocation rsCreateAllocation_ushort3(uint32_t dimX, uint32_t dimY); एपीआई लेवल 24 में जोड़ा गया
rs_allocation rsCreateAllocation_ushort3(uint32_t dimX, uint32_t dimY, uint32_t dimZ); एपीआई लेवल 24 में जोड़ा गया
rs_allocation rsCreateAllocation_ushort4(uint32_t dimX); एपीआई लेवल 24 में जोड़ा गया
rs_allocation rsCreateAllocation_ushort4(uint32_t dimX, uint32_t dimY); एपीआई लेवल 24 में जोड़ा गया
rs_allocation rsCreateAllocation_ushort4(uint32_t dimX, uint32_t dimY, uint32_t dimZ); एपीआई लेवल 24 में जोड़ा गया
पैरामीटर
टाइपआवंटन का टाइप
इस्तेमालऐलोकेशन के लिए इस्तेमाल का फ़्लैग
mipmap
इस्तेमाल
ptr
dimX
dimY
dimZ

दिए गए टाइप और इस्तेमाल के लिए rs_allocation ऑब्जेक्ट बनाता है.

RenderScript स्क्रिप्ट में बनाए गए ऐलोकेशन के लिए, इस्तेमाल के सिर्फ़ ये फ़्लैग काम करते हैं: RS_ALLOCATION_USAGE_SCRIPT और RS_ALLOCATION_USAGE_GRAPHICS_TEXTURE.

rsCreateAllocation_ रैपर फ़ंक्शन का इस्तेमाल करके, स्केलर और वैक्टर संख्यात्मक टाइप के ऐलोकेशन को सीधे तौर पर बनाया जा सकता है. इसके लिए, इंटरमीडियरी rs_element या rs_type ऑब्जेक्ट बनाने की ज़रूरत नहीं होती.

उदाहरण के लिए, rsCreateAllocation_int4() फ़ंक्शन, दिए गए डाइमेंशन के int4 डेटा टाइप का ऐलोकेशन दिखाता है.

rsCreateElement : तय किए गए डेटा टाइप का rs_element ऑब्जेक्ट बनाता है

rs_element rsCreateElement(int32_t data_type, int32_t data_kind, bool isNormalized, uint32_t vecSize); एपीआई लेवल 24 में जोड़ा गया
rs_element rsCreateElement(rs_data_type data_type); एपीआई लेवल 24 में जोड़ा गया
पैरामीटर
data_typeएलिमेंट का डेटा टाइप
data_kind
isNormalized
vecSize

तय किए गए डेटा टाइप का rs_element ऑब्जेक्ट बनाता है. एलिमेंट का डेटा टाइप, RS_KIND_USER पर सेट किया जाएगा और vector_width को 1 पर सेट किया जाएगा, जिससे यह पता चलेगा कि यह वेक्टर नहीं है.

rsCreatePixelElement : तय किए गए डेटा टाइप और डेटा टाइप के rs_element ऑब्जेक्ट बनाता है

rs_element rsCreatePixelElement(rs_data_type data_type, rs_data_kind data_kind); एपीआई लेवल 24 में जोड़ा गया
पैरामीटर
data_typeएलिमेंट का डेटा टाइप
data_kindएलिमेंट का डेटा टाइप

तय किए गए डेटा टाइप और डेटा टाइप के rs_element ऑब्जेक्ट बनाता है. एलिमेंट की vector_width को 1 पर सेट किया जाएगा, जिससे यह पता चलेगा कि यह वेक्टर नहीं है.

rsCreateType : तय किए गए एलिमेंट और शेप एट्रिब्यूट के साथ rs_type ऑब्जेक्ट बनाता है

rs_type rsCreateType(rs_element एलिमेंट, uint32_t डाइमेंशन एक्स); एपीआई लेवल 24 में जोड़ा गया
rs_type rsCreateType(rs_element एलिमेंट, uint32_t डाइमेंशन एक्स, uint32_t डाइमेंशन वाई); एपीआई लेवल 24 में जोड़ा गया
rs_type rsCreateType(rs_element element, uint32_t dimX, uint32_t dimY, uint32_t dimZ); एपीआई लेवल 24 में जोड़ा गया
rs_type rsCreateType(rs_element एलिमेंट, uint32_t डाइमेंशन एक्स, uint32_t डाइमेंशन वाई, uint32_t डाइमेंशन जेड, bool mipmaps, bool faces, rs_yuv_format yuv_format); एपीआई लेवल 24 में जोड़ा गया
पैरामीटर
एलिमेंटटाइप से जुड़ा एलिमेंट
dimXX डाइमेंशन के हिसाब से साइज़
dimYY डाइमेंशन के हिसाब से साइज़
dimZZ डाइमेंशन के हिसाब से साइज़
मिपमैपइस फ़्लैग से पता चलता है कि टाइप में मिपमैप चेन है या नहीं
चेहरेफ़्लैग से पता चलता है कि टाइप क्यूबमैप है या नहीं
yuv_formatटाइप के लिए YUV लेआउट

तय किए गए एलिमेंट और शेप एट्रिब्यूट के साथ rs_type ऑब्जेक्ट बनाता है.

dimX, X डाइमेंशन का साइज़ बताता है.

अगर dimY मौजूद है और इसकी वैल्यू शून्य नहीं है, तो इसका मतलब है कि Y डाइमेंशन मौजूद है और इसका साइज़ कितना है.

अगर dimZ मौजूद है और इसकी वैल्यू शून्य नहीं है, तो इसका मतलब है कि Z डाइमेंशन मौजूद है और इसका साइज़ बताता है.

एमआईपीमैप से पता चलता है कि ज़्यादा जानकारी वाले लेवल (एलओडी) मौजूद हैं या नहीं.

faces से पता चलता है कि क्यूबमैप के कितने फ़ेस हैं.

yuv_format से, उससे जुड़े YUV फ़ॉर्मैट (या RS_YUV_NONE) का पता चलता है.

rsCreateVectorElement : तय किए गए डेटा टाइप और वेक्टर की चौड़ाई का rs_element ऑब्जेक्ट बनाता है

rs_element rsCreateVectorElement(rs_data_type data_type, uint32_t vector_width); एपीआई लेवल 24 में जोड़ा गया
पैरामीटर
data_typeएलिमेंट का डेटा टाइप
vector_widthवेक्टर की चौड़ाई (2, 3 या 4)

तय किए गए डेटा टाइप और वेक्टर की चौड़ाई का rs_element ऑब्जेक्ट बनाता है. vector_width की वैल्यू 2, 3 या 4 होनी चाहिए. एलिमेंट का डेटा टाइप, RS_KIND_USER पर सेट हो जाएगा.