cuda.core.texture.TextureObjectOptions#
- class cuda.core.texture.TextureObjectOptions(
- address_mode: AddressModeType | tuple[AddressModeType, ...] = AddressModeType.CLAMP,
- filter_mode: FilterModeType = FilterModeType.POINT,
- read_mode: ReadModeType = ReadModeType.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: FilterModeType = FilterModeType.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
AddressModeType(applied to all axes) or a tuple of 1-3 entries (one per dimension). Plain strings are accepted.- Type:
- filter_mode#
Texel sampling mode. Default
POINT.- Type:
- read_mode#
How sampled integer values are returned. Default
ELEMENT_TYPE.- Type:
- mipmap_filter_mode#
Filtering between mipmap levels. Default
POINT.- Type:
- border_color#
4-tuple used when
address_modeincludesBORDER;Nonemeans zero.
- .. versionadded:: 1.1.0