org.jocl.struct
Annotation Type ArrayLength


@Retention(value=RUNTIME)
@Target(value=FIELD)
public @interface ArrayLength

This annotation may be used to specify the length of arrays inside a Struct.

Example:

 public class Data extends Struct
 {
     // A 3D position
     @ArrayLength(3)
     public float position[];
     
     // A 3x3 matrix
     @ArrayLength({3,3})
     public float matrix[][];
 }
 


Required Element Summary
 int[] value
          The values given as the array dimensions
 

Element Detail

value

public abstract int[] value
The values given as the array dimensions

Returns:
The array dimensions