blob: 4f9d9712ec8e17436cdc0d0b741f12819752c28f [file] [log] [blame]
Jean-Luc Brouilletc5184e22015-03-13 13:51:24 -07001#
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
17header:
Jean-Luc Brouillet20b27d62015-04-03 14:39:53 -070018summary: Graphics Functions and Types
Jean-Luc Brouilletc5184e22015-03-13 13:51:24 -070019description:
Jean-Luc Brouillet20b27d62015-04-03 14:39:53 -070020 The graphics subsystem of RenderScript has been deprecated.
Jean-Luc Brouilletc5184e22015-03-13 13:51:24 -070021include:
22 #ifdef __LP64__
23 // TODO We need to fix some of the builds before enabling this error:
24 // #error "RenderScript graphics is deprecated and not supported in 64bit mode."
Jean-Luc Brouilletc5184e22015-03-13 13:51:24 -070025 #endif
Jean-Luc Brouilletbe216382015-03-22 12:44:27 -070026
27 // TODO we seem to assume order for the other headers too.
28 #include "rs_object_types.rsh"
29end:
30
31type: rs_blend_src_func
32version: 16
33size: 32
34enum:
Jean-Luc Brouillet20b27d62015-04-03 14:39:53 -070035value: RS_BLEND_SRC_ZERO = 0
36value: RS_BLEND_SRC_ONE = 1
37value: RS_BLEND_SRC_DST_COLOR = 2
38value: RS_BLEND_SRC_ONE_MINUS_DST_COLOR = 3
39value: RS_BLEND_SRC_SRC_ALPHA = 4
40value: RS_BLEND_SRC_ONE_MINUS_SRC_ALPHA = 5
41value: RS_BLEND_SRC_DST_ALPHA = 6
42value: RS_BLEND_SRC_ONE_MINUS_DST_ALPHA = 7
43value: RS_BLEND_SRC_SRC_ALPHA_SATURATE = 8
44value: RS_BLEND_SRC_INVALID = 100
45deprecated:
Jean-Luc Brouilletbe216382015-03-22 12:44:27 -070046summary: Blend source function
47description:
48end:
49
50type: rs_blend_dst_func
51version: 16
52size: 32
53enum:
Jean-Luc Brouillet20b27d62015-04-03 14:39:53 -070054value: RS_BLEND_DST_ZERO = 0
55value: RS_BLEND_DST_ONE = 1
56value: RS_BLEND_DST_SRC_COLOR = 2
57value: RS_BLEND_DST_ONE_MINUS_SRC_COLOR = 3
58value: RS_BLEND_DST_SRC_ALPHA = 4
59value: RS_BLEND_DST_ONE_MINUS_SRC_ALPHA = 5
60value: RS_BLEND_DST_DST_ALPHA = 6
61value: RS_BLEND_DST_ONE_MINUS_DST_ALPHA = 7
62value: RS_BLEND_DST_INVALID = 100
63deprecated:
Jean-Luc Brouilletbe216382015-03-22 12:44:27 -070064summary: Blend destination function
65description:
66end:
67
68type: rs_cull_mode
69version: 16
70size: 32
71enum:
Jean-Luc Brouillet20b27d62015-04-03 14:39:53 -070072value: RS_CULL_BACK = 0
73value: RS_CULL_FRONT = 1
74value: RS_CULL_NONE = 2
75value: RS_CULL_INVALID = 100
76deprecated:
Jean-Luc Brouilletbe216382015-03-22 12:44:27 -070077summary: Culling mode
78description:
79end:
80
81type: rs_depth_func
82version: 16
83size: 32
84enum:
Jean-Luc Brouillet20b27d62015-04-03 14:39:53 -070085value: RS_DEPTH_FUNC_ALWAYS = 0, "Always drawn"
86value: RS_DEPTH_FUNC_LESS = 1, "Drawn if the incoming depth value is less than that in the depth buffer"
87value: RS_DEPTH_FUNC_LEQUAL = 2, "Drawn if the incoming depth value is less or equal to that in the depth buffer"
88value: RS_DEPTH_FUNC_GREATER = 3, "Drawn if the incoming depth value is greater than that in the depth buffer"
89value: RS_DEPTH_FUNC_GEQUAL = 4, "Drawn if the incoming depth value is greater or equal to that in the depth buffer"
90value: RS_DEPTH_FUNC_EQUAL = 5, "Drawn if the incoming depth value is equal to that in the depth buffer"
91value: RS_DEPTH_FUNC_NOTEQUAL = 6, "Drawn if the incoming depth value is not equal to that in the depth buffer"
92value: RS_DEPTH_FUNC_INVALID = 100, "Invalid depth function"
93deprecated:
Jean-Luc Brouilletbe216382015-03-22 12:44:27 -070094summary: Depth function
95description:
96 Specifies conditional drawing depending on the comparison of the incoming
97 depth to that found in the depth buffer.
98end:
99
100type: rs_primitive
101version: 16
102size: 32
103enum:
104value: RS_PRIMITIVE_POINT = 0, "Vertex data will be rendered as a series of points"
105value: RS_PRIMITIVE_LINE = 1, "Vertex pairs will be rendered as lines"
106value: RS_PRIMITIVE_LINE_STRIP = 2, "Vertex data will be rendered as a connected line strip"
107value: RS_PRIMITIVE_TRIANGLE = 3, "Vertices will be rendered as individual triangles"
108value: 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"
109value: RS_PRIMITIVE_TRIANGLE_FAN = 5, "Vertices will be rendered as a sequence of triangles that all share first vertex as the origin"
110value: RS_PRIMITIVE_INVALID = 100, "Invalid primitive"
Jean-Luc Brouillet20b27d62015-04-03 14:39:53 -0700111deprecated:
Jean-Luc Brouilletbe216382015-03-22 12:44:27 -0700112summary: How to intepret mesh vertex data
113description:
114 Describes the way mesh vertex data is interpreted when rendering
115end:
116
117type: rs_font
118size: 32
119simple: _RS_HANDLE
Jean-Luc Brouillet20b27d62015-04-03 14:39:53 -0700120deprecated:
Jean-Luc Brouilletbe216382015-03-22 12:44:27 -0700121summary: Handle to a Font
122description:
123 Opaque handle to a RenderScript font object.
124 See: android.renderscript.Font
125end:
126
127
128type: rs_mesh
129size: 32
130simple: _RS_HANDLE
Jean-Luc Brouillet20b27d62015-04-03 14:39:53 -0700131deprecated:
Jean-Luc Brouilletbe216382015-03-22 12:44:27 -0700132summary: Handle to a Mesh
133description:
134 Opaque handle to a RenderScript mesh object.
135 See: android.renderscript.Mesh
136end:
137
138type: rs_program_fragment
139size: 32
140simple: _RS_HANDLE
Jean-Luc Brouillet20b27d62015-04-03 14:39:53 -0700141deprecated:
Jean-Luc Brouilletbe216382015-03-22 12:44:27 -0700142summary: Handle to a ProgramFragment
143description:
144 Opaque handle to a RenderScript ProgramFragment object.
145 See: android.renderscript.ProgramFragment
146end:
147
148type: rs_program_vertex
149size: 32
150simple: _RS_HANDLE
Jean-Luc Brouillet20b27d62015-04-03 14:39:53 -0700151deprecated:
Jean-Luc Brouilletbe216382015-03-22 12:44:27 -0700152summary: Handle to a ProgramVertex
153description:
154 Opaque handle to a RenderScript ProgramVertex object.
155 See: android.renderscript.ProgramVertex
156end:
157
158type: rs_program_raster
159size: 32
160simple: _RS_HANDLE
Jean-Luc Brouillet20b27d62015-04-03 14:39:53 -0700161deprecated:
Jean-Luc Brouilletbe216382015-03-22 12:44:27 -0700162summary: Handle to a ProgramRaster
163description:
164 Opaque handle to a RenderScript ProgramRaster object.
165 See: android.renderscript.ProgramRaster
166end:
167
168type: rs_program_store
169size: 32
170simple: _RS_HANDLE
Jean-Luc Brouillet20b27d62015-04-03 14:39:53 -0700171deprecated:
Jean-Luc Brouilletbe216382015-03-22 12:44:27 -0700172summary: Handle to a ProgramStore
173description:
174 Opaque handle to a RenderScript ProgramStore object.
175 See: android.renderscript.ProgramStore
176end:
177
178function: rsClearObject
179size: 32
180t: rs_mesh, rs_program_fragment, rs_program_vertex, rs_program_raster, rs_program_store, rs_font
181ret: void
182arg: #1* dst
183test: none
184end:
185
186function: rsIsObject
187size: 32
188t: rs_mesh, rs_program_fragment, rs_program_vertex, rs_program_raster, rs_program_store, rs_font
189ret: bool
190arg: #1 v
191test: none
192end:
193
194function: rsSetObject
195size: 32
196t: rs_mesh, rs_program_fragment, rs_program_vertex, rs_program_raster, rs_program_store, rs_font
197ret: void
198arg: #1* dst
199arg: #1 src
200test: none
Jean-Luc Brouilletc5184e22015-03-13 13:51:24 -0700201end:
202
203function: rsgAllocationSyncAll
204size: 32
205ret: void
206arg: rs_allocation alloc
Jean-Luc Brouillet20b27d62015-04-03 14:39:53 -0700207deprecated:
208summary: Sync the contents of an allocation
Jean-Luc Brouilletc5184e22015-03-13 13:51:24 -0700209description:
210 Sync the contents of an allocation.
211
212 If the source is specified, sync from memory space specified by source.
213
214 If the source is not specified, sync from its SCRIPT memory space to its HW
215 memory spaces.
216test: none
217end:
218
219function: rsgAllocationSyncAll
220version: 14
221size: 32
222ret: void
223arg: rs_allocation alloc
224arg: rs_allocation_usage_type source
225test: none
226end:
227
228function: rsgBindColorTarget
229version: 14
230size: 32
231ret: void
232arg: rs_allocation colorTarget
233arg: uint slot
Jean-Luc Brouillet20b27d62015-04-03 14:39:53 -0700234deprecated:
235summary: Set the color target
Jean-Luc Brouilletc5184e22015-03-13 13:51:24 -0700236description:
237 Set the color target used for all subsequent rendering calls
238test: none
239end:
240
241function: rsgBindConstant
242size: 32
243ret: void
244arg: rs_program_fragment ps, "program fragment object"
245arg: uint slot, "index of the constant buffer on the program"
246arg: rs_allocation c, "constants to bind"
Jean-Luc Brouillet20b27d62015-04-03 14:39:53 -0700247deprecated:
248summary: Bind a constant allocation
Jean-Luc Brouilletc5184e22015-03-13 13:51:24 -0700249description:
250 Bind a new Allocation object to a ProgramFragment or ProgramVertex.
251 The Allocation must be a valid constant input for the Program.
252test: none
253end:
254
255function: rsgBindConstant
256size: 32
257ret: void
258arg: rs_program_vertex pv, "program vertex object"
259arg: uint slot
260arg: rs_allocation c
261test: none
262end:
263
264function: rsgBindDepthTarget
265version: 14
266size: 32
267ret: void
268arg: rs_allocation depthTarget
Jean-Luc Brouillet20b27d62015-04-03 14:39:53 -0700269deprecated:
270summary: Set the depth target
Jean-Luc Brouilletc5184e22015-03-13 13:51:24 -0700271description:
272 Set the depth target used for all subsequent rendering calls
273test: none
274end:
275
276function: rsgBindFont
277size: 32
278ret: void
279arg: rs_font font, "object to bind"
Jean-Luc Brouillet20b27d62015-04-03 14:39:53 -0700280deprecated:
281summary: Bind a font object
Jean-Luc Brouilletc5184e22015-03-13 13:51:24 -0700282description:
283 Binds the font object to be used for all subsequent font rendering calls
284test: none
285end:
286
287function: rsgBindProgramFragment
288size: 32
289ret: void
290arg: rs_program_fragment pf
Jean-Luc Brouillet20b27d62015-04-03 14:39:53 -0700291deprecated:
292summary: Bind a ProgramFragment
Jean-Luc Brouilletc5184e22015-03-13 13:51:24 -0700293description:
294 Bind a new ProgramFragment to the rendering context.
295test: none
296end:
297
298function: rsgBindProgramRaster
299size: 32
300ret: void
301arg: rs_program_raster pr
Jean-Luc Brouillet20b27d62015-04-03 14:39:53 -0700302deprecated:
303summary: Bind a ProgramRaster
Jean-Luc Brouilletc5184e22015-03-13 13:51:24 -0700304description:
305 Bind a new ProgramRaster to the rendering context.
306test: none
307end:
308
309function: rsgBindProgramStore
310size: 32
311ret: void
312arg: rs_program_store ps
Jean-Luc Brouillet20b27d62015-04-03 14:39:53 -0700313deprecated:
314summary: Bind a ProgramStore
Jean-Luc Brouilletc5184e22015-03-13 13:51:24 -0700315description:
316 Bind a new ProgramStore to the rendering context.
317test: none
318end:
319
320function: rsgBindProgramVertex
321size: 32
322ret: void
323arg: rs_program_vertex pv
Jean-Luc Brouillet20b27d62015-04-03 14:39:53 -0700324deprecated:
325summary: Bind a ProgramVertex
Jean-Luc Brouilletc5184e22015-03-13 13:51:24 -0700326description:
327 Bind a new ProgramVertex to the rendering context.
328test: none
329end:
330
331function: rsgBindSampler
332size: 32
333ret: void
334arg: rs_program_fragment fragment
335arg: uint slot
336arg: rs_sampler sampler
Jean-Luc Brouillet20b27d62015-04-03 14:39:53 -0700337deprecated:
338summary: Bind a sampler
Jean-Luc Brouilletc5184e22015-03-13 13:51:24 -0700339description:
340 Bind a new Sampler object to a ProgramFragment. The sampler will
341 operate on the texture bound at the matching slot.
342test: none
343end:
344
345function: rsgBindTexture
346size: 32
347ret: void
348arg: rs_program_fragment v
349arg: uint slot
350arg: rs_allocation alloc
Jean-Luc Brouillet20b27d62015-04-03 14:39:53 -0700351deprecated:
352summary: Bind a texture allocation
Jean-Luc Brouilletc5184e22015-03-13 13:51:24 -0700353description:
354 Bind a new Allocation object to a ProgramFragment. The
355 Allocation must be a valid texture for the Program. The sampling
356 of the texture will be controled by the Sampler bound at the
357 matching slot.
358test: none
359end:
360
361function: rsgClearAllRenderTargets
362version: 14
363size: 32
364ret: void
Jean-Luc Brouillet20b27d62015-04-03 14:39:53 -0700365deprecated:
366summary: Clear all color and depth targets
Jean-Luc Brouilletc5184e22015-03-13 13:51:24 -0700367description:
368 Clear all color and depth targets and resume rendering into
369 the framebuffer
370test: none
371end:
372
373function: rsgClearColor
374size: 32
375ret: void
376arg: float r
377arg: float g
378arg: float b
379arg: float a
Jean-Luc Brouillet20b27d62015-04-03 14:39:53 -0700380deprecated:
381summary: Clear the specified color from the surface
Jean-Luc Brouilletc5184e22015-03-13 13:51:24 -0700382description:
383 Clears the rendering surface to the specified color.
384test: none
385end:
386
387function: rsgClearColorTarget
388version: 14
389size: 32
390ret: void
391arg: uint slot
Jean-Luc Brouillet20b27d62015-04-03 14:39:53 -0700392deprecated:
393summary: Clear the color target
Jean-Luc Brouilletc5184e22015-03-13 13:51:24 -0700394description:
395 Clear the previously set color target
396test: none
397end:
398
399function: rsgClearDepth
400size: 32
401ret: void
402arg: float value
Jean-Luc Brouillet20b27d62015-04-03 14:39:53 -0700403deprecated:
404summary: Clear the depth surface
Jean-Luc Brouilletc5184e22015-03-13 13:51:24 -0700405description:
406 Clears the depth suface to the specified value.
407test: none
408end:
409
410function: rsgClearDepthTarget
411version: 14
412size: 32
413ret: void
Jean-Luc Brouillet20b27d62015-04-03 14:39:53 -0700414deprecated:
415summary: Clear the depth target
Jean-Luc Brouilletc5184e22015-03-13 13:51:24 -0700416description:
417 Clear the previously set depth target
418test: none
419end:
420
421function: rsgDrawMesh
422size: 32
423ret: void
424arg: rs_mesh ism, "mesh object to render"
Jean-Luc Brouillet20b27d62015-04-03 14:39:53 -0700425deprecated:
426summary: Draw a mesh
Jean-Luc Brouilletc5184e22015-03-13 13:51:24 -0700427description:
428 Draw a mesh using the current context state.
429
430 If primitiveIndex is specified, draw part of a mesh using the current context state.
431
432 If start and len are also specified, draw specified index range of part of a mesh using the current context state.
433
434 Otherwise the whole mesh is rendered.
435test: none
436end:
437
438function: rsgDrawMesh
439size: 32
440ret: void
441arg: rs_mesh ism
442arg: uint primitiveIndex, "for meshes that contain multiple primitive groups this parameter specifies the index of the group to draw."
443test: none
444end:
445
446function: rsgDrawMesh
447size: 32
448ret: void
449arg: rs_mesh ism
450arg: uint primitiveIndex
451arg: uint start, "starting index in the range"
452arg: uint len, "number of indices to draw"
453test: none
454end:
455
456function: rsgDrawQuad
457size: 32
458ret: void
459arg: float x1
460arg: float y1
461arg: float z1
462arg: float x2
463arg: float y2
464arg: float z2
465arg: float x3
466arg: float y3
467arg: float z3
468arg: float x4
469arg: float y4
470arg: float z4
Jean-Luc Brouillet20b27d62015-04-03 14:39:53 -0700471deprecated:
472summary: Draw a quad
Jean-Luc Brouilletc5184e22015-03-13 13:51:24 -0700473description:
474 Low performance utility function for drawing a simple quad. Not intended for
475 drawing large quantities of geometry.
476test: none
477end:
478
479function: rsgDrawQuadTexCoords
480size: 32
481ret: void
482arg: float x1
483arg: float y1
484arg: float z1
485arg: float u1
486arg: float v1
487arg: float x2
488arg: float y2
489arg: float z2
490arg: float u2
491arg: float v2
492arg: float x3
493arg: float y3
494arg: float z3
495arg: float u3
496arg: float v3
497arg: float x4
498arg: float y4
499arg: float z4
500arg: float u4
501arg: float v4
Jean-Luc Brouillet20b27d62015-04-03 14:39:53 -0700502deprecated:
503summary: Draw a textured quad
Jean-Luc Brouilletc5184e22015-03-13 13:51:24 -0700504description:
505 Low performance utility function for drawing a textured quad. Not intended
506 for drawing large quantities of geometry.
507test: none
508end:
509
510function: rsgDrawRect
511size: 32
512ret: void
513arg: float x1
514arg: float y1
515arg: float x2
516arg: float y2
517arg: float z
Jean-Luc Brouillet20b27d62015-04-03 14:39:53 -0700518deprecated:
519summary: Draw a rectangle
Jean-Luc Brouilletc5184e22015-03-13 13:51:24 -0700520description:
521 Low performance utility function for drawing a simple rectangle. Not
522 intended for drawing large quantities of geometry.
523test: none
524end:
525
526function: rsgDrawSpriteScreenspace
527size: 32
528ret: void
529arg: float x
530arg: float y
531arg: float z
532arg: float w
533arg: float h
Jean-Luc Brouillet20b27d62015-04-03 14:39:53 -0700534deprecated:
535summary: Draw rectangles in screenspace
Jean-Luc Brouilletc5184e22015-03-13 13:51:24 -0700536description:
537 Low performance function for drawing rectangles in screenspace. This
538 function uses the default passthough ProgramVertex. Any bound ProgramVertex
539 is ignored. This function has considerable overhead and should not be used
540 for drawing in shipping applications.
541test: none
542end:
543
544function: rsgDrawText
545size: 32
546ret: void
547arg: const char* text
548arg: int x
549arg: int y
Jean-Luc Brouillet20b27d62015-04-03 14:39:53 -0700550deprecated:
551summary: Draw a text string
Jean-Luc Brouilletc5184e22015-03-13 13:51:24 -0700552description:
553 Draws text given a string and location
554test: none
555end:
556
557function: rsgDrawText
558size: 32
559ret: void
560arg: rs_allocation alloc
561arg: int x
562arg: int y
563test: none
564end:
565
566function: rsgFinish
567version: 14
568size: 32
569ret: uint
Jean-Luc Brouillet20b27d62015-04-03 14:39:53 -0700570deprecated:
571summary: End rendering commands
Jean-Luc Brouilletc5184e22015-03-13 13:51:24 -0700572description:
573 Force RenderScript to finish all rendering commands
574test: none
575end:
576
577function: rsgFontColor
578size: 32
579ret: void
580arg: float r, "red component"
581arg: float g, "green component"
582arg: float b, "blue component"
583arg: float a, "alpha component"
Jean-Luc Brouillet20b27d62015-04-03 14:39:53 -0700584deprecated:
585summary: Set the font color
Jean-Luc Brouilletc5184e22015-03-13 13:51:24 -0700586description:
587 Sets the font color for all subsequent rendering calls
588test: none
589end:
590
591function: rsgGetHeight
592size: 32
593ret: uint
Jean-Luc Brouillet20b27d62015-04-03 14:39:53 -0700594deprecated:
595summary: Get the surface height
Jean-Luc Brouilletc5184e22015-03-13 13:51:24 -0700596description:
597 Get the height of the current rendering surface.
598test: none
599end:
600
601function: rsgGetWidth
602size: 32
603ret: uint
Jean-Luc Brouillet20b27d62015-04-03 14:39:53 -0700604deprecated:
605summary: Get the surface width
Jean-Luc Brouilletc5184e22015-03-13 13:51:24 -0700606description:
607 Get the width of the current rendering surface.
608test: none
609end:
610
611function: rsgMeasureText
612size: 32
613ret: void
614arg: const char* text
615arg: int* left
616arg: int* right
617arg: int* top
618arg: int* bottom
Jean-Luc Brouillet20b27d62015-04-03 14:39:53 -0700619deprecated:
620summary: Get the bounding box for a text string
Jean-Luc Brouilletc5184e22015-03-13 13:51:24 -0700621description:
622 Returns the bounding box of the text relative to (0, 0)
623 Any of left, right, top, bottom could be NULL
624test: none
625end:
626
627function: rsgMeasureText
628size: 32
629ret: void
630arg: rs_allocation alloc
631arg: int* left
632arg: int* right
633arg: int* top
634arg: int* bottom
635test: none
636end:
637
638function: rsgMeshComputeBoundingBox
639size: 32
640ret: void
641arg: rs_mesh mesh
642arg: float* minX
643arg: float* minY
644arg: float* min
645arg: float* maxX
646arg: float* maxY
647arg: float* maxZ
Jean-Luc Brouillet20b27d62015-04-03 14:39:53 -0700648deprecated:
649summary: Compute a bounding box
Jean-Luc Brouilletc5184e22015-03-13 13:51:24 -0700650description:
651 Computes an axis aligned bounding box of a mesh object
652test: none
653end:
654
655function: rsgMeshComputeBoundingBox
656size: 32
657attrib: always_inline
658ret: void
659arg: rs_mesh mesh
660arg: float3* bBoxMin
661arg: float3* bBoxMax
662inline:
663 float x1, y1, z1, x2, y2, z2;
664 rsgMeshComputeBoundingBox(mesh, &x1, &y1, &z1, &x2, &y2, &z2);
665 bBoxMin->x = x1;
666 bBoxMin->y = y1;
667 bBoxMin->z = z1;
668 bBoxMax->x = x2;
669 bBoxMax->y = y2;
670 bBoxMax->z = z2;
671test: none
672end:
673
Jean-Luc Brouilletbe216382015-03-22 12:44:27 -0700674function: rsgMeshGetIndexAllocation
675version: 16
676size: 32
677ret: rs_allocation, "allocation containing index data"
678arg: rs_mesh m, "mesh to get data from"
679arg: uint32_t index, "index of the index allocation"
Jean-Luc Brouillet20b27d62015-04-03 14:39:53 -0700680deprecated:
681summary: Return an allocation containing index data
Jean-Luc Brouilletbe216382015-03-22 12:44:27 -0700682description:
683 Returns an allocation containing index data or a null
684 allocation if only the primitive is specified
685test: none
686end:
687
688function: rsgMeshGetPrimitive
689version: 16
690size: 32
691ret: rs_primitive, "primitive describing how the mesh is rendered"
692arg: rs_mesh m, "mesh to get data from"
693arg: uint32_t index, "index of the primitive"
Jean-Luc Brouillet20b27d62015-04-03 14:39:53 -0700694deprecated:
695summary: Return the primitive
Jean-Luc Brouilletbe216382015-03-22 12:44:27 -0700696description:
697 Returns the primitive describing how a part of the mesh is
698 rendered
699test: none
700end:
701
702function: rsgMeshGetPrimitiveCount
703version: 16
704size: 32
705ret: uint32_t, "number of primitive groups in the mesh. This would include simple primitives as well as allocations containing index data"
706arg: rs_mesh m, "mesh to get data from"
Jean-Luc Brouillet20b27d62015-04-03 14:39:53 -0700707deprecated:
708summary: Return the number of index sets
Jean-Luc Brouilletbe216382015-03-22 12:44:27 -0700709description:
710 Meshes could have multiple index sets, this function returns
711 the number.
712test: none
713end:
714
715function: rsgMeshGetVertexAllocation
716version: 16
717size: 32
718ret: rs_allocation, "allocation containing vertex data"
719arg: rs_mesh m, "mesh to get data from"
720arg: uint32_t index, "index of the vertex allocation"
Jean-Luc Brouillet20b27d62015-04-03 14:39:53 -0700721deprecated:
722summary: Return a vertex allocation
Jean-Luc Brouilletbe216382015-03-22 12:44:27 -0700723description:
724 Returns an allocation that is part of the mesh and contains
725 vertex data, e.g. positions, normals, texcoords
726test: none
727end:
728
729function: rsgMeshGetVertexAllocationCount
730version: 16
731size: 32
732ret: uint32_t, "number of allocations in the mesh that contain vertex data"
733arg: rs_mesh m, "mesh to get data from"
Jean-Luc Brouillet20b27d62015-04-03 14:39:53 -0700734deprecated:
735summary: Return the number of vertex allocations
Jean-Luc Brouilletbe216382015-03-22 12:44:27 -0700736description:
737 Returns the number of allocations in the mesh that contain
738 vertex data
739test: none
740end:
Jean-Luc Brouilletc5184e22015-03-13 13:51:24 -0700741
742function: rsgProgramFragmentConstantColor
743size: 32
744ret: void
745arg: rs_program_fragment pf
746arg: float r
747arg: float g
748arg: float b
749arg: float a
Jean-Luc Brouillet20b27d62015-04-03 14:39:53 -0700750deprecated:
751summary: Set the constant color for a fixed function emulation program
Jean-Luc Brouilletc5184e22015-03-13 13:51:24 -0700752description:
753 Set the constant color for a fixed function emulation program.
754test: none
755end:
756
757function: rsgProgramVertexGetProjectionMatrix
758size: 32
759ret: void
760arg: rs_matrix4x4* proj, "matrix to store the current projection matrix into"
Jean-Luc Brouillet20b27d62015-04-03 14:39:53 -0700761deprecated:
762summary: Get the projection matrix for a fixed function vertex program
Jean-Luc Brouilletc5184e22015-03-13 13:51:24 -0700763description:
764 Get the projection matrix for a currently bound fixed function
765 vertex program. Calling this function with a custom vertex shader
766 would result in an error.
767test: none
768end:
769
770function: rsgProgramVertexLoadModelMatrix
771size: 32
772ret: void
773arg: const rs_matrix4x4* model, "model matrix"
Jean-Luc Brouillet20b27d62015-04-03 14:39:53 -0700774deprecated:
775summary: Load the model matrix for a bound fixed function vertex program
Jean-Luc Brouilletc5184e22015-03-13 13:51:24 -0700776description:
777 Load the model matrix for a currently bound fixed function
778 vertex program. Calling this function with a custom vertex shader
779 would result in an error.
780test: none
781end:
782
783function: rsgProgramVertexLoadProjectionMatrix
784size: 32
785ret: void
786arg: const rs_matrix4x4* proj, "projection matrix"
Jean-Luc Brouillet20b27d62015-04-03 14:39:53 -0700787deprecated:
788summary: Load the projection matrix for a bound fixed function vertex program
Jean-Luc Brouilletc5184e22015-03-13 13:51:24 -0700789description:
790 Load the projection matrix for a currently bound fixed function
791 vertex program. Calling this function with a custom vertex shader
792 would result in an error.
793test: none
794end:
795
796function: rsgProgramVertexLoadTextureMatrix
797size: 32
798ret: void
799arg: const rs_matrix4x4* tex, "texture matrix"
Jean-Luc Brouillet20b27d62015-04-03 14:39:53 -0700800deprecated:
801summary: Load the texture matrix for a bound fixed function vertex program
Jean-Luc Brouilletc5184e22015-03-13 13:51:24 -0700802description:
803 Load the texture matrix for a currently bound fixed function
804 vertex program. Calling this function with a custom vertex shader
805 would result in an error.
806test: none
807end:
808
Jean-Luc Brouilletbe216382015-03-22 12:44:27 -0700809function: rsgProgramRasterGetCullMode
810version: 16
811size: 32
812ret: rs_cull_mode
813arg: rs_program_raster pr, "program raster to query"
Jean-Luc Brouillet20b27d62015-04-03 14:39:53 -0700814deprecated:
815summary: Get program raster cull mode
Jean-Luc Brouilletbe216382015-03-22 12:44:27 -0700816description:
817 Get program raster cull mode
818test: none
819end:
820
821function: rsgProgramRasterIsPointSpriteEnabled
822version: 16
823size: 32
824ret: bool
825arg: rs_program_raster pr, "program raster to query"
Jean-Luc Brouillet20b27d62015-04-03 14:39:53 -0700826deprecated:
827summary: Get program raster point sprite state
Jean-Luc Brouilletbe216382015-03-22 12:44:27 -0700828description:
829 Get program raster point sprite state
830test: none
831end:
832
833function: rsgProgramStoreGetBlendDstFunc
834version: 16
835size: 32
836ret: rs_blend_dst_func
837arg: rs_program_store ps, "program store to query"
Jean-Luc Brouillet20b27d62015-04-03 14:39:53 -0700838deprecated:
839summary: Get program store blend destination function
Jean-Luc Brouilletbe216382015-03-22 12:44:27 -0700840description:
841 Get program store blend destination function
842test: none
843end:
844
845function: rsgProgramStoreGetBlendSrcFunc
846version: 16
847size: 32
848ret: rs_blend_src_func
849arg: rs_program_store ps, "program store to query"
Jean-Luc Brouillet20b27d62015-04-03 14:39:53 -0700850deprecated:
851summary: Get program store blend source function
Jean-Luc Brouilletbe216382015-03-22 12:44:27 -0700852description:
853 Get program store blend source function
854test: none
855end:
856
857function: rsgProgramStoreGetDepthFunc
858version: 16
859size: 32
860ret: rs_depth_func
861arg: rs_program_store ps, "program store to query"
Jean-Luc Brouillet20b27d62015-04-03 14:39:53 -0700862deprecated:
863summary: Get program store depth function
Jean-Luc Brouilletbe216382015-03-22 12:44:27 -0700864description:
865 Get program store depth function
866test: none
867end:
868
869function: rsgProgramStoreIsColorMaskAlphaEnabled
870version: 16
871size: 32
872ret: bool
873arg: rs_program_store ps, "program store to query"
Jean-Luc Brouillet20b27d62015-04-03 14:39:53 -0700874deprecated:
875summary: Get program store alpha component color mask
Jean-Luc Brouilletbe216382015-03-22 12:44:27 -0700876description:
877 Get program store alpha component color mask
878test: none
879end:
880
881function: rsgProgramStoreIsColorMaskBlueEnabled
882version: 16
883size: 32
884ret: bool
885arg: rs_program_store ps, "program store to query"
Jean-Luc Brouillet20b27d62015-04-03 14:39:53 -0700886deprecated:
887summary: Get program store blur component color mask
Jean-Luc Brouilletbe216382015-03-22 12:44:27 -0700888description:
889 Get program store blur component color mask
890test: none
891end:
892
893function: rsgProgramStoreIsColorMaskGreenEnabled
894version: 16
895size: 32
896ret: bool
897arg: rs_program_store ps, "program store to query"
Jean-Luc Brouillet20b27d62015-04-03 14:39:53 -0700898deprecated:
899summary: Get program store green component color mask
Jean-Luc Brouilletbe216382015-03-22 12:44:27 -0700900description:
901 Get program store green component color mask
902test: none
903end:
904
905function: rsgProgramStoreIsColorMaskRedEnabled
906version: 16
907size: 32
908ret: bool
909arg: rs_program_store ps, "program store to query"
Jean-Luc Brouillet20b27d62015-04-03 14:39:53 -0700910deprecated:
911summary: Get program store red component color mask
Jean-Luc Brouilletbe216382015-03-22 12:44:27 -0700912description:
913 Get program store red component color mask
914test: none
915end:
916
917function: rsgProgramStoreIsDepthMaskEnabled
918version: 16
919size: 32
920ret: bool
921arg: rs_program_store ps, "program store to query"
Jean-Luc Brouillet20b27d62015-04-03 14:39:53 -0700922deprecated:
923summary: Get program store depth mask
Jean-Luc Brouilletbe216382015-03-22 12:44:27 -0700924description:
925 Get program store depth mask
926test: none
927end:
928
929function: rsgProgramStoreIsDitherEnabled
930version: 16
931size: 32
932ret: bool
933arg: rs_program_store ps, "program store to query"
Jean-Luc Brouillet20b27d62015-04-03 14:39:53 -0700934deprecated:
935summary: Get program store dither state
Jean-Luc Brouilletbe216382015-03-22 12:44:27 -0700936description:
937 Get program store dither state
938test: none
939end: