cuda.bindings._v2.driver.TextureDesc_v1#

class cuda.bindings._v2.driver.TextureDesc_v1#

Empty-initialize an instance of CUDA_TEXTURE_DESC_v1.

See also

CUDA_TEXTURE_DESC_v1

__init__(*args, **kwargs)#

Methods

__init__(*args, **kwargs)

from_buffer(buffer)

Create an TextureDesc_v1 instance with the memory from the given buffer.

from_data(data)

Create an TextureDesc_v1 instance wrapping the given NumPy array.

from_ptr(intptr_t ptr, bool readonly=False)

Create an TextureDesc_v1 instance wrapping the given pointer.

Attributes

address_mode

(array of length 3).

border_color

(array of length 4).

filter_mode

int:

flags_

int:

max_anisotropy

int:

max_mipmap_level_clamp

float:

min_mipmap_level_clamp

float:

mipmap_filter_mode

int:

mipmap_level_bias

float:

ptr

Get the pointer address to the data as Python int.