Table of Contents

Class KernelArgument

Namespace
DotCompute.Abstractions.Interfaces.Kernels
Assembly
DotCompute.Abstractions.dll

Represents a kernel argument.

public sealed class KernelArgument
Inheritance
KernelArgument
Inherited Members

Properties

IsDeviceMemory

Gets or sets whether this is a device memory buffer.

public bool IsDeviceMemory { get; init; }

Property Value

bool

IsOutput

Gets or sets whether this argument is an output parameter.

public bool IsOutput { get; init; }

Property Value

bool

MemoryBuffer

Gets or sets the memory buffer if applicable.

public IUnifiedMemoryBuffer? MemoryBuffer { get; init; }

Property Value

IUnifiedMemoryBuffer

Name

Gets or sets the argument name.

public required string Name { get; init; }

Property Value

string

Size

Gets or sets the size of the argument (for compatibility).

public int Size { get; init; }

Property Value

int

SizeInBytes

Gets or sets the size in bytes for raw buffers.

public long SizeInBytes { get; init; }

Property Value

long

Type

Gets or sets the argument type.

public required Type Type { get; init; }

Property Value

Type

Value

Gets or sets the argument value.

public required object Value { get; init; }

Property Value

object