Table of Contents

Class KernelParameterInfo

Namespace
DotCompute.Runtime.Services
Assembly
DotCompute.Runtime.dll

Describes a single kernel parameter for runtime marshalling and copy-back.

public sealed class KernelParameterInfo
Inheritance
KernelParameterInfo
Inherited Members

Properties

ElementType

The element type for a buffer parameter (e.g. typeof(float)), or the scalar type.

public Type? ElementType { get; init; }

Property Value

Type

IsBuffer

True for buffer parameters (Span/ReadOnlySpan/array/pointer); false for scalars.

public required bool IsBuffer { get; init; }

Property Value

bool

IsReadOnly

True when the buffer is read-only (ReadOnlySpan); writable buffers are copied back to the host after execution.

public required bool IsReadOnly { get; init; }

Property Value

bool

Name

The parameter name.

public required string Name { get; init; }

Property Value

string