Home | History | Annotate | Download | only in librscpptest
      1 #pragma version(1)
      2 #pragma rs java_package_name(android.rscpp.cts)
      3 
      4 rs_allocation allocation;
      5 
      6 void clear_allocation(int *out)
      7 {
      8     rsClearObject( &allocation );
      9     *out = ( NULL == allocation.p ? 1 : 0 );
     10 }
     11 
     12 rs_element element;
     13 
     14 void clear_element(int *out)
     15 {
     16     rsClearObject( &element );
     17     *out = ( NULL == element.p ? 1 : 0 );
     18 }
     19 
     20 rs_sampler sampler;
     21 
     22 void clear_sampler(int *out)
     23 {
     24     rsClearObject( &sampler );
     25     *out = ( NULL == sampler.p ? 1 : 0 );
     26 }
     27 
     28 rs_script script;
     29 
     30 void clear_script(int *out)
     31 {
     32     rsClearObject( &script );
     33     *out = ( NULL == script.p ? 1 : 0 );
     34 }
     35 
     36 rs_type type;
     37 
     38 void clear_type(int *out)
     39 {
     40     rsClearObject( &type );
     41     *out = ( NULL == type.p ? 1 : 0 );
     42 }
     43