Table of Contents

Struct CudaChannelFormatDescriptor

Namespace
JYPPX.CudaSharp
Assembly
JYPPX.CudaSharp.dll

Describes the channel bit layout for a CUDA array. 描述 CUDA array 的通道位布局。

public readonly struct CudaChannelFormatDescriptor
Inherited Members

Constructors

CudaChannelFormatDescriptor(int, int, int, int, CudaChannelFormatKind)

Initializes a channel descriptor with explicit component bit sizes. 使用显式分量位宽初始化通道描述符。

public CudaChannelFormatDescriptor(int x, int y, int z, int w, CudaChannelFormatKind formatKind)

Parameters

x int
y int
z int
w int
formatKind CudaChannelFormatKind

Properties

Float32

Gets a single-channel 32-bit floating-point descriptor. 获取单通道 32 位浮点描述符。

public static CudaChannelFormatDescriptor Float32 { get; }

Property Value

CudaChannelFormatDescriptor

FormatKind

Gets the logical format kind for the channel descriptor. 获取该通道描述符的逻辑格式类型。

public CudaChannelFormatKind FormatKind { get; }

Property Value

CudaChannelFormatKind

UInt8

Gets a single-channel 8-bit unsigned descriptor. 获取单通道 8 位无符号整数描述符。

public static CudaChannelFormatDescriptor UInt8 { get; }

Property Value

CudaChannelFormatDescriptor

W

Gets the bit size of the W component. 获取 W 分量的位宽。

public int W { get; }

Property Value

int

X

Gets the bit size of the X component. 获取 X 分量的位宽。

public int X { get; }

Property Value

int

Y

Gets the bit size of the Y component. 获取 Y 分量的位宽。

public int Y { get; }

Property Value

int

Z

Gets the bit size of the Z component. 获取 Z 分量的位宽。

public int Z { get; }

Property Value

int

Methods

ToString()

Formats the channel descriptor for diagnostics. 将通道描述符格式化为便于诊断的字符串。

public override string ToString()

Returns

string