ILGPU  0.9.0
ILGPU.Backends.OpenCL.CLKernelTypeGenerator Class Reference

Generates OpenCL type structures that can be used for data marshaling data. More...

Inheritance diagram for ILGPU.Backends.OpenCL.CLKernelTypeGenerator:
ILGPU.Backends.OpenCL.ICLTypeGenerator

Public Member Functions

 CLKernelTypeGenerator (CLTypeGenerator typeGenerator, SeparateViewEntryPoint entryPoint)
 Constructs a new type generator and defines all internal types for the OpenCL backend. More...
 
void Register (Parameter parameter)
 Registers a new kernel parameter. More...
 
void GenerateTypeDeclarations (StringBuilder builder)
 Generate all forward type declarations. More...
 
void GenerateTypeDefinitions (StringBuilder builder)
 Generate all type definitions. More...
 

Properties

CLTypeGenerator TypeGenerator [get]
 Returns the parent type generator to use. More...
 
SeparateViewEntryPoint EntryPoint [get]
 Returns the associated entry point. More...
 
int ParameterOffset [get]
 Returns the current parameter offset. More...
 
string this[Parameter parameter] [get]
 Returns the associated OpenCL type name. More...
 

Detailed Description

Generates OpenCL type structures that can be used for data marshaling data.

Constructor & Destructor Documentation

ILGPU.Backends.OpenCL.CLKernelTypeGenerator.CLKernelTypeGenerator ( CLTypeGenerator  typeGenerator,
SeparateViewEntryPoint  entryPoint 
)

Constructs a new type generator and defines all internal types for the OpenCL backend.

Parameters
typeGeneratorThe parent type generator.
entryPointThe current entry point.

Member Function Documentation

void ILGPU.Backends.OpenCL.CLKernelTypeGenerator.GenerateTypeDeclarations ( StringBuilder  builder)

Generate all forward type declarations.

Parameters
builderThe target builder.

Implements ILGPU.Backends.OpenCL.ICLTypeGenerator.

void ILGPU.Backends.OpenCL.CLKernelTypeGenerator.GenerateTypeDefinitions ( StringBuilder  builder)

Generate all type definitions.

Parameters
builderThe target builder.

Implements ILGPU.Backends.OpenCL.ICLTypeGenerator.

void ILGPU.Backends.OpenCL.CLKernelTypeGenerator.Register ( Parameter  parameter)

Registers a new kernel parameter.

Parameters
parameterThe parameter to register.

Property Documentation

SeparateViewEntryPoint ILGPU.Backends.OpenCL.CLKernelTypeGenerator.EntryPoint
get

Returns the associated entry point.

int ILGPU.Backends.OpenCL.CLKernelTypeGenerator.ParameterOffset
get

Returns the current parameter offset.

string ILGPU.Backends.OpenCL.CLKernelTypeGenerator.this[Parameter parameter]
get

Returns the associated OpenCL type name.

Parameters
parameterThe IR parameter.
Returns
The resolved OpenCL type name.
CLTypeGenerator ILGPU.Backends.OpenCL.CLKernelTypeGenerator.TypeGenerator
get

Returns the parent type generator to use.


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