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
IsOutput
Gets or sets whether this argument is an output parameter.
public bool IsOutput { get; init; }
Property Value
MemoryBuffer
Gets or sets the memory buffer if applicable.
public IUnifiedMemoryBuffer? MemoryBuffer { get; init; }
Property Value
Name
Gets or sets the argument name.
public required string Name { get; init; }
Property Value
Size
Gets or sets the size of the argument (for compatibility).
public int Size { get; init; }
Property Value
SizeInBytes
Gets or sets the size in bytes for raw buffers.
public long SizeInBytes { get; init; }
Property Value
Type
Gets or sets the argument type.
public required Type Type { get; init; }
Property Value
Value
Gets or sets the argument value.
public required object Value { get; init; }