Skip to content

Commit b09aaec

Browse files
Alex SakhartchoukAndroid (Google) Code Review
authored andcommitted
Merge "Changing rsg to rs where functions don't rely on graphics."
2 parents 3e67922 + 73797e9 commit b09aaec

File tree

4 files changed

+122
-267
lines changed

4 files changed

+122
-267
lines changed

libs/rs/scriptc/rs_graphics.rsh

Lines changed: 0 additions & 145 deletions
Original file line numberDiff line numberDiff line change
@@ -83,88 +83,6 @@ extern void __attribute__((overloadable))
8383
extern void __attribute__((overloadable))
8484
rsgBindProgramStore(rs_program_store ps);
8585

86-
87-
/**
88-
* @hide
89-
* Get program store depth function
90-
*
91-
* @param ps
92-
*/
93-
extern rs_depth_func __attribute__((overloadable))
94-
rsgProgramStoreGetDepthFunc(rs_program_store ps);
95-
96-
/**
97-
* @hide
98-
* Get program store depth mask
99-
*
100-
* @param ps
101-
*/
102-
extern bool __attribute__((overloadable))
103-
rsgProgramStoreGetDepthMask(rs_program_store ps);
104-
/**
105-
* @hide
106-
* Get program store red component color mask
107-
*
108-
* @param ps
109-
*/
110-
extern bool __attribute__((overloadable))
111-
rsgProgramStoreGetColorMaskR(rs_program_store ps);
112-
113-
/**
114-
* @hide
115-
* Get program store green component color mask
116-
*
117-
* @param ps
118-
*/
119-
extern bool __attribute__((overloadable))
120-
rsgProgramStoreGetColorMaskG(rs_program_store ps);
121-
122-
/**
123-
* @hide
124-
* Get program store blur component color mask
125-
*
126-
* @param ps
127-
*/
128-
extern bool __attribute__((overloadable))
129-
rsgProgramStoreGetColorMaskB(rs_program_store ps);
130-
131-
/**
132-
* @hide
133-
* Get program store alpha component color mask
134-
*
135-
* @param ps
136-
*/
137-
extern bool __attribute__((overloadable))
138-
rsgProgramStoreGetColorMaskA(rs_program_store ps);
139-
140-
/**
141-
* @hide
142-
* Get program store blend source function
143-
*
144-
* @param ps
145-
*/
146-
extern rs_blend_src_func __attribute__((overloadable))
147-
rsgProgramStoreGetBlendSrcFunc(rs_program_store ps);
148-
149-
/**
150-
* @hide
151-
* Get program store blend destination function
152-
*
153-
* @param ps
154-
*/
155-
extern rs_blend_dst_func __attribute__((overloadable))
156-
rsgProgramStoreGetBlendDstFunc(rs_program_store ps);
157-
158-
/**
159-
* @hide
160-
* Get program store dither state
161-
*
162-
* @param ps
163-
*/
164-
extern bool __attribute__((overloadable))
165-
rsgProgramStoreGetDitherEnabled(rs_program_store ps);
166-
167-
16886
/**
16987
* Bind a new ProgramVertex to the rendering context.
17088
*
@@ -181,24 +99,6 @@ extern void __attribute__((overloadable))
18199
extern void __attribute__((overloadable))
182100
rsgBindProgramRaster(rs_program_raster pr);
183101

184-
/**
185-
* @hide
186-
* Get program raster point sprite state
187-
*
188-
* @param pr
189-
*/
190-
extern bool __attribute__((overloadable))
191-
rsgProgramRasterGetPointSpriteEnabled(rs_program_raster pr);
192-
193-
/**
194-
* @hide
195-
* Get program raster cull mode
196-
*
197-
* @param pr
198-
*/
199-
extern rs_cull_mode __attribute__((overloadable))
200-
rsgProgramRasterGetCullMode(rs_program_raster pr);
201-
202102
/**
203103
* Bind a new Sampler object to a ProgramFragment. The sampler will
204104
* operate on the texture bound at the matching slot.
@@ -208,51 +108,6 @@ extern rs_cull_mode __attribute__((overloadable))
208108
extern void __attribute__((overloadable))
209109
rsgBindSampler(rs_program_fragment, uint slot, rs_sampler);
210110

211-
/**
212-
* @hide
213-
* Get sampler minification value
214-
*
215-
* @param pr
216-
*/
217-
extern rs_sampler_value __attribute__((overloadable))
218-
rsgSamplerGetMinification(rs_sampler s);
219-
220-
/**
221-
* @hide
222-
* Get sampler magnification value
223-
*
224-
* @param pr
225-
*/
226-
extern rs_sampler_value __attribute__((overloadable))
227-
rsgSamplerGetMagnification(rs_sampler s);
228-
229-
/**
230-
* @hide
231-
* Get sampler wrap S value
232-
*
233-
* @param pr
234-
*/
235-
extern rs_sampler_value __attribute__((overloadable))
236-
rsgSamplerGetWrapS(rs_sampler s);
237-
238-
/**
239-
* @hide
240-
* Get sampler wrap T value
241-
*
242-
* @param pr
243-
*/
244-
extern rs_sampler_value __attribute__((overloadable))
245-
rsgSamplerGetWrapT(rs_sampler s);
246-
247-
/**
248-
* @hide
249-
* Get sampler anisotropy
250-
*
251-
* @param pr
252-
*/
253-
extern float __attribute__((overloadable))
254-
rsgSamplerGetAnisotropy(rs_sampler s);
255-
256111
/**
257112
* Bind a new Allocation object to a ProgramFragment. The
258113
* Allocation must be a valid texture for the Program. The sampling

tests/RenderScriptTests/tests/src/com/android/rs/test/program_raster.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ rs_program_raster cullMode;
77
static bool test_program_raster_getters() {
88
bool failed = false;
99

10-
_RS_ASSERT(rsgProgramRasterGetPointSpriteEnabled(pointSpriteEnabled) == true);
11-
_RS_ASSERT(rsgProgramRasterGetCullMode(pointSpriteEnabled) == RS_CULL_BACK);
10+
_RS_ASSERT(rsProgramRasterGetPointSpriteEnabled(pointSpriteEnabled) == true);
11+
_RS_ASSERT(rsProgramRasterGetCullMode(pointSpriteEnabled) == RS_CULL_BACK);
1212

13-
_RS_ASSERT(rsgProgramRasterGetPointSpriteEnabled(cullMode) == false);
14-
_RS_ASSERT(rsgProgramRasterGetCullMode(cullMode) == RS_CULL_FRONT);
13+
_RS_ASSERT(rsProgramRasterGetPointSpriteEnabled(cullMode) == false);
14+
_RS_ASSERT(rsProgramRasterGetCullMode(cullMode) == RS_CULL_FRONT);
1515

1616
if (failed) {
1717
rsDebug("test_program_raster_getters FAILED", 0);

tests/RenderScriptTests/tests/src/com/android/rs/test/program_store.rs

Lines changed: 89 additions & 89 deletions
Original file line numberDiff line numberDiff line change
@@ -14,95 +14,95 @@ rs_program_store depthFunc;
1414
static bool test_program_store_getters() {
1515
bool failed = false;
1616

17-
_RS_ASSERT(rsgProgramStoreGetDepthFunc(depthFunc) == RS_DEPTH_FUNC_GREATER);
18-
_RS_ASSERT(rsgProgramStoreGetDepthMask(depthFunc) == false);
19-
_RS_ASSERT(rsgProgramStoreGetColorMaskR(depthFunc) == false);
20-
_RS_ASSERT(rsgProgramStoreGetColorMaskG(depthFunc) == false);
21-
_RS_ASSERT(rsgProgramStoreGetColorMaskB(depthFunc) == false);
22-
_RS_ASSERT(rsgProgramStoreGetColorMaskA(depthFunc) == false);
23-
_RS_ASSERT(rsgProgramStoreGetDitherEnabled(depthFunc) == false);
24-
_RS_ASSERT(rsgProgramStoreGetBlendSrcFunc(depthFunc) == RS_BLEND_SRC_ZERO);
25-
_RS_ASSERT(rsgProgramStoreGetBlendDstFunc(depthFunc) == RS_BLEND_DST_ZERO);
26-
27-
_RS_ASSERT(rsgProgramStoreGetDepthFunc(depthWriteEnable) == RS_DEPTH_FUNC_ALWAYS);
28-
_RS_ASSERT(rsgProgramStoreGetDepthMask(depthWriteEnable) == true);
29-
_RS_ASSERT(rsgProgramStoreGetColorMaskR(depthWriteEnable) == false);
30-
_RS_ASSERT(rsgProgramStoreGetColorMaskG(depthWriteEnable) == false);
31-
_RS_ASSERT(rsgProgramStoreGetColorMaskB(depthWriteEnable) == false);
32-
_RS_ASSERT(rsgProgramStoreGetColorMaskA(depthWriteEnable) == false);
33-
_RS_ASSERT(rsgProgramStoreGetDitherEnabled(depthWriteEnable) == false);
34-
_RS_ASSERT(rsgProgramStoreGetBlendSrcFunc(depthWriteEnable) == RS_BLEND_SRC_ZERO);
35-
_RS_ASSERT(rsgProgramStoreGetBlendDstFunc(depthWriteEnable) == RS_BLEND_DST_ZERO);
36-
37-
_RS_ASSERT(rsgProgramStoreGetDepthFunc(colorRWriteEnable) == RS_DEPTH_FUNC_ALWAYS);
38-
_RS_ASSERT(rsgProgramStoreGetDepthMask(colorRWriteEnable) == false);
39-
_RS_ASSERT(rsgProgramStoreGetColorMaskR(colorRWriteEnable) == true);
40-
_RS_ASSERT(rsgProgramStoreGetColorMaskG(colorRWriteEnable) == false);
41-
_RS_ASSERT(rsgProgramStoreGetColorMaskB(colorRWriteEnable) == false);
42-
_RS_ASSERT(rsgProgramStoreGetColorMaskA(colorRWriteEnable) == false);
43-
_RS_ASSERT(rsgProgramStoreGetDitherEnabled(colorRWriteEnable) == false);
44-
_RS_ASSERT(rsgProgramStoreGetBlendSrcFunc(colorRWriteEnable) == RS_BLEND_SRC_ZERO);
45-
_RS_ASSERT(rsgProgramStoreGetBlendDstFunc(colorRWriteEnable) == RS_BLEND_DST_ZERO);
46-
47-
_RS_ASSERT(rsgProgramStoreGetDepthFunc(colorGWriteEnable) == RS_DEPTH_FUNC_ALWAYS);
48-
_RS_ASSERT(rsgProgramStoreGetDepthMask(colorGWriteEnable) == false);
49-
_RS_ASSERT(rsgProgramStoreGetColorMaskR(colorGWriteEnable) == false);
50-
_RS_ASSERT(rsgProgramStoreGetColorMaskG(colorGWriteEnable) == true);
51-
_RS_ASSERT(rsgProgramStoreGetColorMaskB(colorGWriteEnable) == false);
52-
_RS_ASSERT(rsgProgramStoreGetColorMaskA(colorGWriteEnable) == false);
53-
_RS_ASSERT(rsgProgramStoreGetDitherEnabled(colorGWriteEnable) == false);
54-
_RS_ASSERT(rsgProgramStoreGetBlendSrcFunc(colorGWriteEnable) == RS_BLEND_SRC_ZERO);
55-
_RS_ASSERT(rsgProgramStoreGetBlendDstFunc(colorGWriteEnable) == RS_BLEND_DST_ZERO);
56-
57-
_RS_ASSERT(rsgProgramStoreGetDepthFunc(colorBWriteEnable) == RS_DEPTH_FUNC_ALWAYS);
58-
_RS_ASSERT(rsgProgramStoreGetDepthMask(colorBWriteEnable) == false);
59-
_RS_ASSERT(rsgProgramStoreGetColorMaskR(colorBWriteEnable) == false);
60-
_RS_ASSERT(rsgProgramStoreGetColorMaskG(colorBWriteEnable) == false);
61-
_RS_ASSERT(rsgProgramStoreGetColorMaskB(colorBWriteEnable) == true);
62-
_RS_ASSERT(rsgProgramStoreGetColorMaskA(colorBWriteEnable) == false);
63-
_RS_ASSERT(rsgProgramStoreGetDitherEnabled(colorBWriteEnable) == false);
64-
_RS_ASSERT(rsgProgramStoreGetBlendSrcFunc(colorBWriteEnable) == RS_BLEND_SRC_ZERO);
65-
_RS_ASSERT(rsgProgramStoreGetBlendDstFunc(colorBWriteEnable) == RS_BLEND_DST_ZERO);
66-
67-
_RS_ASSERT(rsgProgramStoreGetDepthFunc(colorAWriteEnable) == RS_DEPTH_FUNC_ALWAYS);
68-
_RS_ASSERT(rsgProgramStoreGetDepthMask(colorAWriteEnable) == false);
69-
_RS_ASSERT(rsgProgramStoreGetColorMaskR(colorAWriteEnable) == false);
70-
_RS_ASSERT(rsgProgramStoreGetColorMaskG(colorAWriteEnable) == false);
71-
_RS_ASSERT(rsgProgramStoreGetColorMaskB(colorAWriteEnable) == false);
72-
_RS_ASSERT(rsgProgramStoreGetColorMaskA(colorAWriteEnable) == true);
73-
_RS_ASSERT(rsgProgramStoreGetDitherEnabled(colorAWriteEnable) == false);
74-
_RS_ASSERT(rsgProgramStoreGetBlendSrcFunc(colorAWriteEnable) == RS_BLEND_SRC_ZERO);
75-
_RS_ASSERT(rsgProgramStoreGetBlendDstFunc(colorAWriteEnable) == RS_BLEND_DST_ZERO);
76-
77-
_RS_ASSERT(rsgProgramStoreGetDepthFunc(ditherEnable) == RS_DEPTH_FUNC_ALWAYS);
78-
_RS_ASSERT(rsgProgramStoreGetDepthMask(ditherEnable) == false);
79-
_RS_ASSERT(rsgProgramStoreGetColorMaskR(ditherEnable) == false);
80-
_RS_ASSERT(rsgProgramStoreGetColorMaskG(ditherEnable) == false);
81-
_RS_ASSERT(rsgProgramStoreGetColorMaskB(ditherEnable) == false);
82-
_RS_ASSERT(rsgProgramStoreGetColorMaskA(ditherEnable) == false);
83-
_RS_ASSERT(rsgProgramStoreGetDitherEnabled(ditherEnable) == true);
84-
_RS_ASSERT(rsgProgramStoreGetBlendSrcFunc(ditherEnable) == RS_BLEND_SRC_ZERO);
85-
_RS_ASSERT(rsgProgramStoreGetBlendDstFunc(ditherEnable) == RS_BLEND_DST_ZERO);
86-
87-
_RS_ASSERT(rsgProgramStoreGetDepthFunc(blendSrc) == RS_DEPTH_FUNC_ALWAYS);
88-
_RS_ASSERT(rsgProgramStoreGetDepthMask(blendSrc) == false);
89-
_RS_ASSERT(rsgProgramStoreGetColorMaskR(blendSrc) == false);
90-
_RS_ASSERT(rsgProgramStoreGetColorMaskG(blendSrc) == false);
91-
_RS_ASSERT(rsgProgramStoreGetColorMaskB(blendSrc) == false);
92-
_RS_ASSERT(rsgProgramStoreGetColorMaskA(blendSrc) == false);
93-
_RS_ASSERT(rsgProgramStoreGetDitherEnabled(blendSrc) == false);
94-
_RS_ASSERT(rsgProgramStoreGetBlendSrcFunc(blendSrc) == RS_BLEND_SRC_DST_COLOR);
95-
_RS_ASSERT(rsgProgramStoreGetBlendDstFunc(blendSrc) == RS_BLEND_DST_ZERO);
96-
97-
_RS_ASSERT(rsgProgramStoreGetDepthFunc(blendDst) == RS_DEPTH_FUNC_ALWAYS);
98-
_RS_ASSERT(rsgProgramStoreGetDepthMask(blendDst) == false);
99-
_RS_ASSERT(rsgProgramStoreGetColorMaskR(blendDst) == false);
100-
_RS_ASSERT(rsgProgramStoreGetColorMaskG(blendDst) == false);
101-
_RS_ASSERT(rsgProgramStoreGetColorMaskB(blendDst) == false);
102-
_RS_ASSERT(rsgProgramStoreGetColorMaskA(blendDst) == false);
103-
_RS_ASSERT(rsgProgramStoreGetDitherEnabled(blendDst) == false);
104-
_RS_ASSERT(rsgProgramStoreGetBlendSrcFunc(blendDst) == RS_BLEND_SRC_ZERO);
105-
_RS_ASSERT(rsgProgramStoreGetBlendDstFunc(blendDst) == RS_BLEND_DST_DST_ALPHA);
17+
_RS_ASSERT(rsProgramStoreGetDepthFunc(depthFunc) == RS_DEPTH_FUNC_GREATER);
18+
_RS_ASSERT(rsProgramStoreGetDepthMask(depthFunc) == false);
19+
_RS_ASSERT(rsProgramStoreGetColorMaskR(depthFunc) == false);
20+
_RS_ASSERT(rsProgramStoreGetColorMaskG(depthFunc) == false);
21+
_RS_ASSERT(rsProgramStoreGetColorMaskB(depthFunc) == false);
22+
_RS_ASSERT(rsProgramStoreGetColorMaskA(depthFunc) == false);
23+
_RS_ASSERT(rsProgramStoreGetDitherEnabled(depthFunc) == false);
24+
_RS_ASSERT(rsProgramStoreGetBlendSrcFunc(depthFunc) == RS_BLEND_SRC_ZERO);
25+
_RS_ASSERT(rsProgramStoreGetBlendDstFunc(depthFunc) == RS_BLEND_DST_ZERO);
26+
27+
_RS_ASSERT(rsProgramStoreGetDepthFunc(depthWriteEnable) == RS_DEPTH_FUNC_ALWAYS);
28+
_RS_ASSERT(rsProgramStoreGetDepthMask(depthWriteEnable) == true);
29+
_RS_ASSERT(rsProgramStoreGetColorMaskR(depthWriteEnable) == false);
30+
_RS_ASSERT(rsProgramStoreGetColorMaskG(depthWriteEnable) == false);
31+
_RS_ASSERT(rsProgramStoreGetColorMaskB(depthWriteEnable) == false);
32+
_RS_ASSERT(rsProgramStoreGetColorMaskA(depthWriteEnable) == false);
33+
_RS_ASSERT(rsProgramStoreGetDitherEnabled(depthWriteEnable) == false);
34+
_RS_ASSERT(rsProgramStoreGetBlendSrcFunc(depthWriteEnable) == RS_BLEND_SRC_ZERO);
35+
_RS_ASSERT(rsProgramStoreGetBlendDstFunc(depthWriteEnable) == RS_BLEND_DST_ZERO);
36+
37+
_RS_ASSERT(rsProgramStoreGetDepthFunc(colorRWriteEnable) == RS_DEPTH_FUNC_ALWAYS);
38+
_RS_ASSERT(rsProgramStoreGetDepthMask(colorRWriteEnable) == false);
39+
_RS_ASSERT(rsProgramStoreGetColorMaskR(colorRWriteEnable) == true);
40+
_RS_ASSERT(rsProgramStoreGetColorMaskG(colorRWriteEnable) == false);
41+
_RS_ASSERT(rsProgramStoreGetColorMaskB(colorRWriteEnable) == false);
42+
_RS_ASSERT(rsProgramStoreGetColorMaskA(colorRWriteEnable) == false);
43+
_RS_ASSERT(rsProgramStoreGetDitherEnabled(colorRWriteEnable) == false);
44+
_RS_ASSERT(rsProgramStoreGetBlendSrcFunc(colorRWriteEnable) == RS_BLEND_SRC_ZERO);
45+
_RS_ASSERT(rsProgramStoreGetBlendDstFunc(colorRWriteEnable) == RS_BLEND_DST_ZERO);
46+
47+
_RS_ASSERT(rsProgramStoreGetDepthFunc(colorGWriteEnable) == RS_DEPTH_FUNC_ALWAYS);
48+
_RS_ASSERT(rsProgramStoreGetDepthMask(colorGWriteEnable) == false);
49+
_RS_ASSERT(rsProgramStoreGetColorMaskR(colorGWriteEnable) == false);
50+
_RS_ASSERT(rsProgramStoreGetColorMaskG(colorGWriteEnable) == true);
51+
_RS_ASSERT(rsProgramStoreGetColorMaskB(colorGWriteEnable) == false);
52+
_RS_ASSERT(rsProgramStoreGetColorMaskA(colorGWriteEnable) == false);
53+
_RS_ASSERT(rsProgramStoreGetDitherEnabled(colorGWriteEnable) == false);
54+
_RS_ASSERT(rsProgramStoreGetBlendSrcFunc(colorGWriteEnable) == RS_BLEND_SRC_ZERO);
55+
_RS_ASSERT(rsProgramStoreGetBlendDstFunc(colorGWriteEnable) == RS_BLEND_DST_ZERO);
56+
57+
_RS_ASSERT(rsProgramStoreGetDepthFunc(colorBWriteEnable) == RS_DEPTH_FUNC_ALWAYS);
58+
_RS_ASSERT(rsProgramStoreGetDepthMask(colorBWriteEnable) == false);
59+
_RS_ASSERT(rsProgramStoreGetColorMaskR(colorBWriteEnable) == false);
60+
_RS_ASSERT(rsProgramStoreGetColorMaskG(colorBWriteEnable) == false);
61+
_RS_ASSERT(rsProgramStoreGetColorMaskB(colorBWriteEnable) == true);
62+
_RS_ASSERT(rsProgramStoreGetColorMaskA(colorBWriteEnable) == false);
63+
_RS_ASSERT(rsProgramStoreGetDitherEnabled(colorBWriteEnable) == false);
64+
_RS_ASSERT(rsProgramStoreGetBlendSrcFunc(colorBWriteEnable) == RS_BLEND_SRC_ZERO);
65+
_RS_ASSERT(rsProgramStoreGetBlendDstFunc(colorBWriteEnable) == RS_BLEND_DST_ZERO);
66+
67+
_RS_ASSERT(rsProgramStoreGetDepthFunc(colorAWriteEnable) == RS_DEPTH_FUNC_ALWAYS);
68+
_RS_ASSERT(rsProgramStoreGetDepthMask(colorAWriteEnable) == false);
69+
_RS_ASSERT(rsProgramStoreGetColorMaskR(colorAWriteEnable) == false);
70+
_RS_ASSERT(rsProgramStoreGetColorMaskG(colorAWriteEnable) == false);
71+
_RS_ASSERT(rsProgramStoreGetColorMaskB(colorAWriteEnable) == false);
72+
_RS_ASSERT(rsProgramStoreGetColorMaskA(colorAWriteEnable) == true);
73+
_RS_ASSERT(rsProgramStoreGetDitherEnabled(colorAWriteEnable) == false);
74+
_RS_ASSERT(rsProgramStoreGetBlendSrcFunc(colorAWriteEnable) == RS_BLEND_SRC_ZERO);
75+
_RS_ASSERT(rsProgramStoreGetBlendDstFunc(colorAWriteEnable) == RS_BLEND_DST_ZERO);
76+
77+
_RS_ASSERT(rsProgramStoreGetDepthFunc(ditherEnable) == RS_DEPTH_FUNC_ALWAYS);
78+
_RS_ASSERT(rsProgramStoreGetDepthMask(ditherEnable) == false);
79+
_RS_ASSERT(rsProgramStoreGetColorMaskR(ditherEnable) == false);
80+
_RS_ASSERT(rsProgramStoreGetColorMaskG(ditherEnable) == false);
81+
_RS_ASSERT(rsProgramStoreGetColorMaskB(ditherEnable) == false);
82+
_RS_ASSERT(rsProgramStoreGetColorMaskA(ditherEnable) == false);
83+
_RS_ASSERT(rsProgramStoreGetDitherEnabled(ditherEnable) == true);
84+
_RS_ASSERT(rsProgramStoreGetBlendSrcFunc(ditherEnable) == RS_BLEND_SRC_ZERO);
85+
_RS_ASSERT(rsProgramStoreGetBlendDstFunc(ditherEnable) == RS_BLEND_DST_ZERO);
86+
87+
_RS_ASSERT(rsProgramStoreGetDepthFunc(blendSrc) == RS_DEPTH_FUNC_ALWAYS);
88+
_RS_ASSERT(rsProgramStoreGetDepthMask(blendSrc) == false);
89+
_RS_ASSERT(rsProgramStoreGetColorMaskR(blendSrc) == false);
90+
_RS_ASSERT(rsProgramStoreGetColorMaskG(blendSrc) == false);
91+
_RS_ASSERT(rsProgramStoreGetColorMaskB(blendSrc) == false);
92+
_RS_ASSERT(rsProgramStoreGetColorMaskA(blendSrc) == false);
93+
_RS_ASSERT(rsProgramStoreGetDitherEnabled(blendSrc) == false);
94+
_RS_ASSERT(rsProgramStoreGetBlendSrcFunc(blendSrc) == RS_BLEND_SRC_DST_COLOR);
95+
_RS_ASSERT(rsProgramStoreGetBlendDstFunc(blendSrc) == RS_BLEND_DST_ZERO);
96+
97+
_RS_ASSERT(rsProgramStoreGetDepthFunc(blendDst) == RS_DEPTH_FUNC_ALWAYS);
98+
_RS_ASSERT(rsProgramStoreGetDepthMask(blendDst) == false);
99+
_RS_ASSERT(rsProgramStoreGetColorMaskR(blendDst) == false);
100+
_RS_ASSERT(rsProgramStoreGetColorMaskG(blendDst) == false);
101+
_RS_ASSERT(rsProgramStoreGetColorMaskB(blendDst) == false);
102+
_RS_ASSERT(rsProgramStoreGetColorMaskA(blendDst) == false);
103+
_RS_ASSERT(rsProgramStoreGetDitherEnabled(blendDst) == false);
104+
_RS_ASSERT(rsProgramStoreGetBlendSrcFunc(blendDst) == RS_BLEND_SRC_ZERO);
105+
_RS_ASSERT(rsProgramStoreGetBlendDstFunc(blendDst) == RS_BLEND_DST_DST_ALPHA);
106106

107107
if (failed) {
108108
rsDebug("test_program_store_getters FAILED", 0);

0 commit comments

Comments
 (0)