Skip to content

Commit

Permalink
Added size constants for 3-component vectors
Browse files Browse the repository at this point in the history
Fixes #13
  • Loading branch information
gpu committed Dec 14, 2016
1 parent 5c6e44f commit a4bf6c9
Showing 1 changed file with 81 additions and 1 deletion.
82 changes: 81 additions & 1 deletion src/main/java/org/jocl/Sizeof.java
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ public final class Sizeof
* Size of a cl_char4, in bytes
*/
public static final int cl_char4 = 8 * 4 / 8;

/**
* Size of a cl_char8, in bytes
*/
Expand All @@ -123,6 +123,14 @@ public final class Sizeof
*/
public static final int cl_char16 = 8 * 16 / 8;

/**
* Size of a cl_char3, in bytes.<br>
* <br>
* This is the same as the size of a cl_char4, according to the OpenCL
* specification, version 1.1, section 6.1.5
*/
public static final int cl_char3 = cl_char4;

/**
* Size of a cl_uchar2, in bytes
*/
Expand All @@ -143,6 +151,14 @@ public final class Sizeof
*/
public static final int cl_uchar16 = 8 * 16 / 8;

/**
* Size of a cl_uchar3, in bytes.<br>
* <br>
* This is the same as the size of a cl_uchar4, according to the OpenCL
* specification, version 1.1, section 6.1.5
*/
public static final int cl_uchar3 = cl_uchar4;

/**
* Size of a cl_short2, in bytes
*/
Expand All @@ -163,6 +179,14 @@ public final class Sizeof
*/
public static final int cl_short16 = 16 * 16 / 8;

/**
* Size of a cl_short3, in bytes.<br>
* <br>
* This is the same as the size of a cl_short4, according to the OpenCL
* specification, version 1.1, section 6.1.5
*/
public static final int cl_short3 = cl_short4;

/**
* Size of a cl_ushort2, in bytes
*/
Expand All @@ -183,6 +207,14 @@ public final class Sizeof
*/
public static final int cl_ushort16 = 16 * 16 / 8;

/**
* Size of a cl_ushort3, in bytes.<br>
* <br>
* This is the same as the size of a cl_ushort4, according to the OpenCL
* specification, version 1.1, section 6.1.5
*/
public static final int cl_ushort3 = cl_ushort4;

/**
* Size of a cl_int2, in bytes
*/
Expand All @@ -203,6 +235,14 @@ public final class Sizeof
*/
public static final int cl_int16 = 32 * 16 / 8;

/**
* Size of a cl_int3, in bytes.<br>
* <br>
* This is the same as the size of a cl_int4, according to the OpenCL
* specification, version 1.1, section 6.1.5
*/
public static final int cl_int3 = cl_int4;

/**
* Size of a cl_uint2, in bytes
*/
Expand All @@ -223,6 +263,14 @@ public final class Sizeof
*/
public static final int cl_uint16 = 32 * 16 / 8;

/**
* Size of a cl_uint3, in bytes.<br>
* <br>
* This is the same as the size of a cl_uint4, according to the OpenCL
* specification, version 1.1, section 6.1.5
*/
public static final int cl_uint3 = cl_uint4;

/**
* Size of a cl_long2, in bytes
*/
Expand All @@ -243,6 +291,14 @@ public final class Sizeof
*/
public static final int cl_long16 = 64 * 16 / 8;

/**
* Size of a cl_long3, in bytes.<br>
* <br>
* This is the same as the size of a cl_long4, according to the OpenCL
* specification, version 1.1, section 6.1.5
*/
public static final int cl_long3 = cl_long4;

/**
* Size of a cl_ulong2, in bytes
*/
Expand All @@ -263,6 +319,14 @@ public final class Sizeof
*/
public static final int cl_ulong16 = 64 * 16 / 8;

/**
* Size of a cl_ulong3, in bytes.<br>
* <br>
* This is the same as the size of a cl_ulong4, according to the OpenCL
* specification, version 1.1, section 6.1.5
*/
public static final int cl_ulong3 = cl_ulong4;

/**
* Size of a cl_float2, in bytes
*/
Expand All @@ -283,6 +347,14 @@ public final class Sizeof
*/
public static final int cl_float16 = 32 * 16 / 8;

/**
* Size of a cl_float3, in bytes.<br>
* <br>
* This is the same as the size of a cl_float4, according to the OpenCL
* specification, version 1.1, section 6.1.5
*/
public static final int cl_float3 = cl_float4;

/**
* Size of a cl_double2, in bytes
*/
Expand All @@ -303,6 +375,14 @@ public final class Sizeof
*/
public static final int cl_double16 = 64 * 16 / 8;

/**
* Size of a cl_double3, in bytes.<br>
* <br>
* This is the same as the size of a cl_double4, according to the OpenCL
* specification, version 1.1, section 6.1.5
*/
public static final int cl_double3 = cl_double4;

/**
* Size of a native pointer, in bytes
*/
Expand Down

0 comments on commit a4bf6c9

Please sign in to comment.