cuda.core.texture.MipmappedArrayOptions#
- class cuda.core.texture.MipmappedArrayOptions(
- shape: tuple[int, ...],
- format: object,
- num_channels: int,
- num_levels: int,
- is_surface_load_store: bool = False,
Options for
cuda.core.Device.create_mipmapped_array().- shape#
(width,),(width, height), or(width, height, depth)in elements, for the base (level 0) mip.
- format#
Element format. Accepts an
ArrayFormatType, a plain string (e.g."float32"), or a NumPy dtype object.- Type:
- num_levels#
Number of mip levels to allocate; must be >= 1. The driver caps this at the log2 of the largest dimension; passing a larger value yields a driver error.
- Type:
- is_surface_load_store#
If True, allocate with
CUDA_ARRAY3D_SURFACE_LDSTso individual levels (obtained viaMipmappedArray.get_level()) can be bound as aSurfaceObjectfor kernel-side writes. Default False.- Type:
- .. versionadded:: 1.1.0