ILGPU  0.9.0
ILGPU.Backends.OpenCL.CLCVersion Struct Reference

Represents an OpenCL C version. More...

Public Member Functions

 CLCVersion (int major, int minor)
 Constructs a new OpenCL C version. More...
 
override string ToString ()
 Returns the OpenCL C string representation that is compatible with the OpenCL API. More...
 

Static Public Member Functions

static bool TryParse (string expression, out CLCVersion version)
 Tries to parse the given string expression into an OpenCL C version. More...
 
static bool operator< (CLCVersion first, CLCVersion second)
 Returns true if the first version is smaller than the second one. More...
 
static bool operator> (CLCVersion first, CLCVersion second)
 Returns true if the first version is greater than the second one. More...
 
static bool operator<= (CLCVersion first, CLCVersion second)
 Returns true if the first version is smaller than or equal to the second one. More...
 
static bool operator>= (CLCVersion first, CLCVersion second)
 Returns true if the first version is greater than or equal to the second one. More...
 

Static Public Attributes

static readonly CLCVersion CL10 = new CLCVersion(1, 0)
 The OpenCL C version 1.0. More...
 
static readonly CLCVersion CL11 = new CLCVersion(1, 1)
 The OpenCL C version 1.1. More...
 
static readonly CLCVersion CL12 = new CLCVersion(1, 2)
 The OpenCL C version 1.2. More...
 
static readonly CLCVersion CL20 = new CLCVersion(2, 0)
 The OpenCL C version 2.0. More...
 

Properties

int Major [get]
 The major OpenCL C Version. More...
 
int Minor [get]
 The minor OpenCL C Version. More...
 

Detailed Description

Represents an OpenCL C version.

Constructor & Destructor Documentation

ILGPU.Backends.OpenCL.CLCVersion.CLCVersion ( int  major,
int  minor 
)

Constructs a new OpenCL C version.

Parameters
majorThe major version.
minorThe minor version.

Member Function Documentation

static bool ILGPU.Backends.OpenCL.CLCVersion.operator< ( CLCVersion  first,
CLCVersion  second 
)
static

Returns true if the first version is smaller than the second one.

Parameters
firstThe first version.
secondThe second version.
Returns
True, if the first version is smaller than the second one.
static bool ILGPU.Backends.OpenCL.CLCVersion.operator<= ( CLCVersion  first,
CLCVersion  second 
)
static

Returns true if the first version is smaller than or equal to the second one.

Parameters
firstThe first version.
secondThe second version.
Returns
True, if the first version is smaller than the second one.
static bool ILGPU.Backends.OpenCL.CLCVersion.operator> ( CLCVersion  first,
CLCVersion  second 
)
static

Returns true if the first version is greater than the second one.

Parameters
firstThe first version.
secondThe second version.
Returns
True, if the first version is greater than the second one.
static bool ILGPU.Backends.OpenCL.CLCVersion.operator>= ( CLCVersion  first,
CLCVersion  second 
)
static

Returns true if the first version is greater than or equal to the second one.

Parameters
firstThe first version.
secondThe second version.
Returns
True, if the first version is greater than the second one.
override string ILGPU.Backends.OpenCL.CLCVersion.ToString ( )

Returns the OpenCL C string representation that is compatible with the OpenCL API.

Returns
The string representation of this OpenCL C version.
static bool ILGPU.Backends.OpenCL.CLCVersion.TryParse ( string  expression,
out CLCVersion  version 
)
static

Tries to parse the given string expression into an OpenCL C version.

Parameters
expressionThe expression to parse.
versionThe parsed version (if any).
Returns
True, if the given expression could be parsed into an OpenCL C version.

Member Data Documentation

readonly CLCVersion ILGPU.Backends.OpenCL.CLCVersion.CL10 = new CLCVersion(1, 0)
static

The OpenCL C version 1.0.

readonly CLCVersion ILGPU.Backends.OpenCL.CLCVersion.CL11 = new CLCVersion(1, 1)
static

The OpenCL C version 1.1.

readonly CLCVersion ILGPU.Backends.OpenCL.CLCVersion.CL12 = new CLCVersion(1, 2)
static

The OpenCL C version 1.2.

readonly CLCVersion ILGPU.Backends.OpenCL.CLCVersion.CL20 = new CLCVersion(2, 0)
static

The OpenCL C version 2.0.

Property Documentation

int ILGPU.Backends.OpenCL.CLCVersion.Major
get

The major OpenCL C Version.

int ILGPU.Backends.OpenCL.CLCVersion.Minor
get

The minor OpenCL C Version.


The documentation for this struct was generated from the following file: