1*344a7f5eSAndroid Build Coastguard Worker/* 2*344a7f5eSAndroid Build Coastguard Worker * Copyright (C) 2016 The Android Open Source Project 3*344a7f5eSAndroid Build Coastguard Worker * 4*344a7f5eSAndroid Build Coastguard Worker * Licensed under the Apache License, Version 2.0 (the "License"); 5*344a7f5eSAndroid Build Coastguard Worker * you may not use this file except in compliance with the License. 6*344a7f5eSAndroid Build Coastguard Worker * You may obtain a copy of the License at 7*344a7f5eSAndroid Build Coastguard Worker * 8*344a7f5eSAndroid Build Coastguard Worker * http://www.apache.org/licenses/LICENSE-2.0 9*344a7f5eSAndroid Build Coastguard Worker * 10*344a7f5eSAndroid Build Coastguard Worker * Unless required by applicable law or agreed to in writing, software 11*344a7f5eSAndroid Build Coastguard Worker * distributed under the License is distributed on an "AS IS" BASIS, 12*344a7f5eSAndroid Build Coastguard Worker * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13*344a7f5eSAndroid Build Coastguard Worker * See the License for the specific language governing permissions and 14*344a7f5eSAndroid Build Coastguard Worker * limitations under the License. 15*344a7f5eSAndroid Build Coastguard Worker */ 16*344a7f5eSAndroid Build Coastguard Worker 17*344a7f5eSAndroid Build Coastguard Worker// Don't edit this file! It is auto-generated by frameworks/rs/api/generate.sh. 18*344a7f5eSAndroid Build Coastguard Worker 19*344a7f5eSAndroid Build Coastguard Worker/* 20*344a7f5eSAndroid Build Coastguard Worker * rs_allocation_create.rsh: Allocation Creation Functions 21*344a7f5eSAndroid Build Coastguard Worker * 22*344a7f5eSAndroid Build Coastguard Worker * The functions below can be used to create Allocations from a Script. 23*344a7f5eSAndroid Build Coastguard Worker * 24*344a7f5eSAndroid Build Coastguard Worker * These functions can be called directly or indirectly from an invokable 25*344a7f5eSAndroid Build Coastguard Worker * function. If some control-flow path can result in a call to these functions 26*344a7f5eSAndroid Build Coastguard Worker * from a RenderScript kernel function, a compiler error will be generated. 27*344a7f5eSAndroid Build Coastguard Worker */ 28*344a7f5eSAndroid Build Coastguard Worker 29*344a7f5eSAndroid Build Coastguard Worker#ifndef RENDERSCRIPT_RS_ALLOCATION_CREATE_RSH 30*344a7f5eSAndroid Build Coastguard Worker#define RENDERSCRIPT_RS_ALLOCATION_CREATE_RSH 31*344a7f5eSAndroid Build Coastguard Worker 32*344a7f5eSAndroid Build Coastguard Worker/* 33*344a7f5eSAndroid Build Coastguard Worker * rsCreateElement: Creates an rs_element object of the specified data type 34*344a7f5eSAndroid Build Coastguard Worker * 35*344a7f5eSAndroid Build Coastguard Worker * Creates an rs_element object of the specified data type. The data kind of 36*344a7f5eSAndroid Build Coastguard Worker * the Element will be set to RS_KIND_USER and vector_width will be set to 1, 37*344a7f5eSAndroid Build Coastguard Worker * indicating non-vector. 38*344a7f5eSAndroid Build Coastguard Worker * 39*344a7f5eSAndroid Build Coastguard Worker * Parameters: 40*344a7f5eSAndroid Build Coastguard Worker * data_type: Data type of the Element 41*344a7f5eSAndroid Build Coastguard Worker */ 42*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 24)) 43*344a7f5eSAndroid Build Coastguard Workerextern rs_element __attribute__((overloadable)) 44*344a7f5eSAndroid Build Coastguard Worker rsCreateElement(rs_data_type data_type); 45*344a7f5eSAndroid Build Coastguard Worker#endif 46*344a7f5eSAndroid Build Coastguard Worker 47*344a7f5eSAndroid Build Coastguard Worker/* 48*344a7f5eSAndroid Build Coastguard Worker * rsCreateVectorElement: Creates an rs_element object of the specified data type and vector width 49*344a7f5eSAndroid Build Coastguard Worker * 50*344a7f5eSAndroid Build Coastguard Worker * Creates an rs_element object of the specified data type and vector width. 51*344a7f5eSAndroid Build Coastguard Worker * Value of vector_width must be 2, 3 or 4. The data kind of the Element will 52*344a7f5eSAndroid Build Coastguard Worker * be set to RS_KIND_USER. 53*344a7f5eSAndroid Build Coastguard Worker * 54*344a7f5eSAndroid Build Coastguard Worker * Parameters: 55*344a7f5eSAndroid Build Coastguard Worker * data_type: Data type of the Element 56*344a7f5eSAndroid Build Coastguard Worker * vector_width: Vector width (either 2, 3, or 4) 57*344a7f5eSAndroid Build Coastguard Worker */ 58*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 24)) 59*344a7f5eSAndroid Build Coastguard Workerextern rs_element __attribute__((overloadable)) 60*344a7f5eSAndroid Build Coastguard Worker rsCreateVectorElement(rs_data_type data_type, uint32_t vector_width); 61*344a7f5eSAndroid Build Coastguard Worker#endif 62*344a7f5eSAndroid Build Coastguard Worker 63*344a7f5eSAndroid Build Coastguard Worker/* 64*344a7f5eSAndroid Build Coastguard Worker * rsCreatePixelElement: Creates an rs_element object of the specified data type and data kind 65*344a7f5eSAndroid Build Coastguard Worker * 66*344a7f5eSAndroid Build Coastguard Worker * Creates an rs_element object of the specified data type and data kind. The 67*344a7f5eSAndroid Build Coastguard Worker * vector_width of the Element will be set to 1, indicating non-vector. 68*344a7f5eSAndroid Build Coastguard Worker * 69*344a7f5eSAndroid Build Coastguard Worker * Parameters: 70*344a7f5eSAndroid Build Coastguard Worker * data_type: Data type of the Element 71*344a7f5eSAndroid Build Coastguard Worker * data_kind: Data kind of the Element 72*344a7f5eSAndroid Build Coastguard Worker */ 73*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 24)) 74*344a7f5eSAndroid Build Coastguard Workerextern rs_element __attribute__((overloadable)) 75*344a7f5eSAndroid Build Coastguard Worker rsCreatePixelElement(rs_data_type data_type, rs_data_kind data_kind); 76*344a7f5eSAndroid Build Coastguard Worker#endif 77*344a7f5eSAndroid Build Coastguard Worker 78*344a7f5eSAndroid Build Coastguard Worker/* 79*344a7f5eSAndroid Build Coastguard Worker * rsCreateType: Creates an rs_type object with the specified Element and shape attributes 80*344a7f5eSAndroid Build Coastguard Worker * 81*344a7f5eSAndroid Build Coastguard Worker * Creates an rs_type object with the specified Element and shape attributes. 82*344a7f5eSAndroid Build Coastguard Worker * 83*344a7f5eSAndroid Build Coastguard Worker * dimX specifies the size of the X dimension. 84*344a7f5eSAndroid Build Coastguard Worker * 85*344a7f5eSAndroid Build Coastguard Worker * dimY, if present and non-zero, indicates that the Y dimension is present and 86*344a7f5eSAndroid Build Coastguard Worker * indicates its size. 87*344a7f5eSAndroid Build Coastguard Worker * 88*344a7f5eSAndroid Build Coastguard Worker * dimZ, if present and non-zero, indicates that the Z dimension is present and 89*344a7f5eSAndroid Build Coastguard Worker * indicates its size. 90*344a7f5eSAndroid Build Coastguard Worker * 91*344a7f5eSAndroid Build Coastguard Worker * mipmaps indicates the presence of level of detail (LOD). 92*344a7f5eSAndroid Build Coastguard Worker * 93*344a7f5eSAndroid Build Coastguard Worker * faces indicates the presence of cubemap faces. 94*344a7f5eSAndroid Build Coastguard Worker * 95*344a7f5eSAndroid Build Coastguard Worker * yuv_format indicates the associated YUV format (or RS_YUV_NONE). 96*344a7f5eSAndroid Build Coastguard Worker * 97*344a7f5eSAndroid Build Coastguard Worker * Parameters: 98*344a7f5eSAndroid Build Coastguard Worker * element: Element to be associated with the Type 99*344a7f5eSAndroid Build Coastguard Worker * dimX: Size along the X dimension 100*344a7f5eSAndroid Build Coastguard Worker * dimY: Size along the Y dimension 101*344a7f5eSAndroid Build Coastguard Worker * dimZ: Size along the Z dimension 102*344a7f5eSAndroid Build Coastguard Worker * mipmaps: Flag indicating if the Type has a mipmap chain 103*344a7f5eSAndroid Build Coastguard Worker * faces: Flag indicating if the Type is a cubemap 104*344a7f5eSAndroid Build Coastguard Worker * yuv_format: YUV layout for the Type 105*344a7f5eSAndroid Build Coastguard Worker */ 106*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 24)) 107*344a7f5eSAndroid Build Coastguard Workerextern rs_type __attribute__((overloadable)) 108*344a7f5eSAndroid Build Coastguard Worker rsCreateType(rs_element element, uint32_t dimX, uint32_t dimY, uint32_t dimZ, bool mipmaps, 109*344a7f5eSAndroid Build Coastguard Worker bool faces, rs_yuv_format yuv_format); 110*344a7f5eSAndroid Build Coastguard Worker#endif 111*344a7f5eSAndroid Build Coastguard Worker 112*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 24)) 113*344a7f5eSAndroid Build Coastguard Workerextern rs_type __attribute__((overloadable)) 114*344a7f5eSAndroid Build Coastguard Worker rsCreateType(rs_element element, uint32_t dimX, uint32_t dimY, uint32_t dimZ); 115*344a7f5eSAndroid Build Coastguard Worker#endif 116*344a7f5eSAndroid Build Coastguard Worker 117*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 24)) 118*344a7f5eSAndroid Build Coastguard Workerextern rs_type __attribute__((overloadable)) 119*344a7f5eSAndroid Build Coastguard Worker rsCreateType(rs_element element, uint32_t dimX, uint32_t dimY); 120*344a7f5eSAndroid Build Coastguard Worker#endif 121*344a7f5eSAndroid Build Coastguard Worker 122*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 24)) 123*344a7f5eSAndroid Build Coastguard Workerextern rs_type __attribute__((overloadable)) 124*344a7f5eSAndroid Build Coastguard Worker rsCreateType(rs_element element, uint32_t dimX); 125*344a7f5eSAndroid Build Coastguard Worker#endif 126*344a7f5eSAndroid Build Coastguard Worker 127*344a7f5eSAndroid Build Coastguard Worker/* 128*344a7f5eSAndroid Build Coastguard Worker * rsCreateAllocation: Create an rs_allocation object of given Type. 129*344a7f5eSAndroid Build Coastguard Worker * 130*344a7f5eSAndroid Build Coastguard Worker * Creates an rs_allocation object of the given Type and usage. 131*344a7f5eSAndroid Build Coastguard Worker * 132*344a7f5eSAndroid Build Coastguard Worker * RS_ALLOCATION_USAGE_SCRIPT and RS_ALLOCATION_USAGE_GRAPHICS_TEXTURE are the 133*344a7f5eSAndroid Build Coastguard Worker * only supported usage flags for Allocations created from within a RenderScript 134*344a7f5eSAndroid Build Coastguard Worker * Script. 135*344a7f5eSAndroid Build Coastguard Worker * 136*344a7f5eSAndroid Build Coastguard Worker * You can also use rsCreateAllocation_ wrapper functions to directly 137*344a7f5eSAndroid Build Coastguard Worker * create Allocations of scalar and vector numerical types without creating 138*344a7f5eSAndroid Build Coastguard Worker * intermediate rs_element or rs_type objects. 139*344a7f5eSAndroid Build Coastguard Worker * 140*344a7f5eSAndroid Build Coastguard Worker * E.g. rsCreateAllocation_int4() returns an Allocation of int4 data type of 141*344a7f5eSAndroid Build Coastguard Worker * specified dimensions. 142*344a7f5eSAndroid Build Coastguard Worker * 143*344a7f5eSAndroid Build Coastguard Worker * Parameters: 144*344a7f5eSAndroid Build Coastguard Worker * type: Type of the Allocation 145*344a7f5eSAndroid Build Coastguard Worker * usage: Usage flag for the allocation 146*344a7f5eSAndroid Build Coastguard Worker */ 147*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 24)) 148*344a7f5eSAndroid Build Coastguard Workerextern rs_allocation __attribute__((overloadable)) 149*344a7f5eSAndroid Build Coastguard Worker rsCreateAllocation(rs_type type, uint32_t usage); 150*344a7f5eSAndroid Build Coastguard Worker#endif 151*344a7f5eSAndroid Build Coastguard Worker 152*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 24)) 153*344a7f5eSAndroid Build Coastguard Workerextern rs_allocation __attribute__((overloadable)) 154*344a7f5eSAndroid Build Coastguard Worker rsCreateAllocation(rs_type type); 155*344a7f5eSAndroid Build Coastguard Worker#endif 156*344a7f5eSAndroid Build Coastguard Worker 157*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 24)) 158*344a7f5eSAndroid Build Coastguard Workerstatic inline rs_allocation __attribute__((overloadable)) 159*344a7f5eSAndroid Build Coastguard Worker rsCreateAllocation_half(uint32_t dimX, uint32_t dimY, uint32_t dimZ) { 160*344a7f5eSAndroid Build Coastguard Worker rs_element e = rsCreateElement(RS_TYPE_FLOAT_16); 161*344a7f5eSAndroid Build Coastguard Worker rs_type t = rsCreateType(e, dimX, dimY, dimZ); 162*344a7f5eSAndroid Build Coastguard Worker return rsCreateAllocation(t); 163*344a7f5eSAndroid Build Coastguard Worker} 164*344a7f5eSAndroid Build Coastguard Worker#endif 165*344a7f5eSAndroid Build Coastguard Worker 166*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 24)) 167*344a7f5eSAndroid Build Coastguard Workerstatic inline rs_allocation __attribute__((overloadable)) 168*344a7f5eSAndroid Build Coastguard Worker rsCreateAllocation_float(uint32_t dimX, uint32_t dimY, uint32_t dimZ) { 169*344a7f5eSAndroid Build Coastguard Worker rs_element e = rsCreateElement(RS_TYPE_FLOAT_32); 170*344a7f5eSAndroid Build Coastguard Worker rs_type t = rsCreateType(e, dimX, dimY, dimZ); 171*344a7f5eSAndroid Build Coastguard Worker return rsCreateAllocation(t); 172*344a7f5eSAndroid Build Coastguard Worker} 173*344a7f5eSAndroid Build Coastguard Worker#endif 174*344a7f5eSAndroid Build Coastguard Worker 175*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 24)) 176*344a7f5eSAndroid Build Coastguard Workerstatic inline rs_allocation __attribute__((overloadable)) 177*344a7f5eSAndroid Build Coastguard Worker rsCreateAllocation_double(uint32_t dimX, uint32_t dimY, uint32_t dimZ) { 178*344a7f5eSAndroid Build Coastguard Worker rs_element e = rsCreateElement(RS_TYPE_FLOAT_64); 179*344a7f5eSAndroid Build Coastguard Worker rs_type t = rsCreateType(e, dimX, dimY, dimZ); 180*344a7f5eSAndroid Build Coastguard Worker return rsCreateAllocation(t); 181*344a7f5eSAndroid Build Coastguard Worker} 182*344a7f5eSAndroid Build Coastguard Worker#endif 183*344a7f5eSAndroid Build Coastguard Worker 184*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 24)) 185*344a7f5eSAndroid Build Coastguard Workerstatic inline rs_allocation __attribute__((overloadable)) 186*344a7f5eSAndroid Build Coastguard Worker rsCreateAllocation_char(uint32_t dimX, uint32_t dimY, uint32_t dimZ) { 187*344a7f5eSAndroid Build Coastguard Worker rs_element e = rsCreateElement(RS_TYPE_SIGNED_8); 188*344a7f5eSAndroid Build Coastguard Worker rs_type t = rsCreateType(e, dimX, dimY, dimZ); 189*344a7f5eSAndroid Build Coastguard Worker return rsCreateAllocation(t); 190*344a7f5eSAndroid Build Coastguard Worker} 191*344a7f5eSAndroid Build Coastguard Worker#endif 192*344a7f5eSAndroid Build Coastguard Worker 193*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 24)) 194*344a7f5eSAndroid Build Coastguard Workerstatic inline rs_allocation __attribute__((overloadable)) 195*344a7f5eSAndroid Build Coastguard Worker rsCreateAllocation_uchar(uint32_t dimX, uint32_t dimY, uint32_t dimZ) { 196*344a7f5eSAndroid Build Coastguard Worker rs_element e = rsCreateElement(RS_TYPE_UNSIGNED_8); 197*344a7f5eSAndroid Build Coastguard Worker rs_type t = rsCreateType(e, dimX, dimY, dimZ); 198*344a7f5eSAndroid Build Coastguard Worker return rsCreateAllocation(t); 199*344a7f5eSAndroid Build Coastguard Worker} 200*344a7f5eSAndroid Build Coastguard Worker#endif 201*344a7f5eSAndroid Build Coastguard Worker 202*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 24)) 203*344a7f5eSAndroid Build Coastguard Workerstatic inline rs_allocation __attribute__((overloadable)) 204*344a7f5eSAndroid Build Coastguard Worker rsCreateAllocation_short(uint32_t dimX, uint32_t dimY, uint32_t dimZ) { 205*344a7f5eSAndroid Build Coastguard Worker rs_element e = rsCreateElement(RS_TYPE_SIGNED_16); 206*344a7f5eSAndroid Build Coastguard Worker rs_type t = rsCreateType(e, dimX, dimY, dimZ); 207*344a7f5eSAndroid Build Coastguard Worker return rsCreateAllocation(t); 208*344a7f5eSAndroid Build Coastguard Worker} 209*344a7f5eSAndroid Build Coastguard Worker#endif 210*344a7f5eSAndroid Build Coastguard Worker 211*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 24)) 212*344a7f5eSAndroid Build Coastguard Workerstatic inline rs_allocation __attribute__((overloadable)) 213*344a7f5eSAndroid Build Coastguard Worker rsCreateAllocation_ushort(uint32_t dimX, uint32_t dimY, uint32_t dimZ) { 214*344a7f5eSAndroid Build Coastguard Worker rs_element e = rsCreateElement(RS_TYPE_UNSIGNED_16); 215*344a7f5eSAndroid Build Coastguard Worker rs_type t = rsCreateType(e, dimX, dimY, dimZ); 216*344a7f5eSAndroid Build Coastguard Worker return rsCreateAllocation(t); 217*344a7f5eSAndroid Build Coastguard Worker} 218*344a7f5eSAndroid Build Coastguard Worker#endif 219*344a7f5eSAndroid Build Coastguard Worker 220*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 24)) 221*344a7f5eSAndroid Build Coastguard Workerstatic inline rs_allocation __attribute__((overloadable)) 222*344a7f5eSAndroid Build Coastguard Worker rsCreateAllocation_int(uint32_t dimX, uint32_t dimY, uint32_t dimZ) { 223*344a7f5eSAndroid Build Coastguard Worker rs_element e = rsCreateElement(RS_TYPE_SIGNED_32); 224*344a7f5eSAndroid Build Coastguard Worker rs_type t = rsCreateType(e, dimX, dimY, dimZ); 225*344a7f5eSAndroid Build Coastguard Worker return rsCreateAllocation(t); 226*344a7f5eSAndroid Build Coastguard Worker} 227*344a7f5eSAndroid Build Coastguard Worker#endif 228*344a7f5eSAndroid Build Coastguard Worker 229*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 24)) 230*344a7f5eSAndroid Build Coastguard Workerstatic inline rs_allocation __attribute__((overloadable)) 231*344a7f5eSAndroid Build Coastguard Worker rsCreateAllocation_uint(uint32_t dimX, uint32_t dimY, uint32_t dimZ) { 232*344a7f5eSAndroid Build Coastguard Worker rs_element e = rsCreateElement(RS_TYPE_UNSIGNED_32); 233*344a7f5eSAndroid Build Coastguard Worker rs_type t = rsCreateType(e, dimX, dimY, dimZ); 234*344a7f5eSAndroid Build Coastguard Worker return rsCreateAllocation(t); 235*344a7f5eSAndroid Build Coastguard Worker} 236*344a7f5eSAndroid Build Coastguard Worker#endif 237*344a7f5eSAndroid Build Coastguard Worker 238*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 24)) 239*344a7f5eSAndroid Build Coastguard Workerstatic inline rs_allocation __attribute__((overloadable)) 240*344a7f5eSAndroid Build Coastguard Worker rsCreateAllocation_long(uint32_t dimX, uint32_t dimY, uint32_t dimZ) { 241*344a7f5eSAndroid Build Coastguard Worker rs_element e = rsCreateElement(RS_TYPE_SIGNED_64); 242*344a7f5eSAndroid Build Coastguard Worker rs_type t = rsCreateType(e, dimX, dimY, dimZ); 243*344a7f5eSAndroid Build Coastguard Worker return rsCreateAllocation(t); 244*344a7f5eSAndroid Build Coastguard Worker} 245*344a7f5eSAndroid Build Coastguard Worker#endif 246*344a7f5eSAndroid Build Coastguard Worker 247*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 24)) 248*344a7f5eSAndroid Build Coastguard Workerstatic inline rs_allocation __attribute__((overloadable)) 249*344a7f5eSAndroid Build Coastguard Worker rsCreateAllocation_ulong(uint32_t dimX, uint32_t dimY, uint32_t dimZ) { 250*344a7f5eSAndroid Build Coastguard Worker rs_element e = rsCreateElement(RS_TYPE_UNSIGNED_64); 251*344a7f5eSAndroid Build Coastguard Worker rs_type t = rsCreateType(e, dimX, dimY, dimZ); 252*344a7f5eSAndroid Build Coastguard Worker return rsCreateAllocation(t); 253*344a7f5eSAndroid Build Coastguard Worker} 254*344a7f5eSAndroid Build Coastguard Worker#endif 255*344a7f5eSAndroid Build Coastguard Worker 256*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 24)) 257*344a7f5eSAndroid Build Coastguard Workerstatic inline rs_allocation __attribute__((overloadable)) 258*344a7f5eSAndroid Build Coastguard Worker rsCreateAllocation_half2(uint32_t dimX, uint32_t dimY, uint32_t dimZ) { 259*344a7f5eSAndroid Build Coastguard Worker rs_element e = rsCreateVectorElement(RS_TYPE_FLOAT_16, 2); 260*344a7f5eSAndroid Build Coastguard Worker rs_type t = rsCreateType(e, dimX, dimY, dimZ); 261*344a7f5eSAndroid Build Coastguard Worker return rsCreateAllocation(t); 262*344a7f5eSAndroid Build Coastguard Worker} 263*344a7f5eSAndroid Build Coastguard Worker#endif 264*344a7f5eSAndroid Build Coastguard Worker 265*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 24)) 266*344a7f5eSAndroid Build Coastguard Workerstatic inline rs_allocation __attribute__((overloadable)) 267*344a7f5eSAndroid Build Coastguard Worker rsCreateAllocation_half3(uint32_t dimX, uint32_t dimY, uint32_t dimZ) { 268*344a7f5eSAndroid Build Coastguard Worker rs_element e = rsCreateVectorElement(RS_TYPE_FLOAT_16, 3); 269*344a7f5eSAndroid Build Coastguard Worker rs_type t = rsCreateType(e, dimX, dimY, dimZ); 270*344a7f5eSAndroid Build Coastguard Worker return rsCreateAllocation(t); 271*344a7f5eSAndroid Build Coastguard Worker} 272*344a7f5eSAndroid Build Coastguard Worker#endif 273*344a7f5eSAndroid Build Coastguard Worker 274*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 24)) 275*344a7f5eSAndroid Build Coastguard Workerstatic inline rs_allocation __attribute__((overloadable)) 276*344a7f5eSAndroid Build Coastguard Worker rsCreateAllocation_half4(uint32_t dimX, uint32_t dimY, uint32_t dimZ) { 277*344a7f5eSAndroid Build Coastguard Worker rs_element e = rsCreateVectorElement(RS_TYPE_FLOAT_16, 4); 278*344a7f5eSAndroid Build Coastguard Worker rs_type t = rsCreateType(e, dimX, dimY, dimZ); 279*344a7f5eSAndroid Build Coastguard Worker return rsCreateAllocation(t); 280*344a7f5eSAndroid Build Coastguard Worker} 281*344a7f5eSAndroid Build Coastguard Worker#endif 282*344a7f5eSAndroid Build Coastguard Worker 283*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 24)) 284*344a7f5eSAndroid Build Coastguard Workerstatic inline rs_allocation __attribute__((overloadable)) 285*344a7f5eSAndroid Build Coastguard Worker rsCreateAllocation_float2(uint32_t dimX, uint32_t dimY, uint32_t dimZ) { 286*344a7f5eSAndroid Build Coastguard Worker rs_element e = rsCreateVectorElement(RS_TYPE_FLOAT_32, 2); 287*344a7f5eSAndroid Build Coastguard Worker rs_type t = rsCreateType(e, dimX, dimY, dimZ); 288*344a7f5eSAndroid Build Coastguard Worker return rsCreateAllocation(t); 289*344a7f5eSAndroid Build Coastguard Worker} 290*344a7f5eSAndroid Build Coastguard Worker#endif 291*344a7f5eSAndroid Build Coastguard Worker 292*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 24)) 293*344a7f5eSAndroid Build Coastguard Workerstatic inline rs_allocation __attribute__((overloadable)) 294*344a7f5eSAndroid Build Coastguard Worker rsCreateAllocation_float3(uint32_t dimX, uint32_t dimY, uint32_t dimZ) { 295*344a7f5eSAndroid Build Coastguard Worker rs_element e = rsCreateVectorElement(RS_TYPE_FLOAT_32, 3); 296*344a7f5eSAndroid Build Coastguard Worker rs_type t = rsCreateType(e, dimX, dimY, dimZ); 297*344a7f5eSAndroid Build Coastguard Worker return rsCreateAllocation(t); 298*344a7f5eSAndroid Build Coastguard Worker} 299*344a7f5eSAndroid Build Coastguard Worker#endif 300*344a7f5eSAndroid Build Coastguard Worker 301*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 24)) 302*344a7f5eSAndroid Build Coastguard Workerstatic inline rs_allocation __attribute__((overloadable)) 303*344a7f5eSAndroid Build Coastguard Worker rsCreateAllocation_float4(uint32_t dimX, uint32_t dimY, uint32_t dimZ) { 304*344a7f5eSAndroid Build Coastguard Worker rs_element e = rsCreateVectorElement(RS_TYPE_FLOAT_32, 4); 305*344a7f5eSAndroid Build Coastguard Worker rs_type t = rsCreateType(e, dimX, dimY, dimZ); 306*344a7f5eSAndroid Build Coastguard Worker return rsCreateAllocation(t); 307*344a7f5eSAndroid Build Coastguard Worker} 308*344a7f5eSAndroid Build Coastguard Worker#endif 309*344a7f5eSAndroid Build Coastguard Worker 310*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 24)) 311*344a7f5eSAndroid Build Coastguard Workerstatic inline rs_allocation __attribute__((overloadable)) 312*344a7f5eSAndroid Build Coastguard Worker rsCreateAllocation_double2(uint32_t dimX, uint32_t dimY, uint32_t dimZ) { 313*344a7f5eSAndroid Build Coastguard Worker rs_element e = rsCreateVectorElement(RS_TYPE_FLOAT_64, 2); 314*344a7f5eSAndroid Build Coastguard Worker rs_type t = rsCreateType(e, dimX, dimY, dimZ); 315*344a7f5eSAndroid Build Coastguard Worker return rsCreateAllocation(t); 316*344a7f5eSAndroid Build Coastguard Worker} 317*344a7f5eSAndroid Build Coastguard Worker#endif 318*344a7f5eSAndroid Build Coastguard Worker 319*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 24)) 320*344a7f5eSAndroid Build Coastguard Workerstatic inline rs_allocation __attribute__((overloadable)) 321*344a7f5eSAndroid Build Coastguard Worker rsCreateAllocation_double3(uint32_t dimX, uint32_t dimY, uint32_t dimZ) { 322*344a7f5eSAndroid Build Coastguard Worker rs_element e = rsCreateVectorElement(RS_TYPE_FLOAT_64, 3); 323*344a7f5eSAndroid Build Coastguard Worker rs_type t = rsCreateType(e, dimX, dimY, dimZ); 324*344a7f5eSAndroid Build Coastguard Worker return rsCreateAllocation(t); 325*344a7f5eSAndroid Build Coastguard Worker} 326*344a7f5eSAndroid Build Coastguard Worker#endif 327*344a7f5eSAndroid Build Coastguard Worker 328*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 24)) 329*344a7f5eSAndroid Build Coastguard Workerstatic inline rs_allocation __attribute__((overloadable)) 330*344a7f5eSAndroid Build Coastguard Worker rsCreateAllocation_double4(uint32_t dimX, uint32_t dimY, uint32_t dimZ) { 331*344a7f5eSAndroid Build Coastguard Worker rs_element e = rsCreateVectorElement(RS_TYPE_FLOAT_64, 4); 332*344a7f5eSAndroid Build Coastguard Worker rs_type t = rsCreateType(e, dimX, dimY, dimZ); 333*344a7f5eSAndroid Build Coastguard Worker return rsCreateAllocation(t); 334*344a7f5eSAndroid Build Coastguard Worker} 335*344a7f5eSAndroid Build Coastguard Worker#endif 336*344a7f5eSAndroid Build Coastguard Worker 337*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 24)) 338*344a7f5eSAndroid Build Coastguard Workerstatic inline rs_allocation __attribute__((overloadable)) 339*344a7f5eSAndroid Build Coastguard Worker rsCreateAllocation_char2(uint32_t dimX, uint32_t dimY, uint32_t dimZ) { 340*344a7f5eSAndroid Build Coastguard Worker rs_element e = rsCreateVectorElement(RS_TYPE_SIGNED_8, 2); 341*344a7f5eSAndroid Build Coastguard Worker rs_type t = rsCreateType(e, dimX, dimY, dimZ); 342*344a7f5eSAndroid Build Coastguard Worker return rsCreateAllocation(t); 343*344a7f5eSAndroid Build Coastguard Worker} 344*344a7f5eSAndroid Build Coastguard Worker#endif 345*344a7f5eSAndroid Build Coastguard Worker 346*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 24)) 347*344a7f5eSAndroid Build Coastguard Workerstatic inline rs_allocation __attribute__((overloadable)) 348*344a7f5eSAndroid Build Coastguard Worker rsCreateAllocation_char3(uint32_t dimX, uint32_t dimY, uint32_t dimZ) { 349*344a7f5eSAndroid Build Coastguard Worker rs_element e = rsCreateVectorElement(RS_TYPE_SIGNED_8, 3); 350*344a7f5eSAndroid Build Coastguard Worker rs_type t = rsCreateType(e, dimX, dimY, dimZ); 351*344a7f5eSAndroid Build Coastguard Worker return rsCreateAllocation(t); 352*344a7f5eSAndroid Build Coastguard Worker} 353*344a7f5eSAndroid Build Coastguard Worker#endif 354*344a7f5eSAndroid Build Coastguard Worker 355*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 24)) 356*344a7f5eSAndroid Build Coastguard Workerstatic inline rs_allocation __attribute__((overloadable)) 357*344a7f5eSAndroid Build Coastguard Worker rsCreateAllocation_char4(uint32_t dimX, uint32_t dimY, uint32_t dimZ) { 358*344a7f5eSAndroid Build Coastguard Worker rs_element e = rsCreateVectorElement(RS_TYPE_SIGNED_8, 4); 359*344a7f5eSAndroid Build Coastguard Worker rs_type t = rsCreateType(e, dimX, dimY, dimZ); 360*344a7f5eSAndroid Build Coastguard Worker return rsCreateAllocation(t); 361*344a7f5eSAndroid Build Coastguard Worker} 362*344a7f5eSAndroid Build Coastguard Worker#endif 363*344a7f5eSAndroid Build Coastguard Worker 364*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 24)) 365*344a7f5eSAndroid Build Coastguard Workerstatic inline rs_allocation __attribute__((overloadable)) 366*344a7f5eSAndroid Build Coastguard Worker rsCreateAllocation_uchar2(uint32_t dimX, uint32_t dimY, uint32_t dimZ) { 367*344a7f5eSAndroid Build Coastguard Worker rs_element e = rsCreateVectorElement(RS_TYPE_UNSIGNED_8, 2); 368*344a7f5eSAndroid Build Coastguard Worker rs_type t = rsCreateType(e, dimX, dimY, dimZ); 369*344a7f5eSAndroid Build Coastguard Worker return rsCreateAllocation(t); 370*344a7f5eSAndroid Build Coastguard Worker} 371*344a7f5eSAndroid Build Coastguard Worker#endif 372*344a7f5eSAndroid Build Coastguard Worker 373*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 24)) 374*344a7f5eSAndroid Build Coastguard Workerstatic inline rs_allocation __attribute__((overloadable)) 375*344a7f5eSAndroid Build Coastguard Worker rsCreateAllocation_uchar3(uint32_t dimX, uint32_t dimY, uint32_t dimZ) { 376*344a7f5eSAndroid Build Coastguard Worker rs_element e = rsCreateVectorElement(RS_TYPE_UNSIGNED_8, 3); 377*344a7f5eSAndroid Build Coastguard Worker rs_type t = rsCreateType(e, dimX, dimY, dimZ); 378*344a7f5eSAndroid Build Coastguard Worker return rsCreateAllocation(t); 379*344a7f5eSAndroid Build Coastguard Worker} 380*344a7f5eSAndroid Build Coastguard Worker#endif 381*344a7f5eSAndroid Build Coastguard Worker 382*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 24)) 383*344a7f5eSAndroid Build Coastguard Workerstatic inline rs_allocation __attribute__((overloadable)) 384*344a7f5eSAndroid Build Coastguard Worker rsCreateAllocation_uchar4(uint32_t dimX, uint32_t dimY, uint32_t dimZ) { 385*344a7f5eSAndroid Build Coastguard Worker rs_element e = rsCreateVectorElement(RS_TYPE_UNSIGNED_8, 4); 386*344a7f5eSAndroid Build Coastguard Worker rs_type t = rsCreateType(e, dimX, dimY, dimZ); 387*344a7f5eSAndroid Build Coastguard Worker return rsCreateAllocation(t); 388*344a7f5eSAndroid Build Coastguard Worker} 389*344a7f5eSAndroid Build Coastguard Worker#endif 390*344a7f5eSAndroid Build Coastguard Worker 391*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 24)) 392*344a7f5eSAndroid Build Coastguard Workerstatic inline rs_allocation __attribute__((overloadable)) 393*344a7f5eSAndroid Build Coastguard Worker rsCreateAllocation_short2(uint32_t dimX, uint32_t dimY, uint32_t dimZ) { 394*344a7f5eSAndroid Build Coastguard Worker rs_element e = rsCreateVectorElement(RS_TYPE_SIGNED_16, 2); 395*344a7f5eSAndroid Build Coastguard Worker rs_type t = rsCreateType(e, dimX, dimY, dimZ); 396*344a7f5eSAndroid Build Coastguard Worker return rsCreateAllocation(t); 397*344a7f5eSAndroid Build Coastguard Worker} 398*344a7f5eSAndroid Build Coastguard Worker#endif 399*344a7f5eSAndroid Build Coastguard Worker 400*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 24)) 401*344a7f5eSAndroid Build Coastguard Workerstatic inline rs_allocation __attribute__((overloadable)) 402*344a7f5eSAndroid Build Coastguard Worker rsCreateAllocation_short3(uint32_t dimX, uint32_t dimY, uint32_t dimZ) { 403*344a7f5eSAndroid Build Coastguard Worker rs_element e = rsCreateVectorElement(RS_TYPE_SIGNED_16, 3); 404*344a7f5eSAndroid Build Coastguard Worker rs_type t = rsCreateType(e, dimX, dimY, dimZ); 405*344a7f5eSAndroid Build Coastguard Worker return rsCreateAllocation(t); 406*344a7f5eSAndroid Build Coastguard Worker} 407*344a7f5eSAndroid Build Coastguard Worker#endif 408*344a7f5eSAndroid Build Coastguard Worker 409*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 24)) 410*344a7f5eSAndroid Build Coastguard Workerstatic inline rs_allocation __attribute__((overloadable)) 411*344a7f5eSAndroid Build Coastguard Worker rsCreateAllocation_short4(uint32_t dimX, uint32_t dimY, uint32_t dimZ) { 412*344a7f5eSAndroid Build Coastguard Worker rs_element e = rsCreateVectorElement(RS_TYPE_SIGNED_16, 4); 413*344a7f5eSAndroid Build Coastguard Worker rs_type t = rsCreateType(e, dimX, dimY, dimZ); 414*344a7f5eSAndroid Build Coastguard Worker return rsCreateAllocation(t); 415*344a7f5eSAndroid Build Coastguard Worker} 416*344a7f5eSAndroid Build Coastguard Worker#endif 417*344a7f5eSAndroid Build Coastguard Worker 418*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 24)) 419*344a7f5eSAndroid Build Coastguard Workerstatic inline rs_allocation __attribute__((overloadable)) 420*344a7f5eSAndroid Build Coastguard Worker rsCreateAllocation_ushort2(uint32_t dimX, uint32_t dimY, uint32_t dimZ) { 421*344a7f5eSAndroid Build Coastguard Worker rs_element e = rsCreateVectorElement(RS_TYPE_UNSIGNED_16, 2); 422*344a7f5eSAndroid Build Coastguard Worker rs_type t = rsCreateType(e, dimX, dimY, dimZ); 423*344a7f5eSAndroid Build Coastguard Worker return rsCreateAllocation(t); 424*344a7f5eSAndroid Build Coastguard Worker} 425*344a7f5eSAndroid Build Coastguard Worker#endif 426*344a7f5eSAndroid Build Coastguard Worker 427*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 24)) 428*344a7f5eSAndroid Build Coastguard Workerstatic inline rs_allocation __attribute__((overloadable)) 429*344a7f5eSAndroid Build Coastguard Worker rsCreateAllocation_ushort3(uint32_t dimX, uint32_t dimY, uint32_t dimZ) { 430*344a7f5eSAndroid Build Coastguard Worker rs_element e = rsCreateVectorElement(RS_TYPE_UNSIGNED_16, 3); 431*344a7f5eSAndroid Build Coastguard Worker rs_type t = rsCreateType(e, dimX, dimY, dimZ); 432*344a7f5eSAndroid Build Coastguard Worker return rsCreateAllocation(t); 433*344a7f5eSAndroid Build Coastguard Worker} 434*344a7f5eSAndroid Build Coastguard Worker#endif 435*344a7f5eSAndroid Build Coastguard Worker 436*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 24)) 437*344a7f5eSAndroid Build Coastguard Workerstatic inline rs_allocation __attribute__((overloadable)) 438*344a7f5eSAndroid Build Coastguard Worker rsCreateAllocation_ushort4(uint32_t dimX, uint32_t dimY, uint32_t dimZ) { 439*344a7f5eSAndroid Build Coastguard Worker rs_element e = rsCreateVectorElement(RS_TYPE_UNSIGNED_16, 4); 440*344a7f5eSAndroid Build Coastguard Worker rs_type t = rsCreateType(e, dimX, dimY, dimZ); 441*344a7f5eSAndroid Build Coastguard Worker return rsCreateAllocation(t); 442*344a7f5eSAndroid Build Coastguard Worker} 443*344a7f5eSAndroid Build Coastguard Worker#endif 444*344a7f5eSAndroid Build Coastguard Worker 445*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 24)) 446*344a7f5eSAndroid Build Coastguard Workerstatic inline rs_allocation __attribute__((overloadable)) 447*344a7f5eSAndroid Build Coastguard Worker rsCreateAllocation_int2(uint32_t dimX, uint32_t dimY, uint32_t dimZ) { 448*344a7f5eSAndroid Build Coastguard Worker rs_element e = rsCreateVectorElement(RS_TYPE_SIGNED_32, 2); 449*344a7f5eSAndroid Build Coastguard Worker rs_type t = rsCreateType(e, dimX, dimY, dimZ); 450*344a7f5eSAndroid Build Coastguard Worker return rsCreateAllocation(t); 451*344a7f5eSAndroid Build Coastguard Worker} 452*344a7f5eSAndroid Build Coastguard Worker#endif 453*344a7f5eSAndroid Build Coastguard Worker 454*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 24)) 455*344a7f5eSAndroid Build Coastguard Workerstatic inline rs_allocation __attribute__((overloadable)) 456*344a7f5eSAndroid Build Coastguard Worker rsCreateAllocation_int3(uint32_t dimX, uint32_t dimY, uint32_t dimZ) { 457*344a7f5eSAndroid Build Coastguard Worker rs_element e = rsCreateVectorElement(RS_TYPE_SIGNED_32, 3); 458*344a7f5eSAndroid Build Coastguard Worker rs_type t = rsCreateType(e, dimX, dimY, dimZ); 459*344a7f5eSAndroid Build Coastguard Worker return rsCreateAllocation(t); 460*344a7f5eSAndroid Build Coastguard Worker} 461*344a7f5eSAndroid Build Coastguard Worker#endif 462*344a7f5eSAndroid Build Coastguard Worker 463*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 24)) 464*344a7f5eSAndroid Build Coastguard Workerstatic inline rs_allocation __attribute__((overloadable)) 465*344a7f5eSAndroid Build Coastguard Worker rsCreateAllocation_int4(uint32_t dimX, uint32_t dimY, uint32_t dimZ) { 466*344a7f5eSAndroid Build Coastguard Worker rs_element e = rsCreateVectorElement(RS_TYPE_SIGNED_32, 4); 467*344a7f5eSAndroid Build Coastguard Worker rs_type t = rsCreateType(e, dimX, dimY, dimZ); 468*344a7f5eSAndroid Build Coastguard Worker return rsCreateAllocation(t); 469*344a7f5eSAndroid Build Coastguard Worker} 470*344a7f5eSAndroid Build Coastguard Worker#endif 471*344a7f5eSAndroid Build Coastguard Worker 472*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 24)) 473*344a7f5eSAndroid Build Coastguard Workerstatic inline rs_allocation __attribute__((overloadable)) 474*344a7f5eSAndroid Build Coastguard Worker rsCreateAllocation_uint2(uint32_t dimX, uint32_t dimY, uint32_t dimZ) { 475*344a7f5eSAndroid Build Coastguard Worker rs_element e = rsCreateVectorElement(RS_TYPE_UNSIGNED_32, 2); 476*344a7f5eSAndroid Build Coastguard Worker rs_type t = rsCreateType(e, dimX, dimY, dimZ); 477*344a7f5eSAndroid Build Coastguard Worker return rsCreateAllocation(t); 478*344a7f5eSAndroid Build Coastguard Worker} 479*344a7f5eSAndroid Build Coastguard Worker#endif 480*344a7f5eSAndroid Build Coastguard Worker 481*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 24)) 482*344a7f5eSAndroid Build Coastguard Workerstatic inline rs_allocation __attribute__((overloadable)) 483*344a7f5eSAndroid Build Coastguard Worker rsCreateAllocation_uint3(uint32_t dimX, uint32_t dimY, uint32_t dimZ) { 484*344a7f5eSAndroid Build Coastguard Worker rs_element e = rsCreateVectorElement(RS_TYPE_UNSIGNED_32, 3); 485*344a7f5eSAndroid Build Coastguard Worker rs_type t = rsCreateType(e, dimX, dimY, dimZ); 486*344a7f5eSAndroid Build Coastguard Worker return rsCreateAllocation(t); 487*344a7f5eSAndroid Build Coastguard Worker} 488*344a7f5eSAndroid Build Coastguard Worker#endif 489*344a7f5eSAndroid Build Coastguard Worker 490*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 24)) 491*344a7f5eSAndroid Build Coastguard Workerstatic inline rs_allocation __attribute__((overloadable)) 492*344a7f5eSAndroid Build Coastguard Worker rsCreateAllocation_uint4(uint32_t dimX, uint32_t dimY, uint32_t dimZ) { 493*344a7f5eSAndroid Build Coastguard Worker rs_element e = rsCreateVectorElement(RS_TYPE_UNSIGNED_32, 4); 494*344a7f5eSAndroid Build Coastguard Worker rs_type t = rsCreateType(e, dimX, dimY, dimZ); 495*344a7f5eSAndroid Build Coastguard Worker return rsCreateAllocation(t); 496*344a7f5eSAndroid Build Coastguard Worker} 497*344a7f5eSAndroid Build Coastguard Worker#endif 498*344a7f5eSAndroid Build Coastguard Worker 499*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 24)) 500*344a7f5eSAndroid Build Coastguard Workerstatic inline rs_allocation __attribute__((overloadable)) 501*344a7f5eSAndroid Build Coastguard Worker rsCreateAllocation_long2(uint32_t dimX, uint32_t dimY, uint32_t dimZ) { 502*344a7f5eSAndroid Build Coastguard Worker rs_element e = rsCreateVectorElement(RS_TYPE_SIGNED_64, 2); 503*344a7f5eSAndroid Build Coastguard Worker rs_type t = rsCreateType(e, dimX, dimY, dimZ); 504*344a7f5eSAndroid Build Coastguard Worker return rsCreateAllocation(t); 505*344a7f5eSAndroid Build Coastguard Worker} 506*344a7f5eSAndroid Build Coastguard Worker#endif 507*344a7f5eSAndroid Build Coastguard Worker 508*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 24)) 509*344a7f5eSAndroid Build Coastguard Workerstatic inline rs_allocation __attribute__((overloadable)) 510*344a7f5eSAndroid Build Coastguard Worker rsCreateAllocation_long3(uint32_t dimX, uint32_t dimY, uint32_t dimZ) { 511*344a7f5eSAndroid Build Coastguard Worker rs_element e = rsCreateVectorElement(RS_TYPE_SIGNED_64, 3); 512*344a7f5eSAndroid Build Coastguard Worker rs_type t = rsCreateType(e, dimX, dimY, dimZ); 513*344a7f5eSAndroid Build Coastguard Worker return rsCreateAllocation(t); 514*344a7f5eSAndroid Build Coastguard Worker} 515*344a7f5eSAndroid Build Coastguard Worker#endif 516*344a7f5eSAndroid Build Coastguard Worker 517*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 24)) 518*344a7f5eSAndroid Build Coastguard Workerstatic inline rs_allocation __attribute__((overloadable)) 519*344a7f5eSAndroid Build Coastguard Worker rsCreateAllocation_long4(uint32_t dimX, uint32_t dimY, uint32_t dimZ) { 520*344a7f5eSAndroid Build Coastguard Worker rs_element e = rsCreateVectorElement(RS_TYPE_SIGNED_64, 4); 521*344a7f5eSAndroid Build Coastguard Worker rs_type t = rsCreateType(e, dimX, dimY, dimZ); 522*344a7f5eSAndroid Build Coastguard Worker return rsCreateAllocation(t); 523*344a7f5eSAndroid Build Coastguard Worker} 524*344a7f5eSAndroid Build Coastguard Worker#endif 525*344a7f5eSAndroid Build Coastguard Worker 526*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 24)) 527*344a7f5eSAndroid Build Coastguard Workerstatic inline rs_allocation __attribute__((overloadable)) 528*344a7f5eSAndroid Build Coastguard Worker rsCreateAllocation_ulong2(uint32_t dimX, uint32_t dimY, uint32_t dimZ) { 529*344a7f5eSAndroid Build Coastguard Worker rs_element e = rsCreateVectorElement(RS_TYPE_UNSIGNED_64, 2); 530*344a7f5eSAndroid Build Coastguard Worker rs_type t = rsCreateType(e, dimX, dimY, dimZ); 531*344a7f5eSAndroid Build Coastguard Worker return rsCreateAllocation(t); 532*344a7f5eSAndroid Build Coastguard Worker} 533*344a7f5eSAndroid Build Coastguard Worker#endif 534*344a7f5eSAndroid Build Coastguard Worker 535*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 24)) 536*344a7f5eSAndroid Build Coastguard Workerstatic inline rs_allocation __attribute__((overloadable)) 537*344a7f5eSAndroid Build Coastguard Worker rsCreateAllocation_ulong3(uint32_t dimX, uint32_t dimY, uint32_t dimZ) { 538*344a7f5eSAndroid Build Coastguard Worker rs_element e = rsCreateVectorElement(RS_TYPE_UNSIGNED_64, 3); 539*344a7f5eSAndroid Build Coastguard Worker rs_type t = rsCreateType(e, dimX, dimY, dimZ); 540*344a7f5eSAndroid Build Coastguard Worker return rsCreateAllocation(t); 541*344a7f5eSAndroid Build Coastguard Worker} 542*344a7f5eSAndroid Build Coastguard Worker#endif 543*344a7f5eSAndroid Build Coastguard Worker 544*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 24)) 545*344a7f5eSAndroid Build Coastguard Workerstatic inline rs_allocation __attribute__((overloadable)) 546*344a7f5eSAndroid Build Coastguard Worker rsCreateAllocation_ulong4(uint32_t dimX, uint32_t dimY, uint32_t dimZ) { 547*344a7f5eSAndroid Build Coastguard Worker rs_element e = rsCreateVectorElement(RS_TYPE_UNSIGNED_64, 4); 548*344a7f5eSAndroid Build Coastguard Worker rs_type t = rsCreateType(e, dimX, dimY, dimZ); 549*344a7f5eSAndroid Build Coastguard Worker return rsCreateAllocation(t); 550*344a7f5eSAndroid Build Coastguard Worker} 551*344a7f5eSAndroid Build Coastguard Worker#endif 552*344a7f5eSAndroid Build Coastguard Worker 553*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 24)) 554*344a7f5eSAndroid Build Coastguard Workerstatic inline rs_allocation __attribute__((overloadable)) 555*344a7f5eSAndroid Build Coastguard Worker rsCreateAllocation_half(uint32_t dimX, uint32_t dimY) { 556*344a7f5eSAndroid Build Coastguard Worker rs_element e = rsCreateElement(RS_TYPE_FLOAT_16); 557*344a7f5eSAndroid Build Coastguard Worker rs_type t = rsCreateType(e, dimX, dimY); 558*344a7f5eSAndroid Build Coastguard Worker return rsCreateAllocation(t); 559*344a7f5eSAndroid Build Coastguard Worker} 560*344a7f5eSAndroid Build Coastguard Worker#endif 561*344a7f5eSAndroid Build Coastguard Worker 562*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 24)) 563*344a7f5eSAndroid Build Coastguard Workerstatic inline rs_allocation __attribute__((overloadable)) 564*344a7f5eSAndroid Build Coastguard Worker rsCreateAllocation_float(uint32_t dimX, uint32_t dimY) { 565*344a7f5eSAndroid Build Coastguard Worker rs_element e = rsCreateElement(RS_TYPE_FLOAT_32); 566*344a7f5eSAndroid Build Coastguard Worker rs_type t = rsCreateType(e, dimX, dimY); 567*344a7f5eSAndroid Build Coastguard Worker return rsCreateAllocation(t); 568*344a7f5eSAndroid Build Coastguard Worker} 569*344a7f5eSAndroid Build Coastguard Worker#endif 570*344a7f5eSAndroid Build Coastguard Worker 571*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 24)) 572*344a7f5eSAndroid Build Coastguard Workerstatic inline rs_allocation __attribute__((overloadable)) 573*344a7f5eSAndroid Build Coastguard Worker rsCreateAllocation_double(uint32_t dimX, uint32_t dimY) { 574*344a7f5eSAndroid Build Coastguard Worker rs_element e = rsCreateElement(RS_TYPE_FLOAT_64); 575*344a7f5eSAndroid Build Coastguard Worker rs_type t = rsCreateType(e, dimX, dimY); 576*344a7f5eSAndroid Build Coastguard Worker return rsCreateAllocation(t); 577*344a7f5eSAndroid Build Coastguard Worker} 578*344a7f5eSAndroid Build Coastguard Worker#endif 579*344a7f5eSAndroid Build Coastguard Worker 580*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 24)) 581*344a7f5eSAndroid Build Coastguard Workerstatic inline rs_allocation __attribute__((overloadable)) 582*344a7f5eSAndroid Build Coastguard Worker rsCreateAllocation_char(uint32_t dimX, uint32_t dimY) { 583*344a7f5eSAndroid Build Coastguard Worker rs_element e = rsCreateElement(RS_TYPE_SIGNED_8); 584*344a7f5eSAndroid Build Coastguard Worker rs_type t = rsCreateType(e, dimX, dimY); 585*344a7f5eSAndroid Build Coastguard Worker return rsCreateAllocation(t); 586*344a7f5eSAndroid Build Coastguard Worker} 587*344a7f5eSAndroid Build Coastguard Worker#endif 588*344a7f5eSAndroid Build Coastguard Worker 589*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 24)) 590*344a7f5eSAndroid Build Coastguard Workerstatic inline rs_allocation __attribute__((overloadable)) 591*344a7f5eSAndroid Build Coastguard Worker rsCreateAllocation_uchar(uint32_t dimX, uint32_t dimY) { 592*344a7f5eSAndroid Build Coastguard Worker rs_element e = rsCreateElement(RS_TYPE_UNSIGNED_8); 593*344a7f5eSAndroid Build Coastguard Worker rs_type t = rsCreateType(e, dimX, dimY); 594*344a7f5eSAndroid Build Coastguard Worker return rsCreateAllocation(t); 595*344a7f5eSAndroid Build Coastguard Worker} 596*344a7f5eSAndroid Build Coastguard Worker#endif 597*344a7f5eSAndroid Build Coastguard Worker 598*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 24)) 599*344a7f5eSAndroid Build Coastguard Workerstatic inline rs_allocation __attribute__((overloadable)) 600*344a7f5eSAndroid Build Coastguard Worker rsCreateAllocation_short(uint32_t dimX, uint32_t dimY) { 601*344a7f5eSAndroid Build Coastguard Worker rs_element e = rsCreateElement(RS_TYPE_SIGNED_16); 602*344a7f5eSAndroid Build Coastguard Worker rs_type t = rsCreateType(e, dimX, dimY); 603*344a7f5eSAndroid Build Coastguard Worker return rsCreateAllocation(t); 604*344a7f5eSAndroid Build Coastguard Worker} 605*344a7f5eSAndroid Build Coastguard Worker#endif 606*344a7f5eSAndroid Build Coastguard Worker 607*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 24)) 608*344a7f5eSAndroid Build Coastguard Workerstatic inline rs_allocation __attribute__((overloadable)) 609*344a7f5eSAndroid Build Coastguard Worker rsCreateAllocation_ushort(uint32_t dimX, uint32_t dimY) { 610*344a7f5eSAndroid Build Coastguard Worker rs_element e = rsCreateElement(RS_TYPE_UNSIGNED_16); 611*344a7f5eSAndroid Build Coastguard Worker rs_type t = rsCreateType(e, dimX, dimY); 612*344a7f5eSAndroid Build Coastguard Worker return rsCreateAllocation(t); 613*344a7f5eSAndroid Build Coastguard Worker} 614*344a7f5eSAndroid Build Coastguard Worker#endif 615*344a7f5eSAndroid Build Coastguard Worker 616*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 24)) 617*344a7f5eSAndroid Build Coastguard Workerstatic inline rs_allocation __attribute__((overloadable)) 618*344a7f5eSAndroid Build Coastguard Worker rsCreateAllocation_int(uint32_t dimX, uint32_t dimY) { 619*344a7f5eSAndroid Build Coastguard Worker rs_element e = rsCreateElement(RS_TYPE_SIGNED_32); 620*344a7f5eSAndroid Build Coastguard Worker rs_type t = rsCreateType(e, dimX, dimY); 621*344a7f5eSAndroid Build Coastguard Worker return rsCreateAllocation(t); 622*344a7f5eSAndroid Build Coastguard Worker} 623*344a7f5eSAndroid Build Coastguard Worker#endif 624*344a7f5eSAndroid Build Coastguard Worker 625*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 24)) 626*344a7f5eSAndroid Build Coastguard Workerstatic inline rs_allocation __attribute__((overloadable)) 627*344a7f5eSAndroid Build Coastguard Worker rsCreateAllocation_uint(uint32_t dimX, uint32_t dimY) { 628*344a7f5eSAndroid Build Coastguard Worker rs_element e = rsCreateElement(RS_TYPE_UNSIGNED_32); 629*344a7f5eSAndroid Build Coastguard Worker rs_type t = rsCreateType(e, dimX, dimY); 630*344a7f5eSAndroid Build Coastguard Worker return rsCreateAllocation(t); 631*344a7f5eSAndroid Build Coastguard Worker} 632*344a7f5eSAndroid Build Coastguard Worker#endif 633*344a7f5eSAndroid Build Coastguard Worker 634*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 24)) 635*344a7f5eSAndroid Build Coastguard Workerstatic inline rs_allocation __attribute__((overloadable)) 636*344a7f5eSAndroid Build Coastguard Worker rsCreateAllocation_long(uint32_t dimX, uint32_t dimY) { 637*344a7f5eSAndroid Build Coastguard Worker rs_element e = rsCreateElement(RS_TYPE_SIGNED_64); 638*344a7f5eSAndroid Build Coastguard Worker rs_type t = rsCreateType(e, dimX, dimY); 639*344a7f5eSAndroid Build Coastguard Worker return rsCreateAllocation(t); 640*344a7f5eSAndroid Build Coastguard Worker} 641*344a7f5eSAndroid Build Coastguard Worker#endif 642*344a7f5eSAndroid Build Coastguard Worker 643*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 24)) 644*344a7f5eSAndroid Build Coastguard Workerstatic inline rs_allocation __attribute__((overloadable)) 645*344a7f5eSAndroid Build Coastguard Worker rsCreateAllocation_ulong(uint32_t dimX, uint32_t dimY) { 646*344a7f5eSAndroid Build Coastguard Worker rs_element e = rsCreateElement(RS_TYPE_UNSIGNED_64); 647*344a7f5eSAndroid Build Coastguard Worker rs_type t = rsCreateType(e, dimX, dimY); 648*344a7f5eSAndroid Build Coastguard Worker return rsCreateAllocation(t); 649*344a7f5eSAndroid Build Coastguard Worker} 650*344a7f5eSAndroid Build Coastguard Worker#endif 651*344a7f5eSAndroid Build Coastguard Worker 652*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 24)) 653*344a7f5eSAndroid Build Coastguard Workerstatic inline rs_allocation __attribute__((overloadable)) 654*344a7f5eSAndroid Build Coastguard Worker rsCreateAllocation_half2(uint32_t dimX, uint32_t dimY) { 655*344a7f5eSAndroid Build Coastguard Worker rs_element e = rsCreateVectorElement(RS_TYPE_FLOAT_16, 2); 656*344a7f5eSAndroid Build Coastguard Worker rs_type t = rsCreateType(e, dimX, dimY); 657*344a7f5eSAndroid Build Coastguard Worker return rsCreateAllocation(t); 658*344a7f5eSAndroid Build Coastguard Worker} 659*344a7f5eSAndroid Build Coastguard Worker#endif 660*344a7f5eSAndroid Build Coastguard Worker 661*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 24)) 662*344a7f5eSAndroid Build Coastguard Workerstatic inline rs_allocation __attribute__((overloadable)) 663*344a7f5eSAndroid Build Coastguard Worker rsCreateAllocation_half3(uint32_t dimX, uint32_t dimY) { 664*344a7f5eSAndroid Build Coastguard Worker rs_element e = rsCreateVectorElement(RS_TYPE_FLOAT_16, 3); 665*344a7f5eSAndroid Build Coastguard Worker rs_type t = rsCreateType(e, dimX, dimY); 666*344a7f5eSAndroid Build Coastguard Worker return rsCreateAllocation(t); 667*344a7f5eSAndroid Build Coastguard Worker} 668*344a7f5eSAndroid Build Coastguard Worker#endif 669*344a7f5eSAndroid Build Coastguard Worker 670*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 24)) 671*344a7f5eSAndroid Build Coastguard Workerstatic inline rs_allocation __attribute__((overloadable)) 672*344a7f5eSAndroid Build Coastguard Worker rsCreateAllocation_half4(uint32_t dimX, uint32_t dimY) { 673*344a7f5eSAndroid Build Coastguard Worker rs_element e = rsCreateVectorElement(RS_TYPE_FLOAT_16, 4); 674*344a7f5eSAndroid Build Coastguard Worker rs_type t = rsCreateType(e, dimX, dimY); 675*344a7f5eSAndroid Build Coastguard Worker return rsCreateAllocation(t); 676*344a7f5eSAndroid Build Coastguard Worker} 677*344a7f5eSAndroid Build Coastguard Worker#endif 678*344a7f5eSAndroid Build Coastguard Worker 679*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 24)) 680*344a7f5eSAndroid Build Coastguard Workerstatic inline rs_allocation __attribute__((overloadable)) 681*344a7f5eSAndroid Build Coastguard Worker rsCreateAllocation_float2(uint32_t dimX, uint32_t dimY) { 682*344a7f5eSAndroid Build Coastguard Worker rs_element e = rsCreateVectorElement(RS_TYPE_FLOAT_32, 2); 683*344a7f5eSAndroid Build Coastguard Worker rs_type t = rsCreateType(e, dimX, dimY); 684*344a7f5eSAndroid Build Coastguard Worker return rsCreateAllocation(t); 685*344a7f5eSAndroid Build Coastguard Worker} 686*344a7f5eSAndroid Build Coastguard Worker#endif 687*344a7f5eSAndroid Build Coastguard Worker 688*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 24)) 689*344a7f5eSAndroid Build Coastguard Workerstatic inline rs_allocation __attribute__((overloadable)) 690*344a7f5eSAndroid Build Coastguard Worker rsCreateAllocation_float3(uint32_t dimX, uint32_t dimY) { 691*344a7f5eSAndroid Build Coastguard Worker rs_element e = rsCreateVectorElement(RS_TYPE_FLOAT_32, 3); 692*344a7f5eSAndroid Build Coastguard Worker rs_type t = rsCreateType(e, dimX, dimY); 693*344a7f5eSAndroid Build Coastguard Worker return rsCreateAllocation(t); 694*344a7f5eSAndroid Build Coastguard Worker} 695*344a7f5eSAndroid Build Coastguard Worker#endif 696*344a7f5eSAndroid Build Coastguard Worker 697*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 24)) 698*344a7f5eSAndroid Build Coastguard Workerstatic inline rs_allocation __attribute__((overloadable)) 699*344a7f5eSAndroid Build Coastguard Worker rsCreateAllocation_float4(uint32_t dimX, uint32_t dimY) { 700*344a7f5eSAndroid Build Coastguard Worker rs_element e = rsCreateVectorElement(RS_TYPE_FLOAT_32, 4); 701*344a7f5eSAndroid Build Coastguard Worker rs_type t = rsCreateType(e, dimX, dimY); 702*344a7f5eSAndroid Build Coastguard Worker return rsCreateAllocation(t); 703*344a7f5eSAndroid Build Coastguard Worker} 704*344a7f5eSAndroid Build Coastguard Worker#endif 705*344a7f5eSAndroid Build Coastguard Worker 706*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 24)) 707*344a7f5eSAndroid Build Coastguard Workerstatic inline rs_allocation __attribute__((overloadable)) 708*344a7f5eSAndroid Build Coastguard Worker rsCreateAllocation_double2(uint32_t dimX, uint32_t dimY) { 709*344a7f5eSAndroid Build Coastguard Worker rs_element e = rsCreateVectorElement(RS_TYPE_FLOAT_64, 2); 710*344a7f5eSAndroid Build Coastguard Worker rs_type t = rsCreateType(e, dimX, dimY); 711*344a7f5eSAndroid Build Coastguard Worker return rsCreateAllocation(t); 712*344a7f5eSAndroid Build Coastguard Worker} 713*344a7f5eSAndroid Build Coastguard Worker#endif 714*344a7f5eSAndroid Build Coastguard Worker 715*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 24)) 716*344a7f5eSAndroid Build Coastguard Workerstatic inline rs_allocation __attribute__((overloadable)) 717*344a7f5eSAndroid Build Coastguard Worker rsCreateAllocation_double3(uint32_t dimX, uint32_t dimY) { 718*344a7f5eSAndroid Build Coastguard Worker rs_element e = rsCreateVectorElement(RS_TYPE_FLOAT_64, 3); 719*344a7f5eSAndroid Build Coastguard Worker rs_type t = rsCreateType(e, dimX, dimY); 720*344a7f5eSAndroid Build Coastguard Worker return rsCreateAllocation(t); 721*344a7f5eSAndroid Build Coastguard Worker} 722*344a7f5eSAndroid Build Coastguard Worker#endif 723*344a7f5eSAndroid Build Coastguard Worker 724*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 24)) 725*344a7f5eSAndroid Build Coastguard Workerstatic inline rs_allocation __attribute__((overloadable)) 726*344a7f5eSAndroid Build Coastguard Worker rsCreateAllocation_double4(uint32_t dimX, uint32_t dimY) { 727*344a7f5eSAndroid Build Coastguard Worker rs_element e = rsCreateVectorElement(RS_TYPE_FLOAT_64, 4); 728*344a7f5eSAndroid Build Coastguard Worker rs_type t = rsCreateType(e, dimX, dimY); 729*344a7f5eSAndroid Build Coastguard Worker return rsCreateAllocation(t); 730*344a7f5eSAndroid Build Coastguard Worker} 731*344a7f5eSAndroid Build Coastguard Worker#endif 732*344a7f5eSAndroid Build Coastguard Worker 733*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 24)) 734*344a7f5eSAndroid Build Coastguard Workerstatic inline rs_allocation __attribute__((overloadable)) 735*344a7f5eSAndroid Build Coastguard Worker rsCreateAllocation_char2(uint32_t dimX, uint32_t dimY) { 736*344a7f5eSAndroid Build Coastguard Worker rs_element e = rsCreateVectorElement(RS_TYPE_SIGNED_8, 2); 737*344a7f5eSAndroid Build Coastguard Worker rs_type t = rsCreateType(e, dimX, dimY); 738*344a7f5eSAndroid Build Coastguard Worker return rsCreateAllocation(t); 739*344a7f5eSAndroid Build Coastguard Worker} 740*344a7f5eSAndroid Build Coastguard Worker#endif 741*344a7f5eSAndroid Build Coastguard Worker 742*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 24)) 743*344a7f5eSAndroid Build Coastguard Workerstatic inline rs_allocation __attribute__((overloadable)) 744*344a7f5eSAndroid Build Coastguard Worker rsCreateAllocation_char3(uint32_t dimX, uint32_t dimY) { 745*344a7f5eSAndroid Build Coastguard Worker rs_element e = rsCreateVectorElement(RS_TYPE_SIGNED_8, 3); 746*344a7f5eSAndroid Build Coastguard Worker rs_type t = rsCreateType(e, dimX, dimY); 747*344a7f5eSAndroid Build Coastguard Worker return rsCreateAllocation(t); 748*344a7f5eSAndroid Build Coastguard Worker} 749*344a7f5eSAndroid Build Coastguard Worker#endif 750*344a7f5eSAndroid Build Coastguard Worker 751*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 24)) 752*344a7f5eSAndroid Build Coastguard Workerstatic inline rs_allocation __attribute__((overloadable)) 753*344a7f5eSAndroid Build Coastguard Worker rsCreateAllocation_char4(uint32_t dimX, uint32_t dimY) { 754*344a7f5eSAndroid Build Coastguard Worker rs_element e = rsCreateVectorElement(RS_TYPE_SIGNED_8, 4); 755*344a7f5eSAndroid Build Coastguard Worker rs_type t = rsCreateType(e, dimX, dimY); 756*344a7f5eSAndroid Build Coastguard Worker return rsCreateAllocation(t); 757*344a7f5eSAndroid Build Coastguard Worker} 758*344a7f5eSAndroid Build Coastguard Worker#endif 759*344a7f5eSAndroid Build Coastguard Worker 760*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 24)) 761*344a7f5eSAndroid Build Coastguard Workerstatic inline rs_allocation __attribute__((overloadable)) 762*344a7f5eSAndroid Build Coastguard Worker rsCreateAllocation_uchar2(uint32_t dimX, uint32_t dimY) { 763*344a7f5eSAndroid Build Coastguard Worker rs_element e = rsCreateVectorElement(RS_TYPE_UNSIGNED_8, 2); 764*344a7f5eSAndroid Build Coastguard Worker rs_type t = rsCreateType(e, dimX, dimY); 765*344a7f5eSAndroid Build Coastguard Worker return rsCreateAllocation(t); 766*344a7f5eSAndroid Build Coastguard Worker} 767*344a7f5eSAndroid Build Coastguard Worker#endif 768*344a7f5eSAndroid Build Coastguard Worker 769*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 24)) 770*344a7f5eSAndroid Build Coastguard Workerstatic inline rs_allocation __attribute__((overloadable)) 771*344a7f5eSAndroid Build Coastguard Worker rsCreateAllocation_uchar3(uint32_t dimX, uint32_t dimY) { 772*344a7f5eSAndroid Build Coastguard Worker rs_element e = rsCreateVectorElement(RS_TYPE_UNSIGNED_8, 3); 773*344a7f5eSAndroid Build Coastguard Worker rs_type t = rsCreateType(e, dimX, dimY); 774*344a7f5eSAndroid Build Coastguard Worker return rsCreateAllocation(t); 775*344a7f5eSAndroid Build Coastguard Worker} 776*344a7f5eSAndroid Build Coastguard Worker#endif 777*344a7f5eSAndroid Build Coastguard Worker 778*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 24)) 779*344a7f5eSAndroid Build Coastguard Workerstatic inline rs_allocation __attribute__((overloadable)) 780*344a7f5eSAndroid Build Coastguard Worker rsCreateAllocation_uchar4(uint32_t dimX, uint32_t dimY) { 781*344a7f5eSAndroid Build Coastguard Worker rs_element e = rsCreateVectorElement(RS_TYPE_UNSIGNED_8, 4); 782*344a7f5eSAndroid Build Coastguard Worker rs_type t = rsCreateType(e, dimX, dimY); 783*344a7f5eSAndroid Build Coastguard Worker return rsCreateAllocation(t); 784*344a7f5eSAndroid Build Coastguard Worker} 785*344a7f5eSAndroid Build Coastguard Worker#endif 786*344a7f5eSAndroid Build Coastguard Worker 787*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 24)) 788*344a7f5eSAndroid Build Coastguard Workerstatic inline rs_allocation __attribute__((overloadable)) 789*344a7f5eSAndroid Build Coastguard Worker rsCreateAllocation_short2(uint32_t dimX, uint32_t dimY) { 790*344a7f5eSAndroid Build Coastguard Worker rs_element e = rsCreateVectorElement(RS_TYPE_SIGNED_16, 2); 791*344a7f5eSAndroid Build Coastguard Worker rs_type t = rsCreateType(e, dimX, dimY); 792*344a7f5eSAndroid Build Coastguard Worker return rsCreateAllocation(t); 793*344a7f5eSAndroid Build Coastguard Worker} 794*344a7f5eSAndroid Build Coastguard Worker#endif 795*344a7f5eSAndroid Build Coastguard Worker 796*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 24)) 797*344a7f5eSAndroid Build Coastguard Workerstatic inline rs_allocation __attribute__((overloadable)) 798*344a7f5eSAndroid Build Coastguard Worker rsCreateAllocation_short3(uint32_t dimX, uint32_t dimY) { 799*344a7f5eSAndroid Build Coastguard Worker rs_element e = rsCreateVectorElement(RS_TYPE_SIGNED_16, 3); 800*344a7f5eSAndroid Build Coastguard Worker rs_type t = rsCreateType(e, dimX, dimY); 801*344a7f5eSAndroid Build Coastguard Worker return rsCreateAllocation(t); 802*344a7f5eSAndroid Build Coastguard Worker} 803*344a7f5eSAndroid Build Coastguard Worker#endif 804*344a7f5eSAndroid Build Coastguard Worker 805*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 24)) 806*344a7f5eSAndroid Build Coastguard Workerstatic inline rs_allocation __attribute__((overloadable)) 807*344a7f5eSAndroid Build Coastguard Worker rsCreateAllocation_short4(uint32_t dimX, uint32_t dimY) { 808*344a7f5eSAndroid Build Coastguard Worker rs_element e = rsCreateVectorElement(RS_TYPE_SIGNED_16, 4); 809*344a7f5eSAndroid Build Coastguard Worker rs_type t = rsCreateType(e, dimX, dimY); 810*344a7f5eSAndroid Build Coastguard Worker return rsCreateAllocation(t); 811*344a7f5eSAndroid Build Coastguard Worker} 812*344a7f5eSAndroid Build Coastguard Worker#endif 813*344a7f5eSAndroid Build Coastguard Worker 814*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 24)) 815*344a7f5eSAndroid Build Coastguard Workerstatic inline rs_allocation __attribute__((overloadable)) 816*344a7f5eSAndroid Build Coastguard Worker rsCreateAllocation_ushort2(uint32_t dimX, uint32_t dimY) { 817*344a7f5eSAndroid Build Coastguard Worker rs_element e = rsCreateVectorElement(RS_TYPE_UNSIGNED_16, 2); 818*344a7f5eSAndroid Build Coastguard Worker rs_type t = rsCreateType(e, dimX, dimY); 819*344a7f5eSAndroid Build Coastguard Worker return rsCreateAllocation(t); 820*344a7f5eSAndroid Build Coastguard Worker} 821*344a7f5eSAndroid Build Coastguard Worker#endif 822*344a7f5eSAndroid Build Coastguard Worker 823*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 24)) 824*344a7f5eSAndroid Build Coastguard Workerstatic inline rs_allocation __attribute__((overloadable)) 825*344a7f5eSAndroid Build Coastguard Worker rsCreateAllocation_ushort3(uint32_t dimX, uint32_t dimY) { 826*344a7f5eSAndroid Build Coastguard Worker rs_element e = rsCreateVectorElement(RS_TYPE_UNSIGNED_16, 3); 827*344a7f5eSAndroid Build Coastguard Worker rs_type t = rsCreateType(e, dimX, dimY); 828*344a7f5eSAndroid Build Coastguard Worker return rsCreateAllocation(t); 829*344a7f5eSAndroid Build Coastguard Worker} 830*344a7f5eSAndroid Build Coastguard Worker#endif 831*344a7f5eSAndroid Build Coastguard Worker 832*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 24)) 833*344a7f5eSAndroid Build Coastguard Workerstatic inline rs_allocation __attribute__((overloadable)) 834*344a7f5eSAndroid Build Coastguard Worker rsCreateAllocation_ushort4(uint32_t dimX, uint32_t dimY) { 835*344a7f5eSAndroid Build Coastguard Worker rs_element e = rsCreateVectorElement(RS_TYPE_UNSIGNED_16, 4); 836*344a7f5eSAndroid Build Coastguard Worker rs_type t = rsCreateType(e, dimX, dimY); 837*344a7f5eSAndroid Build Coastguard Worker return rsCreateAllocation(t); 838*344a7f5eSAndroid Build Coastguard Worker} 839*344a7f5eSAndroid Build Coastguard Worker#endif 840*344a7f5eSAndroid Build Coastguard Worker 841*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 24)) 842*344a7f5eSAndroid Build Coastguard Workerstatic inline rs_allocation __attribute__((overloadable)) 843*344a7f5eSAndroid Build Coastguard Worker rsCreateAllocation_int2(uint32_t dimX, uint32_t dimY) { 844*344a7f5eSAndroid Build Coastguard Worker rs_element e = rsCreateVectorElement(RS_TYPE_SIGNED_32, 2); 845*344a7f5eSAndroid Build Coastguard Worker rs_type t = rsCreateType(e, dimX, dimY); 846*344a7f5eSAndroid Build Coastguard Worker return rsCreateAllocation(t); 847*344a7f5eSAndroid Build Coastguard Worker} 848*344a7f5eSAndroid Build Coastguard Worker#endif 849*344a7f5eSAndroid Build Coastguard Worker 850*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 24)) 851*344a7f5eSAndroid Build Coastguard Workerstatic inline rs_allocation __attribute__((overloadable)) 852*344a7f5eSAndroid Build Coastguard Worker rsCreateAllocation_int3(uint32_t dimX, uint32_t dimY) { 853*344a7f5eSAndroid Build Coastguard Worker rs_element e = rsCreateVectorElement(RS_TYPE_SIGNED_32, 3); 854*344a7f5eSAndroid Build Coastguard Worker rs_type t = rsCreateType(e, dimX, dimY); 855*344a7f5eSAndroid Build Coastguard Worker return rsCreateAllocation(t); 856*344a7f5eSAndroid Build Coastguard Worker} 857*344a7f5eSAndroid Build Coastguard Worker#endif 858*344a7f5eSAndroid Build Coastguard Worker 859*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 24)) 860*344a7f5eSAndroid Build Coastguard Workerstatic inline rs_allocation __attribute__((overloadable)) 861*344a7f5eSAndroid Build Coastguard Worker rsCreateAllocation_int4(uint32_t dimX, uint32_t dimY) { 862*344a7f5eSAndroid Build Coastguard Worker rs_element e = rsCreateVectorElement(RS_TYPE_SIGNED_32, 4); 863*344a7f5eSAndroid Build Coastguard Worker rs_type t = rsCreateType(e, dimX, dimY); 864*344a7f5eSAndroid Build Coastguard Worker return rsCreateAllocation(t); 865*344a7f5eSAndroid Build Coastguard Worker} 866*344a7f5eSAndroid Build Coastguard Worker#endif 867*344a7f5eSAndroid Build Coastguard Worker 868*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 24)) 869*344a7f5eSAndroid Build Coastguard Workerstatic inline rs_allocation __attribute__((overloadable)) 870*344a7f5eSAndroid Build Coastguard Worker rsCreateAllocation_uint2(uint32_t dimX, uint32_t dimY) { 871*344a7f5eSAndroid Build Coastguard Worker rs_element e = rsCreateVectorElement(RS_TYPE_UNSIGNED_32, 2); 872*344a7f5eSAndroid Build Coastguard Worker rs_type t = rsCreateType(e, dimX, dimY); 873*344a7f5eSAndroid Build Coastguard Worker return rsCreateAllocation(t); 874*344a7f5eSAndroid Build Coastguard Worker} 875*344a7f5eSAndroid Build Coastguard Worker#endif 876*344a7f5eSAndroid Build Coastguard Worker 877*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 24)) 878*344a7f5eSAndroid Build Coastguard Workerstatic inline rs_allocation __attribute__((overloadable)) 879*344a7f5eSAndroid Build Coastguard Worker rsCreateAllocation_uint3(uint32_t dimX, uint32_t dimY) { 880*344a7f5eSAndroid Build Coastguard Worker rs_element e = rsCreateVectorElement(RS_TYPE_UNSIGNED_32, 3); 881*344a7f5eSAndroid Build Coastguard Worker rs_type t = rsCreateType(e, dimX, dimY); 882*344a7f5eSAndroid Build Coastguard Worker return rsCreateAllocation(t); 883*344a7f5eSAndroid Build Coastguard Worker} 884*344a7f5eSAndroid Build Coastguard Worker#endif 885*344a7f5eSAndroid Build Coastguard Worker 886*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 24)) 887*344a7f5eSAndroid Build Coastguard Workerstatic inline rs_allocation __attribute__((overloadable)) 888*344a7f5eSAndroid Build Coastguard Worker rsCreateAllocation_uint4(uint32_t dimX, uint32_t dimY) { 889*344a7f5eSAndroid Build Coastguard Worker rs_element e = rsCreateVectorElement(RS_TYPE_UNSIGNED_32, 4); 890*344a7f5eSAndroid Build Coastguard Worker rs_type t = rsCreateType(e, dimX, dimY); 891*344a7f5eSAndroid Build Coastguard Worker return rsCreateAllocation(t); 892*344a7f5eSAndroid Build Coastguard Worker} 893*344a7f5eSAndroid Build Coastguard Worker#endif 894*344a7f5eSAndroid Build Coastguard Worker 895*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 24)) 896*344a7f5eSAndroid Build Coastguard Workerstatic inline rs_allocation __attribute__((overloadable)) 897*344a7f5eSAndroid Build Coastguard Worker rsCreateAllocation_long2(uint32_t dimX, uint32_t dimY) { 898*344a7f5eSAndroid Build Coastguard Worker rs_element e = rsCreateVectorElement(RS_TYPE_SIGNED_64, 2); 899*344a7f5eSAndroid Build Coastguard Worker rs_type t = rsCreateType(e, dimX, dimY); 900*344a7f5eSAndroid Build Coastguard Worker return rsCreateAllocation(t); 901*344a7f5eSAndroid Build Coastguard Worker} 902*344a7f5eSAndroid Build Coastguard Worker#endif 903*344a7f5eSAndroid Build Coastguard Worker 904*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 24)) 905*344a7f5eSAndroid Build Coastguard Workerstatic inline rs_allocation __attribute__((overloadable)) 906*344a7f5eSAndroid Build Coastguard Worker rsCreateAllocation_long3(uint32_t dimX, uint32_t dimY) { 907*344a7f5eSAndroid Build Coastguard Worker rs_element e = rsCreateVectorElement(RS_TYPE_SIGNED_64, 3); 908*344a7f5eSAndroid Build Coastguard Worker rs_type t = rsCreateType(e, dimX, dimY); 909*344a7f5eSAndroid Build Coastguard Worker return rsCreateAllocation(t); 910*344a7f5eSAndroid Build Coastguard Worker} 911*344a7f5eSAndroid Build Coastguard Worker#endif 912*344a7f5eSAndroid Build Coastguard Worker 913*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 24)) 914*344a7f5eSAndroid Build Coastguard Workerstatic inline rs_allocation __attribute__((overloadable)) 915*344a7f5eSAndroid Build Coastguard Worker rsCreateAllocation_long4(uint32_t dimX, uint32_t dimY) { 916*344a7f5eSAndroid Build Coastguard Worker rs_element e = rsCreateVectorElement(RS_TYPE_SIGNED_64, 4); 917*344a7f5eSAndroid Build Coastguard Worker rs_type t = rsCreateType(e, dimX, dimY); 918*344a7f5eSAndroid Build Coastguard Worker return rsCreateAllocation(t); 919*344a7f5eSAndroid Build Coastguard Worker} 920*344a7f5eSAndroid Build Coastguard Worker#endif 921*344a7f5eSAndroid Build Coastguard Worker 922*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 24)) 923*344a7f5eSAndroid Build Coastguard Workerstatic inline rs_allocation __attribute__((overloadable)) 924*344a7f5eSAndroid Build Coastguard Worker rsCreateAllocation_ulong2(uint32_t dimX, uint32_t dimY) { 925*344a7f5eSAndroid Build Coastguard Worker rs_element e = rsCreateVectorElement(RS_TYPE_UNSIGNED_64, 2); 926*344a7f5eSAndroid Build Coastguard Worker rs_type t = rsCreateType(e, dimX, dimY); 927*344a7f5eSAndroid Build Coastguard Worker return rsCreateAllocation(t); 928*344a7f5eSAndroid Build Coastguard Worker} 929*344a7f5eSAndroid Build Coastguard Worker#endif 930*344a7f5eSAndroid Build Coastguard Worker 931*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 24)) 932*344a7f5eSAndroid Build Coastguard Workerstatic inline rs_allocation __attribute__((overloadable)) 933*344a7f5eSAndroid Build Coastguard Worker rsCreateAllocation_ulong3(uint32_t dimX, uint32_t dimY) { 934*344a7f5eSAndroid Build Coastguard Worker rs_element e = rsCreateVectorElement(RS_TYPE_UNSIGNED_64, 3); 935*344a7f5eSAndroid Build Coastguard Worker rs_type t = rsCreateType(e, dimX, dimY); 936*344a7f5eSAndroid Build Coastguard Worker return rsCreateAllocation(t); 937*344a7f5eSAndroid Build Coastguard Worker} 938*344a7f5eSAndroid Build Coastguard Worker#endif 939*344a7f5eSAndroid Build Coastguard Worker 940*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 24)) 941*344a7f5eSAndroid Build Coastguard Workerstatic inline rs_allocation __attribute__((overloadable)) 942*344a7f5eSAndroid Build Coastguard Worker rsCreateAllocation_ulong4(uint32_t dimX, uint32_t dimY) { 943*344a7f5eSAndroid Build Coastguard Worker rs_element e = rsCreateVectorElement(RS_TYPE_UNSIGNED_64, 4); 944*344a7f5eSAndroid Build Coastguard Worker rs_type t = rsCreateType(e, dimX, dimY); 945*344a7f5eSAndroid Build Coastguard Worker return rsCreateAllocation(t); 946*344a7f5eSAndroid Build Coastguard Worker} 947*344a7f5eSAndroid Build Coastguard Worker#endif 948*344a7f5eSAndroid Build Coastguard Worker 949*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 24)) 950*344a7f5eSAndroid Build Coastguard Workerstatic inline rs_allocation __attribute__((overloadable)) 951*344a7f5eSAndroid Build Coastguard Worker rsCreateAllocation_half(uint32_t dimX) { 952*344a7f5eSAndroid Build Coastguard Worker rs_element e = rsCreateElement(RS_TYPE_FLOAT_16); 953*344a7f5eSAndroid Build Coastguard Worker rs_type t = rsCreateType(e, dimX); 954*344a7f5eSAndroid Build Coastguard Worker return rsCreateAllocation(t); 955*344a7f5eSAndroid Build Coastguard Worker} 956*344a7f5eSAndroid Build Coastguard Worker#endif 957*344a7f5eSAndroid Build Coastguard Worker 958*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 24)) 959*344a7f5eSAndroid Build Coastguard Workerstatic inline rs_allocation __attribute__((overloadable)) 960*344a7f5eSAndroid Build Coastguard Worker rsCreateAllocation_float(uint32_t dimX) { 961*344a7f5eSAndroid Build Coastguard Worker rs_element e = rsCreateElement(RS_TYPE_FLOAT_32); 962*344a7f5eSAndroid Build Coastguard Worker rs_type t = rsCreateType(e, dimX); 963*344a7f5eSAndroid Build Coastguard Worker return rsCreateAllocation(t); 964*344a7f5eSAndroid Build Coastguard Worker} 965*344a7f5eSAndroid Build Coastguard Worker#endif 966*344a7f5eSAndroid Build Coastguard Worker 967*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 24)) 968*344a7f5eSAndroid Build Coastguard Workerstatic inline rs_allocation __attribute__((overloadable)) 969*344a7f5eSAndroid Build Coastguard Worker rsCreateAllocation_double(uint32_t dimX) { 970*344a7f5eSAndroid Build Coastguard Worker rs_element e = rsCreateElement(RS_TYPE_FLOAT_64); 971*344a7f5eSAndroid Build Coastguard Worker rs_type t = rsCreateType(e, dimX); 972*344a7f5eSAndroid Build Coastguard Worker return rsCreateAllocation(t); 973*344a7f5eSAndroid Build Coastguard Worker} 974*344a7f5eSAndroid Build Coastguard Worker#endif 975*344a7f5eSAndroid Build Coastguard Worker 976*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 24)) 977*344a7f5eSAndroid Build Coastguard Workerstatic inline rs_allocation __attribute__((overloadable)) 978*344a7f5eSAndroid Build Coastguard Worker rsCreateAllocation_char(uint32_t dimX) { 979*344a7f5eSAndroid Build Coastguard Worker rs_element e = rsCreateElement(RS_TYPE_SIGNED_8); 980*344a7f5eSAndroid Build Coastguard Worker rs_type t = rsCreateType(e, dimX); 981*344a7f5eSAndroid Build Coastguard Worker return rsCreateAllocation(t); 982*344a7f5eSAndroid Build Coastguard Worker} 983*344a7f5eSAndroid Build Coastguard Worker#endif 984*344a7f5eSAndroid Build Coastguard Worker 985*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 24)) 986*344a7f5eSAndroid Build Coastguard Workerstatic inline rs_allocation __attribute__((overloadable)) 987*344a7f5eSAndroid Build Coastguard Worker rsCreateAllocation_uchar(uint32_t dimX) { 988*344a7f5eSAndroid Build Coastguard Worker rs_element e = rsCreateElement(RS_TYPE_UNSIGNED_8); 989*344a7f5eSAndroid Build Coastguard Worker rs_type t = rsCreateType(e, dimX); 990*344a7f5eSAndroid Build Coastguard Worker return rsCreateAllocation(t); 991*344a7f5eSAndroid Build Coastguard Worker} 992*344a7f5eSAndroid Build Coastguard Worker#endif 993*344a7f5eSAndroid Build Coastguard Worker 994*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 24)) 995*344a7f5eSAndroid Build Coastguard Workerstatic inline rs_allocation __attribute__((overloadable)) 996*344a7f5eSAndroid Build Coastguard Worker rsCreateAllocation_short(uint32_t dimX) { 997*344a7f5eSAndroid Build Coastguard Worker rs_element e = rsCreateElement(RS_TYPE_SIGNED_16); 998*344a7f5eSAndroid Build Coastguard Worker rs_type t = rsCreateType(e, dimX); 999*344a7f5eSAndroid Build Coastguard Worker return rsCreateAllocation(t); 1000*344a7f5eSAndroid Build Coastguard Worker} 1001*344a7f5eSAndroid Build Coastguard Worker#endif 1002*344a7f5eSAndroid Build Coastguard Worker 1003*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 24)) 1004*344a7f5eSAndroid Build Coastguard Workerstatic inline rs_allocation __attribute__((overloadable)) 1005*344a7f5eSAndroid Build Coastguard Worker rsCreateAllocation_ushort(uint32_t dimX) { 1006*344a7f5eSAndroid Build Coastguard Worker rs_element e = rsCreateElement(RS_TYPE_UNSIGNED_16); 1007*344a7f5eSAndroid Build Coastguard Worker rs_type t = rsCreateType(e, dimX); 1008*344a7f5eSAndroid Build Coastguard Worker return rsCreateAllocation(t); 1009*344a7f5eSAndroid Build Coastguard Worker} 1010*344a7f5eSAndroid Build Coastguard Worker#endif 1011*344a7f5eSAndroid Build Coastguard Worker 1012*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 24)) 1013*344a7f5eSAndroid Build Coastguard Workerstatic inline rs_allocation __attribute__((overloadable)) 1014*344a7f5eSAndroid Build Coastguard Worker rsCreateAllocation_int(uint32_t dimX) { 1015*344a7f5eSAndroid Build Coastguard Worker rs_element e = rsCreateElement(RS_TYPE_SIGNED_32); 1016*344a7f5eSAndroid Build Coastguard Worker rs_type t = rsCreateType(e, dimX); 1017*344a7f5eSAndroid Build Coastguard Worker return rsCreateAllocation(t); 1018*344a7f5eSAndroid Build Coastguard Worker} 1019*344a7f5eSAndroid Build Coastguard Worker#endif 1020*344a7f5eSAndroid Build Coastguard Worker 1021*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 24)) 1022*344a7f5eSAndroid Build Coastguard Workerstatic inline rs_allocation __attribute__((overloadable)) 1023*344a7f5eSAndroid Build Coastguard Worker rsCreateAllocation_uint(uint32_t dimX) { 1024*344a7f5eSAndroid Build Coastguard Worker rs_element e = rsCreateElement(RS_TYPE_UNSIGNED_32); 1025*344a7f5eSAndroid Build Coastguard Worker rs_type t = rsCreateType(e, dimX); 1026*344a7f5eSAndroid Build Coastguard Worker return rsCreateAllocation(t); 1027*344a7f5eSAndroid Build Coastguard Worker} 1028*344a7f5eSAndroid Build Coastguard Worker#endif 1029*344a7f5eSAndroid Build Coastguard Worker 1030*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 24)) 1031*344a7f5eSAndroid Build Coastguard Workerstatic inline rs_allocation __attribute__((overloadable)) 1032*344a7f5eSAndroid Build Coastguard Worker rsCreateAllocation_long(uint32_t dimX) { 1033*344a7f5eSAndroid Build Coastguard Worker rs_element e = rsCreateElement(RS_TYPE_SIGNED_64); 1034*344a7f5eSAndroid Build Coastguard Worker rs_type t = rsCreateType(e, dimX); 1035*344a7f5eSAndroid Build Coastguard Worker return rsCreateAllocation(t); 1036*344a7f5eSAndroid Build Coastguard Worker} 1037*344a7f5eSAndroid Build Coastguard Worker#endif 1038*344a7f5eSAndroid Build Coastguard Worker 1039*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 24)) 1040*344a7f5eSAndroid Build Coastguard Workerstatic inline rs_allocation __attribute__((overloadable)) 1041*344a7f5eSAndroid Build Coastguard Worker rsCreateAllocation_ulong(uint32_t dimX) { 1042*344a7f5eSAndroid Build Coastguard Worker rs_element e = rsCreateElement(RS_TYPE_UNSIGNED_64); 1043*344a7f5eSAndroid Build Coastguard Worker rs_type t = rsCreateType(e, dimX); 1044*344a7f5eSAndroid Build Coastguard Worker return rsCreateAllocation(t); 1045*344a7f5eSAndroid Build Coastguard Worker} 1046*344a7f5eSAndroid Build Coastguard Worker#endif 1047*344a7f5eSAndroid Build Coastguard Worker 1048*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 24)) 1049*344a7f5eSAndroid Build Coastguard Workerstatic inline rs_allocation __attribute__((overloadable)) 1050*344a7f5eSAndroid Build Coastguard Worker rsCreateAllocation_half2(uint32_t dimX) { 1051*344a7f5eSAndroid Build Coastguard Worker rs_element e = rsCreateVectorElement(RS_TYPE_FLOAT_16, 2); 1052*344a7f5eSAndroid Build Coastguard Worker rs_type t = rsCreateType(e, dimX); 1053*344a7f5eSAndroid Build Coastguard Worker return rsCreateAllocation(t); 1054*344a7f5eSAndroid Build Coastguard Worker} 1055*344a7f5eSAndroid Build Coastguard Worker#endif 1056*344a7f5eSAndroid Build Coastguard Worker 1057*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 24)) 1058*344a7f5eSAndroid Build Coastguard Workerstatic inline rs_allocation __attribute__((overloadable)) 1059*344a7f5eSAndroid Build Coastguard Worker rsCreateAllocation_half3(uint32_t dimX) { 1060*344a7f5eSAndroid Build Coastguard Worker rs_element e = rsCreateVectorElement(RS_TYPE_FLOAT_16, 3); 1061*344a7f5eSAndroid Build Coastguard Worker rs_type t = rsCreateType(e, dimX); 1062*344a7f5eSAndroid Build Coastguard Worker return rsCreateAllocation(t); 1063*344a7f5eSAndroid Build Coastguard Worker} 1064*344a7f5eSAndroid Build Coastguard Worker#endif 1065*344a7f5eSAndroid Build Coastguard Worker 1066*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 24)) 1067*344a7f5eSAndroid Build Coastguard Workerstatic inline rs_allocation __attribute__((overloadable)) 1068*344a7f5eSAndroid Build Coastguard Worker rsCreateAllocation_half4(uint32_t dimX) { 1069*344a7f5eSAndroid Build Coastguard Worker rs_element e = rsCreateVectorElement(RS_TYPE_FLOAT_16, 4); 1070*344a7f5eSAndroid Build Coastguard Worker rs_type t = rsCreateType(e, dimX); 1071*344a7f5eSAndroid Build Coastguard Worker return rsCreateAllocation(t); 1072*344a7f5eSAndroid Build Coastguard Worker} 1073*344a7f5eSAndroid Build Coastguard Worker#endif 1074*344a7f5eSAndroid Build Coastguard Worker 1075*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 24)) 1076*344a7f5eSAndroid Build Coastguard Workerstatic inline rs_allocation __attribute__((overloadable)) 1077*344a7f5eSAndroid Build Coastguard Worker rsCreateAllocation_float2(uint32_t dimX) { 1078*344a7f5eSAndroid Build Coastguard Worker rs_element e = rsCreateVectorElement(RS_TYPE_FLOAT_32, 2); 1079*344a7f5eSAndroid Build Coastguard Worker rs_type t = rsCreateType(e, dimX); 1080*344a7f5eSAndroid Build Coastguard Worker return rsCreateAllocation(t); 1081*344a7f5eSAndroid Build Coastguard Worker} 1082*344a7f5eSAndroid Build Coastguard Worker#endif 1083*344a7f5eSAndroid Build Coastguard Worker 1084*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 24)) 1085*344a7f5eSAndroid Build Coastguard Workerstatic inline rs_allocation __attribute__((overloadable)) 1086*344a7f5eSAndroid Build Coastguard Worker rsCreateAllocation_float3(uint32_t dimX) { 1087*344a7f5eSAndroid Build Coastguard Worker rs_element e = rsCreateVectorElement(RS_TYPE_FLOAT_32, 3); 1088*344a7f5eSAndroid Build Coastguard Worker rs_type t = rsCreateType(e, dimX); 1089*344a7f5eSAndroid Build Coastguard Worker return rsCreateAllocation(t); 1090*344a7f5eSAndroid Build Coastguard Worker} 1091*344a7f5eSAndroid Build Coastguard Worker#endif 1092*344a7f5eSAndroid Build Coastguard Worker 1093*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 24)) 1094*344a7f5eSAndroid Build Coastguard Workerstatic inline rs_allocation __attribute__((overloadable)) 1095*344a7f5eSAndroid Build Coastguard Worker rsCreateAllocation_float4(uint32_t dimX) { 1096*344a7f5eSAndroid Build Coastguard Worker rs_element e = rsCreateVectorElement(RS_TYPE_FLOAT_32, 4); 1097*344a7f5eSAndroid Build Coastguard Worker rs_type t = rsCreateType(e, dimX); 1098*344a7f5eSAndroid Build Coastguard Worker return rsCreateAllocation(t); 1099*344a7f5eSAndroid Build Coastguard Worker} 1100*344a7f5eSAndroid Build Coastguard Worker#endif 1101*344a7f5eSAndroid Build Coastguard Worker 1102*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 24)) 1103*344a7f5eSAndroid Build Coastguard Workerstatic inline rs_allocation __attribute__((overloadable)) 1104*344a7f5eSAndroid Build Coastguard Worker rsCreateAllocation_double2(uint32_t dimX) { 1105*344a7f5eSAndroid Build Coastguard Worker rs_element e = rsCreateVectorElement(RS_TYPE_FLOAT_64, 2); 1106*344a7f5eSAndroid Build Coastguard Worker rs_type t = rsCreateType(e, dimX); 1107*344a7f5eSAndroid Build Coastguard Worker return rsCreateAllocation(t); 1108*344a7f5eSAndroid Build Coastguard Worker} 1109*344a7f5eSAndroid Build Coastguard Worker#endif 1110*344a7f5eSAndroid Build Coastguard Worker 1111*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 24)) 1112*344a7f5eSAndroid Build Coastguard Workerstatic inline rs_allocation __attribute__((overloadable)) 1113*344a7f5eSAndroid Build Coastguard Worker rsCreateAllocation_double3(uint32_t dimX) { 1114*344a7f5eSAndroid Build Coastguard Worker rs_element e = rsCreateVectorElement(RS_TYPE_FLOAT_64, 3); 1115*344a7f5eSAndroid Build Coastguard Worker rs_type t = rsCreateType(e, dimX); 1116*344a7f5eSAndroid Build Coastguard Worker return rsCreateAllocation(t); 1117*344a7f5eSAndroid Build Coastguard Worker} 1118*344a7f5eSAndroid Build Coastguard Worker#endif 1119*344a7f5eSAndroid Build Coastguard Worker 1120*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 24)) 1121*344a7f5eSAndroid Build Coastguard Workerstatic inline rs_allocation __attribute__((overloadable)) 1122*344a7f5eSAndroid Build Coastguard Worker rsCreateAllocation_double4(uint32_t dimX) { 1123*344a7f5eSAndroid Build Coastguard Worker rs_element e = rsCreateVectorElement(RS_TYPE_FLOAT_64, 4); 1124*344a7f5eSAndroid Build Coastguard Worker rs_type t = rsCreateType(e, dimX); 1125*344a7f5eSAndroid Build Coastguard Worker return rsCreateAllocation(t); 1126*344a7f5eSAndroid Build Coastguard Worker} 1127*344a7f5eSAndroid Build Coastguard Worker#endif 1128*344a7f5eSAndroid Build Coastguard Worker 1129*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 24)) 1130*344a7f5eSAndroid Build Coastguard Workerstatic inline rs_allocation __attribute__((overloadable)) 1131*344a7f5eSAndroid Build Coastguard Worker rsCreateAllocation_char2(uint32_t dimX) { 1132*344a7f5eSAndroid Build Coastguard Worker rs_element e = rsCreateVectorElement(RS_TYPE_SIGNED_8, 2); 1133*344a7f5eSAndroid Build Coastguard Worker rs_type t = rsCreateType(e, dimX); 1134*344a7f5eSAndroid Build Coastguard Worker return rsCreateAllocation(t); 1135*344a7f5eSAndroid Build Coastguard Worker} 1136*344a7f5eSAndroid Build Coastguard Worker#endif 1137*344a7f5eSAndroid Build Coastguard Worker 1138*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 24)) 1139*344a7f5eSAndroid Build Coastguard Workerstatic inline rs_allocation __attribute__((overloadable)) 1140*344a7f5eSAndroid Build Coastguard Worker rsCreateAllocation_char3(uint32_t dimX) { 1141*344a7f5eSAndroid Build Coastguard Worker rs_element e = rsCreateVectorElement(RS_TYPE_SIGNED_8, 3); 1142*344a7f5eSAndroid Build Coastguard Worker rs_type t = rsCreateType(e, dimX); 1143*344a7f5eSAndroid Build Coastguard Worker return rsCreateAllocation(t); 1144*344a7f5eSAndroid Build Coastguard Worker} 1145*344a7f5eSAndroid Build Coastguard Worker#endif 1146*344a7f5eSAndroid Build Coastguard Worker 1147*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 24)) 1148*344a7f5eSAndroid Build Coastguard Workerstatic inline rs_allocation __attribute__((overloadable)) 1149*344a7f5eSAndroid Build Coastguard Worker rsCreateAllocation_char4(uint32_t dimX) { 1150*344a7f5eSAndroid Build Coastguard Worker rs_element e = rsCreateVectorElement(RS_TYPE_SIGNED_8, 4); 1151*344a7f5eSAndroid Build Coastguard Worker rs_type t = rsCreateType(e, dimX); 1152*344a7f5eSAndroid Build Coastguard Worker return rsCreateAllocation(t); 1153*344a7f5eSAndroid Build Coastguard Worker} 1154*344a7f5eSAndroid Build Coastguard Worker#endif 1155*344a7f5eSAndroid Build Coastguard Worker 1156*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 24)) 1157*344a7f5eSAndroid Build Coastguard Workerstatic inline rs_allocation __attribute__((overloadable)) 1158*344a7f5eSAndroid Build Coastguard Worker rsCreateAllocation_uchar2(uint32_t dimX) { 1159*344a7f5eSAndroid Build Coastguard Worker rs_element e = rsCreateVectorElement(RS_TYPE_UNSIGNED_8, 2); 1160*344a7f5eSAndroid Build Coastguard Worker rs_type t = rsCreateType(e, dimX); 1161*344a7f5eSAndroid Build Coastguard Worker return rsCreateAllocation(t); 1162*344a7f5eSAndroid Build Coastguard Worker} 1163*344a7f5eSAndroid Build Coastguard Worker#endif 1164*344a7f5eSAndroid Build Coastguard Worker 1165*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 24)) 1166*344a7f5eSAndroid Build Coastguard Workerstatic inline rs_allocation __attribute__((overloadable)) 1167*344a7f5eSAndroid Build Coastguard Worker rsCreateAllocation_uchar3(uint32_t dimX) { 1168*344a7f5eSAndroid Build Coastguard Worker rs_element e = rsCreateVectorElement(RS_TYPE_UNSIGNED_8, 3); 1169*344a7f5eSAndroid Build Coastguard Worker rs_type t = rsCreateType(e, dimX); 1170*344a7f5eSAndroid Build Coastguard Worker return rsCreateAllocation(t); 1171*344a7f5eSAndroid Build Coastguard Worker} 1172*344a7f5eSAndroid Build Coastguard Worker#endif 1173*344a7f5eSAndroid Build Coastguard Worker 1174*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 24)) 1175*344a7f5eSAndroid Build Coastguard Workerstatic inline rs_allocation __attribute__((overloadable)) 1176*344a7f5eSAndroid Build Coastguard Worker rsCreateAllocation_uchar4(uint32_t dimX) { 1177*344a7f5eSAndroid Build Coastguard Worker rs_element e = rsCreateVectorElement(RS_TYPE_UNSIGNED_8, 4); 1178*344a7f5eSAndroid Build Coastguard Worker rs_type t = rsCreateType(e, dimX); 1179*344a7f5eSAndroid Build Coastguard Worker return rsCreateAllocation(t); 1180*344a7f5eSAndroid Build Coastguard Worker} 1181*344a7f5eSAndroid Build Coastguard Worker#endif 1182*344a7f5eSAndroid Build Coastguard Worker 1183*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 24)) 1184*344a7f5eSAndroid Build Coastguard Workerstatic inline rs_allocation __attribute__((overloadable)) 1185*344a7f5eSAndroid Build Coastguard Worker rsCreateAllocation_short2(uint32_t dimX) { 1186*344a7f5eSAndroid Build Coastguard Worker rs_element e = rsCreateVectorElement(RS_TYPE_SIGNED_16, 2); 1187*344a7f5eSAndroid Build Coastguard Worker rs_type t = rsCreateType(e, dimX); 1188*344a7f5eSAndroid Build Coastguard Worker return rsCreateAllocation(t); 1189*344a7f5eSAndroid Build Coastguard Worker} 1190*344a7f5eSAndroid Build Coastguard Worker#endif 1191*344a7f5eSAndroid Build Coastguard Worker 1192*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 24)) 1193*344a7f5eSAndroid Build Coastguard Workerstatic inline rs_allocation __attribute__((overloadable)) 1194*344a7f5eSAndroid Build Coastguard Worker rsCreateAllocation_short3(uint32_t dimX) { 1195*344a7f5eSAndroid Build Coastguard Worker rs_element e = rsCreateVectorElement(RS_TYPE_SIGNED_16, 3); 1196*344a7f5eSAndroid Build Coastguard Worker rs_type t = rsCreateType(e, dimX); 1197*344a7f5eSAndroid Build Coastguard Worker return rsCreateAllocation(t); 1198*344a7f5eSAndroid Build Coastguard Worker} 1199*344a7f5eSAndroid Build Coastguard Worker#endif 1200*344a7f5eSAndroid Build Coastguard Worker 1201*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 24)) 1202*344a7f5eSAndroid Build Coastguard Workerstatic inline rs_allocation __attribute__((overloadable)) 1203*344a7f5eSAndroid Build Coastguard Worker rsCreateAllocation_short4(uint32_t dimX) { 1204*344a7f5eSAndroid Build Coastguard Worker rs_element e = rsCreateVectorElement(RS_TYPE_SIGNED_16, 4); 1205*344a7f5eSAndroid Build Coastguard Worker rs_type t = rsCreateType(e, dimX); 1206*344a7f5eSAndroid Build Coastguard Worker return rsCreateAllocation(t); 1207*344a7f5eSAndroid Build Coastguard Worker} 1208*344a7f5eSAndroid Build Coastguard Worker#endif 1209*344a7f5eSAndroid Build Coastguard Worker 1210*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 24)) 1211*344a7f5eSAndroid Build Coastguard Workerstatic inline rs_allocation __attribute__((overloadable)) 1212*344a7f5eSAndroid Build Coastguard Worker rsCreateAllocation_ushort2(uint32_t dimX) { 1213*344a7f5eSAndroid Build Coastguard Worker rs_element e = rsCreateVectorElement(RS_TYPE_UNSIGNED_16, 2); 1214*344a7f5eSAndroid Build Coastguard Worker rs_type t = rsCreateType(e, dimX); 1215*344a7f5eSAndroid Build Coastguard Worker return rsCreateAllocation(t); 1216*344a7f5eSAndroid Build Coastguard Worker} 1217*344a7f5eSAndroid Build Coastguard Worker#endif 1218*344a7f5eSAndroid Build Coastguard Worker 1219*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 24)) 1220*344a7f5eSAndroid Build Coastguard Workerstatic inline rs_allocation __attribute__((overloadable)) 1221*344a7f5eSAndroid Build Coastguard Worker rsCreateAllocation_ushort3(uint32_t dimX) { 1222*344a7f5eSAndroid Build Coastguard Worker rs_element e = rsCreateVectorElement(RS_TYPE_UNSIGNED_16, 3); 1223*344a7f5eSAndroid Build Coastguard Worker rs_type t = rsCreateType(e, dimX); 1224*344a7f5eSAndroid Build Coastguard Worker return rsCreateAllocation(t); 1225*344a7f5eSAndroid Build Coastguard Worker} 1226*344a7f5eSAndroid Build Coastguard Worker#endif 1227*344a7f5eSAndroid Build Coastguard Worker 1228*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 24)) 1229*344a7f5eSAndroid Build Coastguard Workerstatic inline rs_allocation __attribute__((overloadable)) 1230*344a7f5eSAndroid Build Coastguard Worker rsCreateAllocation_ushort4(uint32_t dimX) { 1231*344a7f5eSAndroid Build Coastguard Worker rs_element e = rsCreateVectorElement(RS_TYPE_UNSIGNED_16, 4); 1232*344a7f5eSAndroid Build Coastguard Worker rs_type t = rsCreateType(e, dimX); 1233*344a7f5eSAndroid Build Coastguard Worker return rsCreateAllocation(t); 1234*344a7f5eSAndroid Build Coastguard Worker} 1235*344a7f5eSAndroid Build Coastguard Worker#endif 1236*344a7f5eSAndroid Build Coastguard Worker 1237*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 24)) 1238*344a7f5eSAndroid Build Coastguard Workerstatic inline rs_allocation __attribute__((overloadable)) 1239*344a7f5eSAndroid Build Coastguard Worker rsCreateAllocation_int2(uint32_t dimX) { 1240*344a7f5eSAndroid Build Coastguard Worker rs_element e = rsCreateVectorElement(RS_TYPE_SIGNED_32, 2); 1241*344a7f5eSAndroid Build Coastguard Worker rs_type t = rsCreateType(e, dimX); 1242*344a7f5eSAndroid Build Coastguard Worker return rsCreateAllocation(t); 1243*344a7f5eSAndroid Build Coastguard Worker} 1244*344a7f5eSAndroid Build Coastguard Worker#endif 1245*344a7f5eSAndroid Build Coastguard Worker 1246*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 24)) 1247*344a7f5eSAndroid Build Coastguard Workerstatic inline rs_allocation __attribute__((overloadable)) 1248*344a7f5eSAndroid Build Coastguard Worker rsCreateAllocation_int3(uint32_t dimX) { 1249*344a7f5eSAndroid Build Coastguard Worker rs_element e = rsCreateVectorElement(RS_TYPE_SIGNED_32, 3); 1250*344a7f5eSAndroid Build Coastguard Worker rs_type t = rsCreateType(e, dimX); 1251*344a7f5eSAndroid Build Coastguard Worker return rsCreateAllocation(t); 1252*344a7f5eSAndroid Build Coastguard Worker} 1253*344a7f5eSAndroid Build Coastguard Worker#endif 1254*344a7f5eSAndroid Build Coastguard Worker 1255*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 24)) 1256*344a7f5eSAndroid Build Coastguard Workerstatic inline rs_allocation __attribute__((overloadable)) 1257*344a7f5eSAndroid Build Coastguard Worker rsCreateAllocation_int4(uint32_t dimX) { 1258*344a7f5eSAndroid Build Coastguard Worker rs_element e = rsCreateVectorElement(RS_TYPE_SIGNED_32, 4); 1259*344a7f5eSAndroid Build Coastguard Worker rs_type t = rsCreateType(e, dimX); 1260*344a7f5eSAndroid Build Coastguard Worker return rsCreateAllocation(t); 1261*344a7f5eSAndroid Build Coastguard Worker} 1262*344a7f5eSAndroid Build Coastguard Worker#endif 1263*344a7f5eSAndroid Build Coastguard Worker 1264*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 24)) 1265*344a7f5eSAndroid Build Coastguard Workerstatic inline rs_allocation __attribute__((overloadable)) 1266*344a7f5eSAndroid Build Coastguard Worker rsCreateAllocation_uint2(uint32_t dimX) { 1267*344a7f5eSAndroid Build Coastguard Worker rs_element e = rsCreateVectorElement(RS_TYPE_UNSIGNED_32, 2); 1268*344a7f5eSAndroid Build Coastguard Worker rs_type t = rsCreateType(e, dimX); 1269*344a7f5eSAndroid Build Coastguard Worker return rsCreateAllocation(t); 1270*344a7f5eSAndroid Build Coastguard Worker} 1271*344a7f5eSAndroid Build Coastguard Worker#endif 1272*344a7f5eSAndroid Build Coastguard Worker 1273*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 24)) 1274*344a7f5eSAndroid Build Coastguard Workerstatic inline rs_allocation __attribute__((overloadable)) 1275*344a7f5eSAndroid Build Coastguard Worker rsCreateAllocation_uint3(uint32_t dimX) { 1276*344a7f5eSAndroid Build Coastguard Worker rs_element e = rsCreateVectorElement(RS_TYPE_UNSIGNED_32, 3); 1277*344a7f5eSAndroid Build Coastguard Worker rs_type t = rsCreateType(e, dimX); 1278*344a7f5eSAndroid Build Coastguard Worker return rsCreateAllocation(t); 1279*344a7f5eSAndroid Build Coastguard Worker} 1280*344a7f5eSAndroid Build Coastguard Worker#endif 1281*344a7f5eSAndroid Build Coastguard Worker 1282*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 24)) 1283*344a7f5eSAndroid Build Coastguard Workerstatic inline rs_allocation __attribute__((overloadable)) 1284*344a7f5eSAndroid Build Coastguard Worker rsCreateAllocation_uint4(uint32_t dimX) { 1285*344a7f5eSAndroid Build Coastguard Worker rs_element e = rsCreateVectorElement(RS_TYPE_UNSIGNED_32, 4); 1286*344a7f5eSAndroid Build Coastguard Worker rs_type t = rsCreateType(e, dimX); 1287*344a7f5eSAndroid Build Coastguard Worker return rsCreateAllocation(t); 1288*344a7f5eSAndroid Build Coastguard Worker} 1289*344a7f5eSAndroid Build Coastguard Worker#endif 1290*344a7f5eSAndroid Build Coastguard Worker 1291*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 24)) 1292*344a7f5eSAndroid Build Coastguard Workerstatic inline rs_allocation __attribute__((overloadable)) 1293*344a7f5eSAndroid Build Coastguard Worker rsCreateAllocation_long2(uint32_t dimX) { 1294*344a7f5eSAndroid Build Coastguard Worker rs_element e = rsCreateVectorElement(RS_TYPE_SIGNED_64, 2); 1295*344a7f5eSAndroid Build Coastguard Worker rs_type t = rsCreateType(e, dimX); 1296*344a7f5eSAndroid Build Coastguard Worker return rsCreateAllocation(t); 1297*344a7f5eSAndroid Build Coastguard Worker} 1298*344a7f5eSAndroid Build Coastguard Worker#endif 1299*344a7f5eSAndroid Build Coastguard Worker 1300*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 24)) 1301*344a7f5eSAndroid Build Coastguard Workerstatic inline rs_allocation __attribute__((overloadable)) 1302*344a7f5eSAndroid Build Coastguard Worker rsCreateAllocation_long3(uint32_t dimX) { 1303*344a7f5eSAndroid Build Coastguard Worker rs_element e = rsCreateVectorElement(RS_TYPE_SIGNED_64, 3); 1304*344a7f5eSAndroid Build Coastguard Worker rs_type t = rsCreateType(e, dimX); 1305*344a7f5eSAndroid Build Coastguard Worker return rsCreateAllocation(t); 1306*344a7f5eSAndroid Build Coastguard Worker} 1307*344a7f5eSAndroid Build Coastguard Worker#endif 1308*344a7f5eSAndroid Build Coastguard Worker 1309*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 24)) 1310*344a7f5eSAndroid Build Coastguard Workerstatic inline rs_allocation __attribute__((overloadable)) 1311*344a7f5eSAndroid Build Coastguard Worker rsCreateAllocation_long4(uint32_t dimX) { 1312*344a7f5eSAndroid Build Coastguard Worker rs_element e = rsCreateVectorElement(RS_TYPE_SIGNED_64, 4); 1313*344a7f5eSAndroid Build Coastguard Worker rs_type t = rsCreateType(e, dimX); 1314*344a7f5eSAndroid Build Coastguard Worker return rsCreateAllocation(t); 1315*344a7f5eSAndroid Build Coastguard Worker} 1316*344a7f5eSAndroid Build Coastguard Worker#endif 1317*344a7f5eSAndroid Build Coastguard Worker 1318*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 24)) 1319*344a7f5eSAndroid Build Coastguard Workerstatic inline rs_allocation __attribute__((overloadable)) 1320*344a7f5eSAndroid Build Coastguard Worker rsCreateAllocation_ulong2(uint32_t dimX) { 1321*344a7f5eSAndroid Build Coastguard Worker rs_element e = rsCreateVectorElement(RS_TYPE_UNSIGNED_64, 2); 1322*344a7f5eSAndroid Build Coastguard Worker rs_type t = rsCreateType(e, dimX); 1323*344a7f5eSAndroid Build Coastguard Worker return rsCreateAllocation(t); 1324*344a7f5eSAndroid Build Coastguard Worker} 1325*344a7f5eSAndroid Build Coastguard Worker#endif 1326*344a7f5eSAndroid Build Coastguard Worker 1327*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 24)) 1328*344a7f5eSAndroid Build Coastguard Workerstatic inline rs_allocation __attribute__((overloadable)) 1329*344a7f5eSAndroid Build Coastguard Worker rsCreateAllocation_ulong3(uint32_t dimX) { 1330*344a7f5eSAndroid Build Coastguard Worker rs_element e = rsCreateVectorElement(RS_TYPE_UNSIGNED_64, 3); 1331*344a7f5eSAndroid Build Coastguard Worker rs_type t = rsCreateType(e, dimX); 1332*344a7f5eSAndroid Build Coastguard Worker return rsCreateAllocation(t); 1333*344a7f5eSAndroid Build Coastguard Worker} 1334*344a7f5eSAndroid Build Coastguard Worker#endif 1335*344a7f5eSAndroid Build Coastguard Worker 1336*344a7f5eSAndroid Build Coastguard Worker#if (defined(RS_VERSION) && (RS_VERSION >= 24)) 1337*344a7f5eSAndroid Build Coastguard Workerstatic inline rs_allocation __attribute__((overloadable)) 1338*344a7f5eSAndroid Build Coastguard Worker rsCreateAllocation_ulong4(uint32_t dimX) { 1339*344a7f5eSAndroid Build Coastguard Worker rs_element e = rsCreateVectorElement(RS_TYPE_UNSIGNED_64, 4); 1340*344a7f5eSAndroid Build Coastguard Worker rs_type t = rsCreateType(e, dimX); 1341*344a7f5eSAndroid Build Coastguard Worker return rsCreateAllocation(t); 1342*344a7f5eSAndroid Build Coastguard Worker} 1343*344a7f5eSAndroid Build Coastguard Worker#endif 1344*344a7f5eSAndroid Build Coastguard Worker 1345*344a7f5eSAndroid Build Coastguard Worker#endif // RENDERSCRIPT_RS_ALLOCATION_CREATE_RSH 1346