cuda.core.textures.TextureDescriptor#
- class cuda.core.textures.TextureDescriptor(
- address_mode: AddressMode | tuple[AddressMode, ...] = AddressMode.CLAMP,
- filter_mode: FilterMode = FilterMode.POINT,
- read_mode: ReadMode = ReadMode.ELEMENT_TYPE,
- normalized_coords: bool = False,
- srgb: bool = False,
- disable_trilinear_optimization: bool = False,
- seamless_cubemap: bool = False,
- max_anisotropy: int = 0,
- mipmap_filter_mode: FilterMode = FilterMode.POINT,
- mipmap_level_bias: float = 0.0,
- min_mipmap_level_clamp: float = 0.0,
- max_mipmap_level_clamp: float = 0.0,
- border_color: tuple[float, ...] | None = None,
Sampling state for a
TextureObject(mirrorsCUDA_TEXTURE_DESC).- address_mode#
Boundary behavior per axis. May be a single
AddressMode(applied to all axes) or a tuple of 1-3 entries (one per dimension).- Type:
tuple of AddressMode
- filter_mode#
Texel sampling mode. Default
POINT.- Type:
- mipmap_filter_mode#
Filtering between mipmap levels. Default
POINT.- Type: