| Package | Description |
|---|---|
| org.bytedeco.cuda.cudart | |
| org.bytedeco.cuda.global |
| Modifier and Type | Method and Description |
|---|---|
cudaChannelFormatDesc |
textureReference.channelDesc()
Channel descriptor for the texture reference
|
cudaChannelFormatDesc |
surfaceReference.channelDesc()
Channel descriptor for surface reference
|
cudaChannelFormatDesc |
cudaChannelFormatDesc.f(int setter) |
cudaChannelFormatDesc |
cudaExternalMemoryMipmappedArrayDesc.formatDesc()
Format of base level of the mipmap chain
|
cudaChannelFormatDesc |
cudaChannelFormatDesc.position(long position) |
cudaChannelFormatDesc |
cudaResourceDesc.res_linear_desc()
Channel descriptor
|
cudaChannelFormatDesc |
cudaResourceDesc.res_pitch2D_desc()
Channel descriptor
|
cudaChannelFormatDesc |
cudaChannelFormatDesc.w(int setter) |
cudaChannelFormatDesc |
cudaChannelFormatDesc.x(int setter) |
cudaChannelFormatDesc |
cudaChannelFormatDesc.y(int setter) |
cudaChannelFormatDesc |
cudaChannelFormatDesc.z(int setter) |
| Modifier and Type | Method and Description |
|---|---|
textureReference |
textureReference.channelDesc(cudaChannelFormatDesc setter) |
surfaceReference |
surfaceReference.channelDesc(cudaChannelFormatDesc setter) |
cudaExternalMemoryMipmappedArrayDesc |
cudaExternalMemoryMipmappedArrayDesc.formatDesc(cudaChannelFormatDesc setter) |
cudaResourceDesc |
cudaResourceDesc.res_linear_desc(cudaChannelFormatDesc setter) |
cudaResourceDesc |
cudaResourceDesc.res_pitch2D_desc(cudaChannelFormatDesc setter) |
| Modifier and Type | Method and Description |
|---|---|
static cudaChannelFormatDesc |
cudart.cudaCreateChannelDesc(int x,
int y,
int z,
int w,
int f)
\brief Returns a channel descriptor using the specified format
Returns a channel descriptor with format \p f and number of bits of each
component \p x, \p y, \p z, and \p w.
|
| Modifier and Type | Method and Description |
|---|---|
static int |
cudart.cudaArrayGetInfo(cudaChannelFormatDesc desc,
cudaExtent extent,
int[] flags,
cudaArray array) |
static int |
cudart.cudaArrayGetInfo(cudaChannelFormatDesc desc,
cudaExtent extent,
IntBuffer flags,
cudaArray array) |
static int |
cudart.cudaArrayGetInfo(cudaChannelFormatDesc desc,
cudaExtent extent,
IntPointer flags,
cudaArray array)
\brief Gets info about the specified cudaArray
Returns in \p *desc, \p *extent and \p *flags respectively, the type, shape
and flags of \p array.
|
static int |
cudart.cudaBindSurfaceToArray(surfaceReference surfref,
cudaArray array,
cudaChannelFormatDesc desc)
Deprecated.
Binds the CUDA array \p array to the surface reference \p surfref.
\p desc describes how the memory is interpreted when fetching values from
the surface. Any CUDA array previously bound to \p surfref is unbound.
|
static int |
cudart.cudaBindTexture(SizeTPointer offset,
textureReference texref,
Pointer devPtr,
cudaChannelFormatDesc desc) |
static int |
cudart.cudaBindTexture(SizeTPointer offset,
textureReference texref,
Pointer devPtr,
cudaChannelFormatDesc desc,
long size)
Deprecated.
Binds \p size bytes of the memory area pointed to by \p devPtr to the
texture reference \p texref. \p desc describes how the memory is interpreted
when fetching values from the texture. Any memory previously bound to
\p texref is unbound.
Since the hardware enforces an alignment requirement on texture base
addresses,
\ref ::cudaBindTexture(size_t*, const struct textureReference*, const void*, const struct cudaChannelFormatDesc*, size_t) "cudaBindTexture()"
returns in \p *offset a byte offset that
must be applied to texture fetches in order to read from the desired memory.
This offset must be divided by the texel size and passed to kernels that
read from the texture so they can be applied to the ::tex1Dfetch() function.
If the device memory pointer was returned from ::cudaMalloc(), the offset is
guaranteed to be 0 and NULL may be passed as the \p offset parameter.
The total number of elements (or texels) in the linear address range
cannot exceed ::cudaDeviceProp::maxTexture1DLinear[0].
The number of elements is computed as (\p size / elementSize),
where elementSize is determined from \p desc.
|
static int |
cudart.cudaBindTexture2D(SizeTPointer offset,
textureReference texref,
Pointer devPtr,
cudaChannelFormatDesc desc,
long width,
long height,
long pitch)
Deprecated.
Binds the 2D memory area pointed to by \p devPtr to the
texture reference \p texref. The size of the area is constrained by
\p width in texel units, \p height in texel units, and \p pitch in byte
units. \p desc describes how the memory is interpreted when fetching values
from the texture. Any memory previously bound to \p texref is unbound.
Since the hardware enforces an alignment requirement on texture base
addresses, ::cudaBindTexture2D() returns in \p *offset a byte offset that
must be applied to texture fetches in order to read from the desired memory.
This offset must be divided by the texel size and passed to kernels that
read from the texture so they can be applied to the ::tex2D() function.
If the device memory pointer was returned from ::cudaMalloc(), the offset is
guaranteed to be 0 and NULL may be passed as the \p offset parameter.
\p width and \p height, which are specified in elements (or texels), cannot
exceed ::cudaDeviceProp::maxTexture2DLinear[0] and ::cudaDeviceProp::maxTexture2DLinear[1]
respectively. \p pitch, which is specified in bytes, cannot exceed
::cudaDeviceProp::maxTexture2DLinear[2].
The driver returns ::cudaErrorInvalidValue if \p pitch is not a multiple of
::cudaDeviceProp::texturePitchAlignment.
|
static int |
cudart.cudaBindTextureToArray(textureReference texref,
cudaArray array,
cudaChannelFormatDesc desc)
Deprecated.
Binds the CUDA array \p array to the texture reference \p texref.
\p desc describes how the memory is interpreted when fetching values from
the texture. Any CUDA array previously bound to \p texref is unbound.
|
static int |
cudart.cudaBindTextureToMipmappedArray(textureReference texref,
cudaMipmappedArray mipmappedArray,
cudaChannelFormatDesc desc)
Deprecated.
Binds the CUDA mipmapped array \p mipmappedArray to the texture reference \p texref.
\p desc describes how the memory is interpreted when fetching values from
the texture. Any CUDA mipmapped array previously bound to \p texref is unbound.
|
static int |
cudart.cudaGetChannelDesc(cudaChannelFormatDesc desc,
cudaArray array)
\brief Get the channel descriptor of an array
Returns in \p *desc the channel descriptor of the CUDA array \p array.
|
static int |
cudart.cudaMalloc3DArray(cudaArray array,
cudaChannelFormatDesc desc,
cudaExtent extent) |
static int |
cudart.cudaMalloc3DArray(cudaArray array,
cudaChannelFormatDesc desc,
cudaExtent extent,
int flags)
\brief Allocate an array on the device
Allocates a CUDA array according to the ::cudaChannelFormatDesc structure
\p desc and returns a handle to the new CUDA array in \p *array.
|
static int |
cudart.cudaMallocArray(cudaArray array,
cudaChannelFormatDesc desc,
long width) |
static int |
cudart.cudaMallocArray(cudaArray array,
cudaChannelFormatDesc desc,
long width,
long height,
int flags)
\brief Allocate an array on the device
Allocates a CUDA array according to the ::cudaChannelFormatDesc structure
\p desc and returns a handle to the new CUDA array in \p *array.
|
static int |
cudart.cudaMallocMipmappedArray(cudaMipmappedArray mipmappedArray,
cudaChannelFormatDesc desc,
cudaExtent extent,
int numLevels) |
static int |
cudart.cudaMallocMipmappedArray(cudaMipmappedArray mipmappedArray,
cudaChannelFormatDesc desc,
cudaExtent extent,
int numLevels,
int flags)
\brief Allocate a mipmapped array on the device
Allocates a CUDA mipmapped array according to the ::cudaChannelFormatDesc structure
\p desc and returns a handle to the new CUDA mipmapped array in \p *mipmappedArray.
|
Copyright © 2019. All rights reserved.