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
CodestringThe kernel source code.
LanguageKernelLanguageThe source language.
EntryPointstringOptional entry point function name.
Properties
Code
The kernel source code.
public string Code { get; init; }
Property Value
EntryPoint
Optional entry point function name.
public string? EntryPoint { get; init; }
Property Value
Language
The source language.
public KernelLanguage Language { get; init; }