1/* 2 * Copyright (C) 2015 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17// Don't edit this file! It is auto-generated by frameworks/rs/api/generate.sh. 18 19/* 20 * rs_graphics.rsh: Graphics Functions and Types 21 * 22 * The graphics subsystem of RenderScript was removed at API level 23. 23 */ 24 25#ifndef RENDERSCRIPT_RS_GRAPHICS_RSH 26#define RENDERSCRIPT_RS_GRAPHICS_RSH 27 28#ifdef __LP64__ 29// TODO We need to fix some of the builds before enabling this error: 30// #error "RenderScript graphics is deprecated and not supported in 64bit mode." 31#endif 32 33// TODO we seem to assume order for the other headers too. 34#include "rs_object_types.rsh" 35 36/* 37 * rs_blend_src_func: Blend source function 38 * 39 * DEPRECATED. Do not use. 40 * 41 */ 42#ifndef __LP64__ 43#if (defined(RS_VERSION) && (RS_VERSION >= 16) && (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22)) 44typedef enum __attribute__(( 45#if (defined(RS_VERSION) && (RS_VERSION >= 22)) 46deprecated 47#endif 48)) { 49 RS_BLEND_SRC_ZERO = 0, 50 RS_BLEND_SRC_ONE = 1, 51 RS_BLEND_SRC_DST_COLOR = 2, 52 RS_BLEND_SRC_ONE_MINUS_DST_COLOR = 3, 53 RS_BLEND_SRC_SRC_ALPHA = 4, 54 RS_BLEND_SRC_ONE_MINUS_SRC_ALPHA = 5, 55 RS_BLEND_SRC_DST_ALPHA = 6, 56 RS_BLEND_SRC_ONE_MINUS_DST_ALPHA = 7, 57 RS_BLEND_SRC_SRC_ALPHA_SATURATE = 8, 58 RS_BLEND_SRC_INVALID = 100 59} rs_blend_src_func; 60#endif 61#endif 62 63/* 64 * rs_blend_dst_func: Blend destination function 65 * 66 * DEPRECATED. Do not use. 67 * 68 */ 69#ifndef __LP64__ 70#if (defined(RS_VERSION) && (RS_VERSION >= 16) && (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22)) 71typedef enum __attribute__(( 72#if (defined(RS_VERSION) && (RS_VERSION >= 22)) 73deprecated 74#endif 75)) { 76 RS_BLEND_DST_ZERO = 0, 77 RS_BLEND_DST_ONE = 1, 78 RS_BLEND_DST_SRC_COLOR = 2, 79 RS_BLEND_DST_ONE_MINUS_SRC_COLOR = 3, 80 RS_BLEND_DST_SRC_ALPHA = 4, 81 RS_BLEND_DST_ONE_MINUS_SRC_ALPHA = 5, 82 RS_BLEND_DST_DST_ALPHA = 6, 83 RS_BLEND_DST_ONE_MINUS_DST_ALPHA = 7, 84 RS_BLEND_DST_INVALID = 100 85} rs_blend_dst_func; 86#endif 87#endif 88 89/* 90 * rs_cull_mode: Culling mode 91 * 92 * DEPRECATED. Do not use. 93 * 94 */ 95#ifndef __LP64__ 96#if (defined(RS_VERSION) && (RS_VERSION >= 16) && (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22)) 97typedef enum __attribute__(( 98#if (defined(RS_VERSION) && (RS_VERSION >= 22)) 99deprecated 100#endif 101)) { 102 RS_CULL_BACK = 0, 103 RS_CULL_FRONT = 1, 104 RS_CULL_NONE = 2, 105 RS_CULL_INVALID = 100 106} rs_cull_mode; 107#endif 108#endif 109 110/* 111 * rs_depth_func: Depth function 112 * 113 * DEPRECATED. Do not use. 114 * 115 * Specifies conditional drawing depending on the comparison of the incoming 116 * depth to that found in the depth buffer. 117 */ 118#ifndef __LP64__ 119#if (defined(RS_VERSION) && (RS_VERSION >= 16) && (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22)) 120typedef enum __attribute__(( 121#if (defined(RS_VERSION) && (RS_VERSION >= 22)) 122deprecated 123#endif 124)) { 125 RS_DEPTH_FUNC_ALWAYS = 0, // Always drawn 126 RS_DEPTH_FUNC_LESS = 1, // Drawn if the incoming depth value is less than that in the depth buffer 127 RS_DEPTH_FUNC_LEQUAL = 2, // Drawn if the incoming depth value is less or equal to that in the depth buffer 128 RS_DEPTH_FUNC_GREATER = 3, // Drawn if the incoming depth value is greater than that in the depth buffer 129 RS_DEPTH_FUNC_GEQUAL = 4, // Drawn if the incoming depth value is greater or equal to that in the depth buffer 130 RS_DEPTH_FUNC_EQUAL = 5, // Drawn if the incoming depth value is equal to that in the depth buffer 131 RS_DEPTH_FUNC_NOTEQUAL = 6, // Drawn if the incoming depth value is not equal to that in the depth buffer 132 RS_DEPTH_FUNC_INVALID = 100 // Invalid depth function 133} rs_depth_func; 134#endif 135#endif 136 137/* 138 * rs_primitive: How to intepret mesh vertex data 139 * 140 * DEPRECATED. Do not use. 141 * 142 * Describes the way mesh vertex data is interpreted when rendering 143 */ 144#ifndef __LP64__ 145#if (defined(RS_VERSION) && (RS_VERSION >= 16) && (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22)) 146typedef enum __attribute__(( 147#if (defined(RS_VERSION) && (RS_VERSION >= 22)) 148deprecated 149#endif 150)) { 151 RS_PRIMITIVE_POINT = 0, // Vertex data will be rendered as a series of points 152 RS_PRIMITIVE_LINE = 1, // Vertex pairs will be rendered as lines 153 RS_PRIMITIVE_LINE_STRIP = 2, // Vertex data will be rendered as a connected line strip 154 RS_PRIMITIVE_TRIANGLE = 3, // Vertices will be rendered as individual triangles 155 RS_PRIMITIVE_TRIANGLE_STRIP = 4, // Vertices will be rendered as a connected triangle strip defined by the first three vertices with each additional triangle defined by a new vertex 156 RS_PRIMITIVE_TRIANGLE_FAN = 5, // Vertices will be rendered as a sequence of triangles that all share first vertex as the origin 157 RS_PRIMITIVE_INVALID = 100 // Invalid primitive 158} rs_primitive; 159#endif 160#endif 161 162/* 163 * rs_font: Handle to a Font 164 * 165 * DEPRECATED. Do not use. 166 * 167 * Opaque handle to a RenderScript font object. 168 * See: android.renderscript.Font 169 */ 170#ifndef __LP64__ 171#if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22) 172typedef _RS_HANDLE __attribute__(( 173#if (defined(RS_VERSION) && (RS_VERSION >= 22)) 174deprecated 175#endif 176)) rs_font; 177#endif 178#endif 179 180/* 181 * rs_mesh: Handle to a Mesh 182 * 183 * DEPRECATED. Do not use. 184 * 185 * Opaque handle to a RenderScript mesh object. 186 * See: android.renderscript.Mesh 187 */ 188#ifndef __LP64__ 189#if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22) 190typedef _RS_HANDLE __attribute__(( 191#if (defined(RS_VERSION) && (RS_VERSION >= 22)) 192deprecated 193#endif 194)) rs_mesh; 195#endif 196#endif 197 198/* 199 * rs_program_fragment: Handle to a ProgramFragment 200 * 201 * DEPRECATED. Do not use. 202 * 203 * Opaque handle to a RenderScript ProgramFragment object. 204 * See: android.renderscript.ProgramFragment 205 */ 206#ifndef __LP64__ 207#if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22) 208typedef _RS_HANDLE __attribute__(( 209#if (defined(RS_VERSION) && (RS_VERSION >= 22)) 210deprecated 211#endif 212)) rs_program_fragment; 213#endif 214#endif 215 216/* 217 * rs_program_vertex: Handle to a ProgramVertex 218 * 219 * DEPRECATED. Do not use. 220 * 221 * Opaque handle to a RenderScript ProgramVertex object. 222 * See: android.renderscript.ProgramVertex 223 */ 224#ifndef __LP64__ 225#if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22) 226typedef _RS_HANDLE __attribute__(( 227#if (defined(RS_VERSION) && (RS_VERSION >= 22)) 228deprecated 229#endif 230)) rs_program_vertex; 231#endif 232#endif 233 234/* 235 * rs_program_raster: Handle to a ProgramRaster 236 * 237 * DEPRECATED. Do not use. 238 * 239 * Opaque handle to a RenderScript ProgramRaster object. 240 * See: android.renderscript.ProgramRaster 241 */ 242#ifndef __LP64__ 243#if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22) 244typedef _RS_HANDLE __attribute__(( 245#if (defined(RS_VERSION) && (RS_VERSION >= 22)) 246deprecated 247#endif 248)) rs_program_raster; 249#endif 250#endif 251 252/* 253 * rs_program_store: Handle to a ProgramStore 254 * 255 * DEPRECATED. Do not use. 256 * 257 * Opaque handle to a RenderScript ProgramStore object. 258 * See: android.renderscript.ProgramStore 259 */ 260#ifndef __LP64__ 261#if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22) 262typedef _RS_HANDLE __attribute__(( 263#if (defined(RS_VERSION) && (RS_VERSION >= 22)) 264deprecated 265#endif 266)) rs_program_store; 267#endif 268#endif 269 270/* 271 * rsClearObject: Release an object 272 * 273 * Tells the run time that this handle will no longer be used to access the the related 274 * object. If this was the last handle to that object, resource recovery may happen. 275 * 276 * After calling this function, *dst will be set to an empty handle. See rsIsObject(). 277 */ 278#ifndef __LP64__ 279#if !defined(RS_VERSION) || (RS_VERSION <= 22) 280extern void __attribute__((overloadable)) 281 rsClearObject(rs_mesh* dst); 282#endif 283#endif 284 285#ifndef __LP64__ 286#if !defined(RS_VERSION) || (RS_VERSION <= 22) 287extern void __attribute__((overloadable)) 288 rsClearObject(rs_program_fragment* dst); 289#endif 290#endif 291 292#ifndef __LP64__ 293#if !defined(RS_VERSION) || (RS_VERSION <= 22) 294extern void __attribute__((overloadable)) 295 rsClearObject(rs_program_vertex* dst); 296#endif 297#endif 298 299#ifndef __LP64__ 300#if !defined(RS_VERSION) || (RS_VERSION <= 22) 301extern void __attribute__((overloadable)) 302 rsClearObject(rs_program_raster* dst); 303#endif 304#endif 305 306#ifndef __LP64__ 307#if !defined(RS_VERSION) || (RS_VERSION <= 22) 308extern void __attribute__((overloadable)) 309 rsClearObject(rs_program_store* dst); 310#endif 311#endif 312 313#ifndef __LP64__ 314#if !defined(RS_VERSION) || (RS_VERSION <= 22) 315extern void __attribute__((overloadable)) 316 rsClearObject(rs_font* dst); 317#endif 318#endif 319 320/* 321 * rsIsObject: Check for an empty handle 322 * 323 * Returns true if the handle contains a non-null reference. 324 * 325 * This function does not validate that the internal pointer used in the handle 326 * points to an actual valid object; it only checks for null. 327 * 328 * This function can be used to check the Element returned by rsElementGetSubElement() 329 * or see if rsClearObject() has been called on a handle. 330 */ 331#ifndef __LP64__ 332#if !defined(RS_VERSION) || (RS_VERSION <= 22) 333extern bool __attribute__((overloadable)) 334 rsIsObject(rs_mesh v); 335#endif 336#endif 337 338#ifndef __LP64__ 339#if !defined(RS_VERSION) || (RS_VERSION <= 22) 340extern bool __attribute__((overloadable)) 341 rsIsObject(rs_program_fragment v); 342#endif 343#endif 344 345#ifndef __LP64__ 346#if !defined(RS_VERSION) || (RS_VERSION <= 22) 347extern bool __attribute__((overloadable)) 348 rsIsObject(rs_program_vertex v); 349#endif 350#endif 351 352#ifndef __LP64__ 353#if !defined(RS_VERSION) || (RS_VERSION <= 22) 354extern bool __attribute__((overloadable)) 355 rsIsObject(rs_program_raster v); 356#endif 357#endif 358 359#ifndef __LP64__ 360#if !defined(RS_VERSION) || (RS_VERSION <= 22) 361extern bool __attribute__((overloadable)) 362 rsIsObject(rs_program_store v); 363#endif 364#endif 365 366#ifndef __LP64__ 367#if !defined(RS_VERSION) || (RS_VERSION <= 22) 368extern bool __attribute__((overloadable)) 369 rsIsObject(rs_font v); 370#endif 371#endif 372 373/* 374 * rsSetObject: For internal use. 375 * 376 */ 377#ifndef __LP64__ 378#if !defined(RS_VERSION) || (RS_VERSION <= 22) 379extern void __attribute__((overloadable)) 380 rsSetObject(rs_mesh* dst, rs_mesh src); 381#endif 382#endif 383 384#ifndef __LP64__ 385#if !defined(RS_VERSION) || (RS_VERSION <= 22) 386extern void __attribute__((overloadable)) 387 rsSetObject(rs_program_fragment* dst, rs_program_fragment src); 388#endif 389#endif 390 391#ifndef __LP64__ 392#if !defined(RS_VERSION) || (RS_VERSION <= 22) 393extern void __attribute__((overloadable)) 394 rsSetObject(rs_program_vertex* dst, rs_program_vertex src); 395#endif 396#endif 397 398#ifndef __LP64__ 399#if !defined(RS_VERSION) || (RS_VERSION <= 22) 400extern void __attribute__((overloadable)) 401 rsSetObject(rs_program_raster* dst, rs_program_raster src); 402#endif 403#endif 404 405#ifndef __LP64__ 406#if !defined(RS_VERSION) || (RS_VERSION <= 22) 407extern void __attribute__((overloadable)) 408 rsSetObject(rs_program_store* dst, rs_program_store src); 409#endif 410#endif 411 412#ifndef __LP64__ 413#if !defined(RS_VERSION) || (RS_VERSION <= 22) 414extern void __attribute__((overloadable)) 415 rsSetObject(rs_font* dst, rs_font src); 416#endif 417#endif 418 419/* 420 * rsgAllocationSyncAll: Sync the contents of an allocation 421 * 422 * DEPRECATED. Do not use. 423 * 424 * Sync the contents of an allocation. 425 * 426 * If the source is specified, sync from memory space specified by source. 427 * 428 * If the source is not specified, sync from its SCRIPT memory space to its HW 429 * memory spaces. 430 */ 431#ifndef __LP64__ 432#if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22) 433extern void __attribute__((overloadable 434#if (defined(RS_VERSION) && (RS_VERSION >= 22)) 435, deprecated 436#endif 437)) 438 rsgAllocationSyncAll(rs_allocation alloc); 439#endif 440#endif 441 442#ifndef __LP64__ 443#if (defined(RS_VERSION) && (RS_VERSION >= 14) && (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22)) 444extern void __attribute__((overloadable 445#if (defined(RS_VERSION) && (RS_VERSION >= 22)) 446, deprecated 447#endif 448)) 449 rsgAllocationSyncAll(rs_allocation alloc, rs_allocation_usage_type source); 450#endif 451#endif 452 453/* 454 * rsgBindColorTarget: Set the color target 455 * 456 * DEPRECATED. Do not use. 457 * 458 * Set the color target used for all subsequent rendering calls 459 */ 460#ifndef __LP64__ 461#if (defined(RS_VERSION) && (RS_VERSION >= 14) && (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22)) 462extern void __attribute__((overloadable 463#if (defined(RS_VERSION) && (RS_VERSION >= 22)) 464, deprecated 465#endif 466)) 467 rsgBindColorTarget(rs_allocation colorTarget, uint slot); 468#endif 469#endif 470 471/* 472 * rsgBindConstant: Bind a constant allocation 473 * 474 * DEPRECATED. Do not use. 475 * 476 * Bind a new Allocation object to a ProgramFragment or ProgramVertex. 477 * The Allocation must be a valid constant input for the Program. 478 * 479 * Parameters: 480 * ps: program fragment object 481 * slot: index of the constant buffer on the program 482 * c: constants to bind 483 * pv: program vertex object 484 */ 485#ifndef __LP64__ 486#if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22) 487extern void __attribute__((overloadable 488#if (defined(RS_VERSION) && (RS_VERSION >= 22)) 489, deprecated 490#endif 491)) 492 rsgBindConstant(rs_program_fragment ps, uint slot, rs_allocation c); 493#endif 494#endif 495 496#ifndef __LP64__ 497#if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22) 498extern void __attribute__((overloadable 499#if (defined(RS_VERSION) && (RS_VERSION >= 22)) 500, deprecated 501#endif 502)) 503 rsgBindConstant(rs_program_vertex pv, uint slot, rs_allocation c); 504#endif 505#endif 506 507/* 508 * rsgBindDepthTarget: Set the depth target 509 * 510 * DEPRECATED. Do not use. 511 * 512 * Set the depth target used for all subsequent rendering calls 513 */ 514#ifndef __LP64__ 515#if (defined(RS_VERSION) && (RS_VERSION >= 14) && (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22)) 516extern void __attribute__((overloadable 517#if (defined(RS_VERSION) && (RS_VERSION >= 22)) 518, deprecated 519#endif 520)) 521 rsgBindDepthTarget(rs_allocation depthTarget); 522#endif 523#endif 524 525/* 526 * rsgBindFont: Bind a font object 527 * 528 * DEPRECATED. Do not use. 529 * 530 * Binds the font object to be used for all subsequent font rendering calls 531 * 532 * Parameters: 533 * font: object to bind 534 */ 535#ifndef __LP64__ 536#if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22) 537extern void __attribute__((overloadable 538#if (defined(RS_VERSION) && (RS_VERSION >= 22)) 539, deprecated 540#endif 541)) 542 rsgBindFont(rs_font font); 543#endif 544#endif 545 546/* 547 * rsgBindProgramFragment: Bind a ProgramFragment 548 * 549 * DEPRECATED. Do not use. 550 * 551 * Bind a new ProgramFragment to the rendering context. 552 */ 553#ifndef __LP64__ 554#if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22) 555extern void __attribute__((overloadable 556#if (defined(RS_VERSION) && (RS_VERSION >= 22)) 557, deprecated 558#endif 559)) 560 rsgBindProgramFragment(rs_program_fragment pf); 561#endif 562#endif 563 564/* 565 * rsgBindProgramRaster: Bind a ProgramRaster 566 * 567 * DEPRECATED. Do not use. 568 * 569 * Bind a new ProgramRaster to the rendering context. 570 */ 571#ifndef __LP64__ 572#if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22) 573extern void __attribute__((overloadable 574#if (defined(RS_VERSION) && (RS_VERSION >= 22)) 575, deprecated 576#endif 577)) 578 rsgBindProgramRaster(rs_program_raster pr); 579#endif 580#endif 581 582/* 583 * rsgBindProgramStore: Bind a ProgramStore 584 * 585 * DEPRECATED. Do not use. 586 * 587 * Bind a new ProgramStore to the rendering context. 588 */ 589#ifndef __LP64__ 590#if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22) 591extern void __attribute__((overloadable 592#if (defined(RS_VERSION) && (RS_VERSION >= 22)) 593, deprecated 594#endif 595)) 596 rsgBindProgramStore(rs_program_store ps); 597#endif 598#endif 599 600/* 601 * rsgBindProgramVertex: Bind a ProgramVertex 602 * 603 * DEPRECATED. Do not use. 604 * 605 * Bind a new ProgramVertex to the rendering context. 606 */ 607#ifndef __LP64__ 608#if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22) 609extern void __attribute__((overloadable 610#if (defined(RS_VERSION) && (RS_VERSION >= 22)) 611, deprecated 612#endif 613)) 614 rsgBindProgramVertex(rs_program_vertex pv); 615#endif 616#endif 617 618/* 619 * rsgBindSampler: Bind a sampler 620 * 621 * DEPRECATED. Do not use. 622 * 623 * Bind a new Sampler object to a ProgramFragment. The sampler will 624 * operate on the texture bound at the matching slot. 625 */ 626#ifndef __LP64__ 627#if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22) 628extern void __attribute__((overloadable 629#if (defined(RS_VERSION) && (RS_VERSION >= 22)) 630, deprecated 631#endif 632)) 633 rsgBindSampler(rs_program_fragment fragment, uint slot, rs_sampler sampler); 634#endif 635#endif 636 637/* 638 * rsgBindTexture: Bind a texture allocation 639 * 640 * DEPRECATED. Do not use. 641 * 642 * Bind a new Allocation object to a ProgramFragment. The 643 * Allocation must be a valid texture for the Program. The sampling 644 * of the texture will be controled by the Sampler bound at the 645 * matching slot. 646 */ 647#ifndef __LP64__ 648#if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22) 649extern void __attribute__((overloadable 650#if (defined(RS_VERSION) && (RS_VERSION >= 22)) 651, deprecated 652#endif 653)) 654 rsgBindTexture(rs_program_fragment v, uint slot, rs_allocation alloc); 655#endif 656#endif 657 658/* 659 * rsgClearAllRenderTargets: Clear all color and depth targets 660 * 661 * DEPRECATED. Do not use. 662 * 663 * Clear all color and depth targets and resume rendering into 664 * the framebuffer 665 */ 666#ifndef __LP64__ 667#if (defined(RS_VERSION) && (RS_VERSION >= 14) && (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22)) 668extern void __attribute__((overloadable 669#if (defined(RS_VERSION) && (RS_VERSION >= 22)) 670, deprecated 671#endif 672)) 673 rsgClearAllRenderTargets(void); 674#endif 675#endif 676 677/* 678 * rsgClearColor: Clear the specified color from the surface 679 * 680 * DEPRECATED. Do not use. 681 * 682 * Clears the rendering surface to the specified color. 683 */ 684#ifndef __LP64__ 685#if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22) 686extern void __attribute__((overloadable 687#if (defined(RS_VERSION) && (RS_VERSION >= 22)) 688, deprecated 689#endif 690)) 691 rsgClearColor(float r, float g, float b, float a); 692#endif 693#endif 694 695/* 696 * rsgClearColorTarget: Clear the color target 697 * 698 * DEPRECATED. Do not use. 699 * 700 * Clear the previously set color target 701 */ 702#ifndef __LP64__ 703#if (defined(RS_VERSION) && (RS_VERSION >= 14) && (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22)) 704extern void __attribute__((overloadable 705#if (defined(RS_VERSION) && (RS_VERSION >= 22)) 706, deprecated 707#endif 708)) 709 rsgClearColorTarget(uint slot); 710#endif 711#endif 712 713/* 714 * rsgClearDepth: Clear the depth surface 715 * 716 * DEPRECATED. Do not use. 717 * 718 * Clears the depth suface to the specified value. 719 */ 720#ifndef __LP64__ 721#if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22) 722extern void __attribute__((overloadable 723#if (defined(RS_VERSION) && (RS_VERSION >= 22)) 724, deprecated 725#endif 726)) 727 rsgClearDepth(float value); 728#endif 729#endif 730 731/* 732 * rsgClearDepthTarget: Clear the depth target 733 * 734 * DEPRECATED. Do not use. 735 * 736 * Clear the previously set depth target 737 */ 738#ifndef __LP64__ 739#if (defined(RS_VERSION) && (RS_VERSION >= 14) && (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22)) 740extern void __attribute__((overloadable 741#if (defined(RS_VERSION) && (RS_VERSION >= 22)) 742, deprecated 743#endif 744)) 745 rsgClearDepthTarget(void); 746#endif 747#endif 748 749/* 750 * rsgDrawMesh: Draw a mesh 751 * 752 * DEPRECATED. Do not use. 753 * 754 * Draw a mesh using the current context state. 755 * 756 * If primitiveIndex is specified, draw part of a mesh using the current context state. 757 * 758 * If start and len are also specified, draw specified index range of part of a mesh using the current context state. 759 * 760 * Otherwise the whole mesh is rendered. 761 * 762 * Parameters: 763 * ism: mesh object to render 764 * primitiveIndex: for meshes that contain multiple primitive groups this parameter specifies the index of the group to draw. 765 * start: starting index in the range 766 * len: number of indices to draw 767 */ 768#ifndef __LP64__ 769#if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22) 770extern void __attribute__((overloadable 771#if (defined(RS_VERSION) && (RS_VERSION >= 22)) 772, deprecated 773#endif 774)) 775 rsgDrawMesh(rs_mesh ism); 776#endif 777#endif 778 779#ifndef __LP64__ 780#if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22) 781extern void __attribute__((overloadable 782#if (defined(RS_VERSION) && (RS_VERSION >= 22)) 783, deprecated 784#endif 785)) 786 rsgDrawMesh(rs_mesh ism, uint primitiveIndex); 787#endif 788#endif 789 790#ifndef __LP64__ 791#if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22) 792extern void __attribute__((overloadable 793#if (defined(RS_VERSION) && (RS_VERSION >= 22)) 794, deprecated 795#endif 796)) 797 rsgDrawMesh(rs_mesh ism, uint primitiveIndex, uint start, uint len); 798#endif 799#endif 800 801/* 802 * rsgDrawQuad: Draw a quad 803 * 804 * DEPRECATED. Do not use. 805 * 806 * Low performance utility function for drawing a simple quad. Not intended for 807 * drawing large quantities of geometry. 808 */ 809#ifndef __LP64__ 810#if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22) 811extern void __attribute__((overloadable 812#if (defined(RS_VERSION) && (RS_VERSION >= 22)) 813, deprecated 814#endif 815)) 816 rsgDrawQuad(float x1, float y1, float z1, float x2, float y2, float z2, float x3, float y3, 817 float z3, float x4, float y4, float z4); 818#endif 819#endif 820 821/* 822 * rsgDrawQuadTexCoords: Draw a textured quad 823 * 824 * DEPRECATED. Do not use. 825 * 826 * Low performance utility function for drawing a textured quad. Not intended 827 * for drawing large quantities of geometry. 828 */ 829#ifndef __LP64__ 830#if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22) 831extern void __attribute__((overloadable 832#if (defined(RS_VERSION) && (RS_VERSION >= 22)) 833, deprecated 834#endif 835)) 836 rsgDrawQuadTexCoords(float x1, float y1, float z1, float u1, float v1, float x2, float y2, 837 float z2, float u2, float v2, float x3, float y3, float z3, float u3, 838 float v3, float x4, float y4, float z4, float u4, float v4); 839#endif 840#endif 841 842/* 843 * rsgDrawRect: Draw a rectangle 844 * 845 * DEPRECATED. Do not use. 846 * 847 * Low performance utility function for drawing a simple rectangle. Not 848 * intended for drawing large quantities of geometry. 849 */ 850#ifndef __LP64__ 851#if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22) 852extern void __attribute__((overloadable 853#if (defined(RS_VERSION) && (RS_VERSION >= 22)) 854, deprecated 855#endif 856)) 857 rsgDrawRect(float x1, float y1, float x2, float y2, float z); 858#endif 859#endif 860 861/* 862 * rsgDrawSpriteScreenspace: Draw rectangles in screenspace 863 * 864 * DEPRECATED. Do not use. 865 * 866 * Low performance function for drawing rectangles in screenspace. This 867 * function uses the default passthough ProgramVertex. Any bound ProgramVertex 868 * is ignored. This function has considerable overhead and should not be used 869 * for drawing in shipping applications. 870 */ 871#ifndef __LP64__ 872#if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22) 873extern void __attribute__((overloadable 874#if (defined(RS_VERSION) && (RS_VERSION >= 22)) 875, deprecated 876#endif 877)) 878 rsgDrawSpriteScreenspace(float x, float y, float z, float w, float h); 879#endif 880#endif 881 882/* 883 * rsgDrawText: Draw a text string 884 * 885 * DEPRECATED. Do not use. 886 * 887 * Draws text given a string and location 888 */ 889#ifndef __LP64__ 890#if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22) 891extern void __attribute__((overloadable 892#if (defined(RS_VERSION) && (RS_VERSION >= 22)) 893, deprecated 894#endif 895)) 896 rsgDrawText(const char* text, int x, int y); 897#endif 898#endif 899 900#ifndef __LP64__ 901#if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22) 902extern void __attribute__((overloadable 903#if (defined(RS_VERSION) && (RS_VERSION >= 22)) 904, deprecated 905#endif 906)) 907 rsgDrawText(rs_allocation alloc, int x, int y); 908#endif 909#endif 910 911/* 912 * rsgFinish: End rendering commands 913 * 914 * DEPRECATED. Do not use. 915 * 916 * Force RenderScript to finish all rendering commands 917 */ 918#ifndef __LP64__ 919#if (defined(RS_VERSION) && (RS_VERSION >= 14) && (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22)) 920extern uint __attribute__((overloadable 921#if (defined(RS_VERSION) && (RS_VERSION >= 22)) 922, deprecated 923#endif 924)) 925 rsgFinish(void); 926#endif 927#endif 928 929/* 930 * rsgFontColor: Set the font color 931 * 932 * DEPRECATED. Do not use. 933 * 934 * Sets the font color for all subsequent rendering calls 935 * 936 * Parameters: 937 * r: red component 938 * g: green component 939 * b: blue component 940 * a: alpha component 941 */ 942#ifndef __LP64__ 943#if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22) 944extern void __attribute__((overloadable 945#if (defined(RS_VERSION) && (RS_VERSION >= 22)) 946, deprecated 947#endif 948)) 949 rsgFontColor(float r, float g, float b, float a); 950#endif 951#endif 952 953/* 954 * rsgGetHeight: Get the surface height 955 * 956 * DEPRECATED. Do not use. 957 * 958 * Get the height of the current rendering surface. 959 */ 960#ifndef __LP64__ 961#if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22) 962extern uint __attribute__((overloadable 963#if (defined(RS_VERSION) && (RS_VERSION >= 22)) 964, deprecated 965#endif 966)) 967 rsgGetHeight(void); 968#endif 969#endif 970 971/* 972 * rsgGetWidth: Get the surface width 973 * 974 * DEPRECATED. Do not use. 975 * 976 * Get the width of the current rendering surface. 977 */ 978#ifndef __LP64__ 979#if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22) 980extern uint __attribute__((overloadable 981#if (defined(RS_VERSION) && (RS_VERSION >= 22)) 982, deprecated 983#endif 984)) 985 rsgGetWidth(void); 986#endif 987#endif 988 989/* 990 * rsgMeasureText: Get the bounding box for a text string 991 * 992 * DEPRECATED. Do not use. 993 * 994 * Returns the bounding box of the text relative to (0, 0) 995 * Any of left, right, top, bottom could be NULL 996 */ 997#ifndef __LP64__ 998#if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22) 999extern void __attribute__((overloadable 1000#if (defined(RS_VERSION) && (RS_VERSION >= 22)) 1001, deprecated 1002#endif 1003)) 1004 rsgMeasureText(const char* text, int* left, int* right, int* top, int* bottom); 1005#endif 1006#endif 1007 1008#ifndef __LP64__ 1009#if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22) 1010extern void __attribute__((overloadable 1011#if (defined(RS_VERSION) && (RS_VERSION >= 22)) 1012, deprecated 1013#endif 1014)) 1015 rsgMeasureText(rs_allocation alloc, int* left, int* right, int* top, int* bottom); 1016#endif 1017#endif 1018 1019/* 1020 * rsgMeshComputeBoundingBox: Compute a bounding box 1021 * 1022 * DEPRECATED. Do not use. 1023 * 1024 * Computes an axis aligned bounding box of a mesh object 1025 */ 1026#ifndef __LP64__ 1027#if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22) 1028extern void __attribute__((overloadable 1029#if (defined(RS_VERSION) && (RS_VERSION >= 22)) 1030, deprecated 1031#endif 1032)) 1033 rsgMeshComputeBoundingBox(rs_mesh mesh, float* minX, float* minY, float* min, float* maxX, 1034 float* maxY, float* maxZ); 1035#endif 1036#endif 1037 1038#ifndef __LP64__ 1039#if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22) 1040static inline void __attribute__((always_inline, overloadable 1041#if (defined(RS_VERSION) && (RS_VERSION >= 22)) 1042, deprecated 1043#endif 1044)) 1045 rsgMeshComputeBoundingBox(rs_mesh mesh, float3* bBoxMin, float3* bBoxMax) { 1046 float x1, y1, z1, x2, y2, z2; 1047 rsgMeshComputeBoundingBox(mesh, &x1, &y1, &z1, &x2, &y2, &z2); 1048 bBoxMin->x = x1; 1049 bBoxMin->y = y1; 1050 bBoxMin->z = z1; 1051 bBoxMax->x = x2; 1052 bBoxMax->y = y2; 1053 bBoxMax->z = z2; 1054} 1055#endif 1056#endif 1057 1058/* 1059 * rsgMeshGetIndexAllocation: Return an allocation containing index data 1060 * 1061 * DEPRECATED. Do not use. 1062 * 1063 * Returns an allocation containing index data or a null 1064 * allocation if only the primitive is specified 1065 * 1066 * Parameters: 1067 * m: mesh to get data from 1068 * index: index of the index allocation 1069 * 1070 * Returns: allocation containing index data 1071 */ 1072#ifndef __LP64__ 1073#if (defined(RS_VERSION) && (RS_VERSION >= 16) && (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22)) 1074extern rs_allocation __attribute__((overloadable 1075#if (defined(RS_VERSION) && (RS_VERSION >= 22)) 1076, deprecated 1077#endif 1078)) 1079 rsgMeshGetIndexAllocation(rs_mesh m, uint32_t index); 1080#endif 1081#endif 1082 1083/* 1084 * rsgMeshGetPrimitive: Return the primitive 1085 * 1086 * DEPRECATED. Do not use. 1087 * 1088 * Returns the primitive describing how a part of the mesh is 1089 * rendered 1090 * 1091 * Parameters: 1092 * m: mesh to get data from 1093 * index: index of the primitive 1094 * 1095 * Returns: primitive describing how the mesh is rendered 1096 */ 1097#ifndef __LP64__ 1098#if (defined(RS_VERSION) && (RS_VERSION >= 16) && (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22)) 1099extern rs_primitive __attribute__((overloadable 1100#if (defined(RS_VERSION) && (RS_VERSION >= 22)) 1101, deprecated 1102#endif 1103)) 1104 rsgMeshGetPrimitive(rs_mesh m, uint32_t index); 1105#endif 1106#endif 1107 1108/* 1109 * rsgMeshGetPrimitiveCount: Return the number of index sets 1110 * 1111 * DEPRECATED. Do not use. 1112 * 1113 * Meshes could have multiple index sets, this function returns 1114 * the number. 1115 * 1116 * Parameters: 1117 * m: mesh to get data from 1118 * 1119 * Returns: number of primitive groups in the mesh. This would include simple primitives as well as allocations containing index data 1120 */ 1121#ifndef __LP64__ 1122#if (defined(RS_VERSION) && (RS_VERSION >= 16) && (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22)) 1123extern uint32_t __attribute__((overloadable 1124#if (defined(RS_VERSION) && (RS_VERSION >= 22)) 1125, deprecated 1126#endif 1127)) 1128 rsgMeshGetPrimitiveCount(rs_mesh m); 1129#endif 1130#endif 1131 1132/* 1133 * rsgMeshGetVertexAllocation: Return a vertex allocation 1134 * 1135 * DEPRECATED. Do not use. 1136 * 1137 * Returns an allocation that is part of the mesh and contains 1138 * vertex data, e.g. positions, normals, texcoords 1139 * 1140 * Parameters: 1141 * m: mesh to get data from 1142 * index: index of the vertex allocation 1143 * 1144 * Returns: allocation containing vertex data 1145 */ 1146#ifndef __LP64__ 1147#if (defined(RS_VERSION) && (RS_VERSION >= 16) && (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22)) 1148extern rs_allocation __attribute__((overloadable 1149#if (defined(RS_VERSION) && (RS_VERSION >= 22)) 1150, deprecated 1151#endif 1152)) 1153 rsgMeshGetVertexAllocation(rs_mesh m, uint32_t index); 1154#endif 1155#endif 1156 1157/* 1158 * rsgMeshGetVertexAllocationCount: Return the number of vertex allocations 1159 * 1160 * DEPRECATED. Do not use. 1161 * 1162 * Returns the number of allocations in the mesh that contain 1163 * vertex data 1164 * 1165 * Parameters: 1166 * m: mesh to get data from 1167 * 1168 * Returns: number of allocations in the mesh that contain vertex data 1169 */ 1170#ifndef __LP64__ 1171#if (defined(RS_VERSION) && (RS_VERSION >= 16) && (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22)) 1172extern uint32_t __attribute__((overloadable 1173#if (defined(RS_VERSION) && (RS_VERSION >= 22)) 1174, deprecated 1175#endif 1176)) 1177 rsgMeshGetVertexAllocationCount(rs_mesh m); 1178#endif 1179#endif 1180 1181/* 1182 * rsgProgramFragmentConstantColor: Set the constant color for a fixed function emulation program 1183 * 1184 * DEPRECATED. Do not use. 1185 * 1186 * Set the constant color for a fixed function emulation program. 1187 */ 1188#ifndef __LP64__ 1189#if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22) 1190extern void __attribute__((overloadable 1191#if (defined(RS_VERSION) && (RS_VERSION >= 22)) 1192, deprecated 1193#endif 1194)) 1195 rsgProgramFragmentConstantColor(rs_program_fragment pf, float r, float g, float b, float a); 1196#endif 1197#endif 1198 1199/* 1200 * rsgProgramVertexGetProjectionMatrix: Get the projection matrix for a fixed function vertex program 1201 * 1202 * DEPRECATED. Do not use. 1203 * 1204 * Get the projection matrix for a currently bound fixed function 1205 * vertex program. Calling this function with a custom vertex shader 1206 * would result in an error. 1207 * 1208 * Parameters: 1209 * proj: matrix to store the current projection matrix into 1210 */ 1211#ifndef __LP64__ 1212#if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22) 1213extern void __attribute__((overloadable 1214#if (defined(RS_VERSION) && (RS_VERSION >= 22)) 1215, deprecated 1216#endif 1217)) 1218 rsgProgramVertexGetProjectionMatrix(rs_matrix4x4* proj); 1219#endif 1220#endif 1221 1222/* 1223 * rsgProgramVertexLoadModelMatrix: Load the model matrix for a bound fixed function vertex program 1224 * 1225 * DEPRECATED. Do not use. 1226 * 1227 * Load the model matrix for a currently bound fixed function 1228 * vertex program. Calling this function with a custom vertex shader 1229 * would result in an error. 1230 * 1231 * Parameters: 1232 * model: model matrix 1233 */ 1234#ifndef __LP64__ 1235#if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22) 1236extern void __attribute__((overloadable 1237#if (defined(RS_VERSION) && (RS_VERSION >= 22)) 1238, deprecated 1239#endif 1240)) 1241 rsgProgramVertexLoadModelMatrix(const rs_matrix4x4* model); 1242#endif 1243#endif 1244 1245/* 1246 * rsgProgramVertexLoadProjectionMatrix: Load the projection matrix for a bound fixed function vertex program 1247 * 1248 * DEPRECATED. Do not use. 1249 * 1250 * Load the projection matrix for a currently bound fixed function 1251 * vertex program. Calling this function with a custom vertex shader 1252 * would result in an error. 1253 * 1254 * Parameters: 1255 * proj: projection matrix 1256 */ 1257#ifndef __LP64__ 1258#if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22) 1259extern void __attribute__((overloadable 1260#if (defined(RS_VERSION) && (RS_VERSION >= 22)) 1261, deprecated 1262#endif 1263)) 1264 rsgProgramVertexLoadProjectionMatrix(const rs_matrix4x4* proj); 1265#endif 1266#endif 1267 1268/* 1269 * rsgProgramVertexLoadTextureMatrix: Load the texture matrix for a bound fixed function vertex program 1270 * 1271 * DEPRECATED. Do not use. 1272 * 1273 * Load the texture matrix for a currently bound fixed function 1274 * vertex program. Calling this function with a custom vertex shader 1275 * would result in an error. 1276 * 1277 * Parameters: 1278 * tex: texture matrix 1279 */ 1280#ifndef __LP64__ 1281#if !defined(RS_VERSION) || (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22) 1282extern void __attribute__((overloadable 1283#if (defined(RS_VERSION) && (RS_VERSION >= 22)) 1284, deprecated 1285#endif 1286)) 1287 rsgProgramVertexLoadTextureMatrix(const rs_matrix4x4* tex); 1288#endif 1289#endif 1290 1291/* 1292 * rsgProgramRasterGetCullMode: Get program raster cull mode 1293 * 1294 * DEPRECATED. Do not use. 1295 * 1296 * Get program raster cull mode 1297 * 1298 * Parameters: 1299 * pr: program raster to query 1300 */ 1301#ifndef __LP64__ 1302#if (defined(RS_VERSION) && (RS_VERSION >= 16) && (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22)) 1303extern rs_cull_mode __attribute__((overloadable 1304#if (defined(RS_VERSION) && (RS_VERSION >= 22)) 1305, deprecated 1306#endif 1307)) 1308 rsgProgramRasterGetCullMode(rs_program_raster pr); 1309#endif 1310#endif 1311 1312/* 1313 * rsgProgramRasterIsPointSpriteEnabled: Get program raster point sprite state 1314 * 1315 * DEPRECATED. Do not use. 1316 * 1317 * Get program raster point sprite state 1318 * 1319 * Parameters: 1320 * pr: program raster to query 1321 */ 1322#ifndef __LP64__ 1323#if (defined(RS_VERSION) && (RS_VERSION >= 16) && (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22)) 1324extern bool __attribute__((overloadable 1325#if (defined(RS_VERSION) && (RS_VERSION >= 22)) 1326, deprecated 1327#endif 1328)) 1329 rsgProgramRasterIsPointSpriteEnabled(rs_program_raster pr); 1330#endif 1331#endif 1332 1333/* 1334 * rsgProgramStoreGetBlendDstFunc: Get program store blend destination function 1335 * 1336 * DEPRECATED. Do not use. 1337 * 1338 * Get program store blend destination function 1339 * 1340 * Parameters: 1341 * ps: program store to query 1342 */ 1343#ifndef __LP64__ 1344#if (defined(RS_VERSION) && (RS_VERSION >= 16) && (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22)) 1345extern rs_blend_dst_func __attribute__((overloadable 1346#if (defined(RS_VERSION) && (RS_VERSION >= 22)) 1347, deprecated 1348#endif 1349)) 1350 rsgProgramStoreGetBlendDstFunc(rs_program_store ps); 1351#endif 1352#endif 1353 1354/* 1355 * rsgProgramStoreGetBlendSrcFunc: Get program store blend source function 1356 * 1357 * DEPRECATED. Do not use. 1358 * 1359 * Get program store blend source function 1360 * 1361 * Parameters: 1362 * ps: program store to query 1363 */ 1364#ifndef __LP64__ 1365#if (defined(RS_VERSION) && (RS_VERSION >= 16) && (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22)) 1366extern rs_blend_src_func __attribute__((overloadable 1367#if (defined(RS_VERSION) && (RS_VERSION >= 22)) 1368, deprecated 1369#endif 1370)) 1371 rsgProgramStoreGetBlendSrcFunc(rs_program_store ps); 1372#endif 1373#endif 1374 1375/* 1376 * rsgProgramStoreGetDepthFunc: Get program store depth function 1377 * 1378 * DEPRECATED. Do not use. 1379 * 1380 * Get program store depth function 1381 * 1382 * Parameters: 1383 * ps: program store to query 1384 */ 1385#ifndef __LP64__ 1386#if (defined(RS_VERSION) && (RS_VERSION >= 16) && (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22)) 1387extern rs_depth_func __attribute__((overloadable 1388#if (defined(RS_VERSION) && (RS_VERSION >= 22)) 1389, deprecated 1390#endif 1391)) 1392 rsgProgramStoreGetDepthFunc(rs_program_store ps); 1393#endif 1394#endif 1395 1396/* 1397 * rsgProgramStoreIsColorMaskAlphaEnabled: Get program store alpha component color mask 1398 * 1399 * DEPRECATED. Do not use. 1400 * 1401 * Get program store alpha component color mask 1402 * 1403 * Parameters: 1404 * ps: program store to query 1405 */ 1406#ifndef __LP64__ 1407#if (defined(RS_VERSION) && (RS_VERSION >= 16) && (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22)) 1408extern bool __attribute__((overloadable 1409#if (defined(RS_VERSION) && (RS_VERSION >= 22)) 1410, deprecated 1411#endif 1412)) 1413 rsgProgramStoreIsColorMaskAlphaEnabled(rs_program_store ps); 1414#endif 1415#endif 1416 1417/* 1418 * rsgProgramStoreIsColorMaskBlueEnabled: Get program store blur component color mask 1419 * 1420 * DEPRECATED. Do not use. 1421 * 1422 * Get program store blur component color mask 1423 * 1424 * Parameters: 1425 * ps: program store to query 1426 */ 1427#ifndef __LP64__ 1428#if (defined(RS_VERSION) && (RS_VERSION >= 16) && (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22)) 1429extern bool __attribute__((overloadable 1430#if (defined(RS_VERSION) && (RS_VERSION >= 22)) 1431, deprecated 1432#endif 1433)) 1434 rsgProgramStoreIsColorMaskBlueEnabled(rs_program_store ps); 1435#endif 1436#endif 1437 1438/* 1439 * rsgProgramStoreIsColorMaskGreenEnabled: Get program store green component color mask 1440 * 1441 * DEPRECATED. Do not use. 1442 * 1443 * Get program store green component color mask 1444 * 1445 * Parameters: 1446 * ps: program store to query 1447 */ 1448#ifndef __LP64__ 1449#if (defined(RS_VERSION) && (RS_VERSION >= 16) && (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22)) 1450extern bool __attribute__((overloadable 1451#if (defined(RS_VERSION) && (RS_VERSION >= 22)) 1452, deprecated 1453#endif 1454)) 1455 rsgProgramStoreIsColorMaskGreenEnabled(rs_program_store ps); 1456#endif 1457#endif 1458 1459/* 1460 * rsgProgramStoreIsColorMaskRedEnabled: Get program store red component color mask 1461 * 1462 * DEPRECATED. Do not use. 1463 * 1464 * Get program store red component color mask 1465 * 1466 * Parameters: 1467 * ps: program store to query 1468 */ 1469#ifndef __LP64__ 1470#if (defined(RS_VERSION) && (RS_VERSION >= 16) && (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22)) 1471extern bool __attribute__((overloadable 1472#if (defined(RS_VERSION) && (RS_VERSION >= 22)) 1473, deprecated 1474#endif 1475)) 1476 rsgProgramStoreIsColorMaskRedEnabled(rs_program_store ps); 1477#endif 1478#endif 1479 1480/* 1481 * rsgProgramStoreIsDepthMaskEnabled: Get program store depth mask 1482 * 1483 * DEPRECATED. Do not use. 1484 * 1485 * Get program store depth mask 1486 * 1487 * Parameters: 1488 * ps: program store to query 1489 */ 1490#ifndef __LP64__ 1491#if (defined(RS_VERSION) && (RS_VERSION >= 16) && (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22)) 1492extern bool __attribute__((overloadable 1493#if (defined(RS_VERSION) && (RS_VERSION >= 22)) 1494, deprecated 1495#endif 1496)) 1497 rsgProgramStoreIsDepthMaskEnabled(rs_program_store ps); 1498#endif 1499#endif 1500 1501/* 1502 * rsgProgramStoreIsDitherEnabled: Get program store dither state 1503 * 1504 * DEPRECATED. Do not use. 1505 * 1506 * Get program store dither state 1507 * 1508 * Parameters: 1509 * ps: program store to query 1510 */ 1511#ifndef __LP64__ 1512#if (defined(RS_VERSION) && (RS_VERSION >= 16) && (defined(RS_DECLARE_EXPIRED_APIS) || RS_VERSION <= 22)) 1513extern bool __attribute__((overloadable 1514#if (defined(RS_VERSION) && (RS_VERSION >= 22)) 1515, deprecated 1516#endif 1517)) 1518 rsgProgramStoreIsDitherEnabled(rs_program_store ps); 1519#endif 1520#endif 1521 1522#endif // RENDERSCRIPT_RS_GRAPHICS_RSH 1523