Table of Contents

Struct CudaTextureDescriptor

Namespace
JYPPX.CudaSharp
Assembly
JYPPX.CudaSharp.dll

Defines pointer-free CUDA texture sampling parameters. 定义无指针的 CUDA texture 采样参数。

public readonly struct CudaTextureDescriptor
Inherited Members

Constructors

CudaTextureDescriptor(CudaTextureAddressMode, CudaTextureAddressMode, CudaTextureAddressMode, CudaTextureFilterMode, CudaTextureReadMode, bool, bool, uint, CudaTextureFilterMode, float, float, float, bool, bool, float, float, float, float)

Initializes a CUDA texture descriptor. 初始化 CUDA texture descriptor。

public CudaTextureDescriptor(CudaTextureAddressMode addressModeX, CudaTextureAddressMode addressModeY = CudaTextureAddressMode.Clamp, CudaTextureAddressMode addressModeZ = CudaTextureAddressMode.Clamp, CudaTextureFilterMode filterMode = CudaTextureFilterMode.Point, CudaTextureReadMode readMode = CudaTextureReadMode.ElementType, bool normalizedCoordinates = false, bool srgb = false, uint maxAnisotropy = 1, CudaTextureFilterMode mipmapFilterMode = CudaTextureFilterMode.Point, float mipmapLevelBias = 0, float minMipmapLevelClamp = 0, float maxMipmapLevelClamp = 0, bool disableTrilinearOptimization = false, bool seamlessCubemap = false, float borderColorR = 0, float borderColorG = 0, float borderColorB = 0, float borderColorA = 0)

Parameters

addressModeX CudaTextureAddressMode
addressModeY CudaTextureAddressMode
addressModeZ CudaTextureAddressMode
filterMode CudaTextureFilterMode
readMode CudaTextureReadMode
normalizedCoordinates bool
srgb bool
maxAnisotropy uint
mipmapFilterMode CudaTextureFilterMode
mipmapLevelBias float
minMipmapLevelClamp float
maxMipmapLevelClamp float
disableTrilinearOptimization bool
seamlessCubemap bool
borderColorR float
borderColorG float
borderColorB float
borderColorA float

Properties

AddressModeX

Gets the X-axis addressing mode. 获取 X 轴寻址模式。

public CudaTextureAddressMode AddressModeX { get; }

Property Value

CudaTextureAddressMode

AddressModeY

Gets the Y-axis addressing mode. 获取 Y 轴寻址模式。

public CudaTextureAddressMode AddressModeY { get; }

Property Value

CudaTextureAddressMode

AddressModeZ

Gets the Z-axis addressing mode. 获取 Z 轴寻址模式。

public CudaTextureAddressMode AddressModeZ { get; }

Property Value

CudaTextureAddressMode

BorderColorA

Gets the alpha border-color component. 获取边界颜色的透明度分量。

public float BorderColorA { get; }

Property Value

float

BorderColorB

Gets the blue border-color component. 获取边界颜色的蓝色分量。

public float BorderColorB { get; }

Property Value

float

BorderColorG

Gets the green border-color component. 获取边界颜色的绿色分量。

public float BorderColorG { get; }

Property Value

float

BorderColorR

Gets the red border-color component. 获取边界颜色的红色分量。

public float BorderColorR { get; }

Property Value

float

Default

Gets a conservative point-sampling descriptor. 获取保守的点采样 descriptor。

public static CudaTextureDescriptor Default { get; }

Property Value

CudaTextureDescriptor

DisableTrilinearOptimization

Gets whether trilinear optimization is disabled. 获取是否禁用三线性优化。

public bool DisableTrilinearOptimization { get; }

Property Value

bool

FilterMode

Gets the base-level filtering mode. 获取基础 mip level 的过滤模式。

public CudaTextureFilterMode FilterMode { get; }

Property Value

CudaTextureFilterMode

MaxAnisotropy

Gets the maximum anisotropy value. 获取最大各向异性值。

public uint MaxAnisotropy { get; }

Property Value

uint

MaxMipmapLevelClamp

Gets the maximum mipmap level clamp. 获取最大 mipmap level 限制。

public float MaxMipmapLevelClamp { get; }

Property Value

float

MinMipmapLevelClamp

Gets the minimum mipmap level clamp. 获取最小 mipmap level 限制。

public float MinMipmapLevelClamp { get; }

Property Value

float

MipmapFilterMode

Gets the mipmap filtering mode. 获取 mipmap 过滤模式。

public CudaTextureFilterMode MipmapFilterMode { get; }

Property Value

CudaTextureFilterMode

MipmapLevelBias

Gets the mipmap level-of-detail bias. 获取 mipmap 细节级别偏移。

public float MipmapLevelBias { get; }

Property Value

float

NormalizedCoordinates

Gets whether texture coordinates are normalized. 获取 texture 坐标是否归一化。

public bool NormalizedCoordinates { get; }

Property Value

bool

ReadMode

Gets the texture read-conversion mode. 获取 texture 读取转换模式。

public CudaTextureReadMode ReadMode { get; }

Property Value

CudaTextureReadMode

SeamlessCubemap

Gets whether seamless cubemap filtering is enabled. 获取是否启用无缝 cubemap 过滤。

public bool SeamlessCubemap { get; }

Property Value

bool

Srgb

Gets whether sRGB conversion is enabled. 获取是否启用 sRGB 转换。

public bool Srgb { get; }

Property Value

bool

Methods

ToString()

Formats the copied descriptor for diagnostics. 格式化复制型 descriptor。

public override string ToString()

Returns

string