Struct CudaChannelFormatDescriptor
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
xintyintzintwintformatKindCudaChannelFormatKind
Properties
Float32
Gets a single-channel 32-bit floating-point descriptor. 获取单通道 32 位浮点描述符。
public static CudaChannelFormatDescriptor Float32 { get; }
Property Value
FormatKind
Gets the logical format kind for the channel descriptor. 获取该通道描述符的逻辑格式类型。
public CudaChannelFormatKind FormatKind { get; }
Property Value
UInt8
Gets a single-channel 8-bit unsigned descriptor. 获取单通道 8 位无符号整数描述符。
public static CudaChannelFormatDescriptor UInt8 { get; }
Property Value
W
Gets the bit size of the W component. 获取 W 分量的位宽。
public int W { get; }
Property Value
X
Gets the bit size of the X component. 获取 X 分量的位宽。
public int X { get; }
Property Value
Y
Gets the bit size of the Y component. 获取 Y 分量的位宽。
public int Y { get; }
Property Value
Z
Gets the bit size of the Z component. 获取 Z 分量的位宽。
public int Z { get; }
Property Value
Methods
ToString()
Formats the channel descriptor for diagnostics. 将通道描述符格式化为便于诊断的字符串。
public override string ToString()