Coverage for cuda/core/texture/__init__.py: 100.00%
5 statements
« prev ^ index » next coverage.py v7.15.0, created at 2026-07-03 01:38 +0000
« prev ^ index » next coverage.py v7.15.0, created at 2026-07-03 01:38 +0000
1# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
2#
3# SPDX-License-Identifier: Apache-2.0
5"""Texture and surface APIs for ``cuda.core``.
7This subpackage groups the CUDA "Texture and Surface" object model — opaque
8array storage and the bindless texture/surface handles built on it — under a
9single namespace, mirroring how the CUDA driver documentation organizes them.
11Import these types from here, e.g.::
13 from cuda.core.texture import OpaqueArray, TextureObject, TextureDescriptor
14"""
16from cuda.core.texture._array import ArrayFormat, OpaqueArray
17from cuda.core.texture._mipmapped_array import MipmappedArray
18from cuda.core.texture._surface import SurfaceObject
19from cuda.core.texture._texture import (
20 AddressMode,
21 FilterMode,
22 ReadMode,
23 ResourceDescriptor,
24 TextureDescriptor,
25 TextureObject,
26)
28__all__ = [
29 "AddressMode",
30 "ArrayFormat",
31 "FilterMode",
32 "MipmappedArray",
33 "OpaqueArray",
34 "ReadMode",
35 "ResourceDescriptor",
36 "SurfaceObject",
37 "TextureDescriptor",
38 "TextureObject",
39]