Coverage for cuda/core/texture/__init__.py: 100.00%

5 statements  

« prev     ^ index     » next       coverage.py v7.15.2, created at 2026-07-19 01:12 +0000

1# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. 

2# 

3# SPDX-License-Identifier: Apache-2.0 

4 

5"""Texture and surface APIs for ``cuda.core``. 

6 

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. 

10 

11Import these types from here, e.g.:: 

12 

13 from cuda.core.texture import OpaqueArray, TextureObject, TextureObjectOptions 

14 

15The associated enumerations (:class:`~cuda.core.typing.ArrayFormatType`, 

16:class:`~cuda.core.typing.AddressModeType`, 

17:class:`~cuda.core.typing.FilterModeType`, 

18:class:`~cuda.core.typing.ReadModeType`) live in :mod:`cuda.core.typing` 

19alongside the other ``cuda.core`` enumerations. 

20""" 

21 

22from cuda.core.texture._array import OpaqueArray, OpaqueArrayOptions 

23from cuda.core.texture._mipmapped_array import MipmappedArray, MipmappedArrayOptions 

24from cuda.core.texture._surface import SurfaceObject 

25from cuda.core.texture._texture import ( 

26 ResourceDescriptor, 

27 TextureObject, 

28 TextureObjectOptions, 

29) 

30 

31__all__ = [ 

32 "MipmappedArray", 

33 "MipmappedArrayOptions", 

34 "OpaqueArray", 

35 "OpaqueArrayOptions", 

36 "ResourceDescriptor", 

37 "SurfaceObject", 

38 "TextureObject", 

39 "TextureObjectOptions", 

40]