cuda.bindings._v2.driver.ResourceViewDesc_v1#
- class cuda.bindings._v2.driver.ResourceViewDesc_v1#
Empty-initialize an instance of CUDA_RESOURCE_VIEW_DESC_v1.
See also
CUDA_RESOURCE_VIEW_DESC_v1
- __init__(*args, **kwargs)#
Methods
__init__(*args, **kwargs)from_buffer(buffer)Create an ResourceViewDesc_v1 instance with the memory from the given buffer.
from_data(data)Create an ResourceViewDesc_v1 instance wrapping the given NumPy array.
from_ptr(intptr_t ptr, bool readonly=False)Create an ResourceViewDesc_v1 instance wrapping the given pointer.
Attributes
depthint:
first_layerint:
first_mipmap_levelint:
formatint:
heightint:
last_layerint:
last_mipmap_levelint:
ptrGet the pointer address to the data as Python
int.widthint: