Table of Contents

Struct KernelSource

Namespace
DotCompute.Abstractions.Ports
Assembly
DotCompute.Abstractions.dll

Represents kernel source code for compilation.

public readonly record struct KernelSource : IEquatable<KernelSource>
Implements
Inherited Members

Constructors

KernelSource(string, KernelLanguage, string?)

Represents kernel source code for compilation.

public KernelSource(string Code, KernelLanguage Language, string? EntryPoint = null)

Parameters

Code string

The kernel source code.

Language KernelLanguage

The source language.

EntryPoint string

Optional entry point function name.

Properties

Code

The kernel source code.

public string Code { get; init; }

Property Value

string

EntryPoint

Optional entry point function name.

public string? EntryPoint { get; init; }

Property Value

string

Language

The source language.

public KernelLanguage Language { get; init; }

Property Value

KernelLanguage