Struct CudaTextureDescriptor
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
addressModeXCudaTextureAddressModeaddressModeYCudaTextureAddressModeaddressModeZCudaTextureAddressModefilterModeCudaTextureFilterModereadModeCudaTextureReadModenormalizedCoordinatesboolsrgbboolmaxAnisotropyuintmipmapFilterModeCudaTextureFilterModemipmapLevelBiasfloatminMipmapLevelClampfloatmaxMipmapLevelClampfloatdisableTrilinearOptimizationboolseamlessCubemapboolborderColorRfloatborderColorGfloatborderColorBfloatborderColorAfloat
Properties
AddressModeX
Gets the X-axis addressing mode. 获取 X 轴寻址模式。
public CudaTextureAddressMode AddressModeX { get; }
Property Value
AddressModeY
Gets the Y-axis addressing mode. 获取 Y 轴寻址模式。
public CudaTextureAddressMode AddressModeY { get; }
Property Value
AddressModeZ
Gets the Z-axis addressing mode. 获取 Z 轴寻址模式。
public CudaTextureAddressMode AddressModeZ { get; }
Property Value
BorderColorA
Gets the alpha border-color component. 获取边界颜色的透明度分量。
public float BorderColorA { get; }
Property Value
BorderColorB
Gets the blue border-color component. 获取边界颜色的蓝色分量。
public float BorderColorB { get; }
Property Value
BorderColorG
Gets the green border-color component. 获取边界颜色的绿色分量。
public float BorderColorG { get; }
Property Value
BorderColorR
Gets the red border-color component. 获取边界颜色的红色分量。
public float BorderColorR { get; }
Property Value
Default
Gets a conservative point-sampling descriptor. 获取保守的点采样 descriptor。
public static CudaTextureDescriptor Default { get; }
Property Value
DisableTrilinearOptimization
Gets whether trilinear optimization is disabled. 获取是否禁用三线性优化。
public bool DisableTrilinearOptimization { get; }
Property Value
FilterMode
Gets the base-level filtering mode. 获取基础 mip level 的过滤模式。
public CudaTextureFilterMode FilterMode { get; }
Property Value
MaxAnisotropy
Gets the maximum anisotropy value. 获取最大各向异性值。
public uint MaxAnisotropy { get; }
Property Value
MaxMipmapLevelClamp
Gets the maximum mipmap level clamp. 获取最大 mipmap level 限制。
public float MaxMipmapLevelClamp { get; }
Property Value
MinMipmapLevelClamp
Gets the minimum mipmap level clamp. 获取最小 mipmap level 限制。
public float MinMipmapLevelClamp { get; }
Property Value
MipmapFilterMode
Gets the mipmap filtering mode. 获取 mipmap 过滤模式。
public CudaTextureFilterMode MipmapFilterMode { get; }
Property Value
MipmapLevelBias
Gets the mipmap level-of-detail bias. 获取 mipmap 细节级别偏移。
public float MipmapLevelBias { get; }
Property Value
NormalizedCoordinates
Gets whether texture coordinates are normalized. 获取 texture 坐标是否归一化。
public bool NormalizedCoordinates { get; }
Property Value
ReadMode
Gets the texture read-conversion mode. 获取 texture 读取转换模式。
public CudaTextureReadMode ReadMode { get; }
Property Value
SeamlessCubemap
Gets whether seamless cubemap filtering is enabled. 获取是否启用无缝 cubemap 过滤。
public bool SeamlessCubemap { get; }
Property Value
Srgb
Gets whether sRGB conversion is enabled. 获取是否启用 sRGB 转换。
public bool Srgb { get; }
Property Value
Methods
ToString()
Formats the copied descriptor for diagnostics. 格式化复制型 descriptor。
public override string ToString()