Package | Description |
---|---|
org.bytedeco.cuda.global |
Modifier and Type | Method and Description |
---|---|
static int |
cudart.cuModuleGetTexRef(CUtexref_st pTexRef,
CUmod_st hmod,
BytePointer name)
Deprecated.
Returns in \p *pTexRef the handle of the texture reference of name \p name
in the module \p hmod. If no texture reference of that name exists,
::cuModuleGetTexRef() returns ::CUDA_ERROR_NOT_FOUND. This texture reference
handle should not be destroyed, since it will be destroyed when the module
is unloaded.
|
static int |
cudart.cuModuleGetTexRef(CUtexref_st pTexRef,
CUmod_st hmod,
String name)
Deprecated.
|
static int |
cudart.cuParamSetTexRef(CUfunc_st hfunc,
int texunit,
CUtexref_st hTexRef)
Deprecated.
Makes the CUDA array or linear memory bound to the texture reference
\p hTexRef available to a device program as a texture. In this version of
CUDA, the texture-reference must be obtained via ::cuModuleGetTexRef() and
the \p texunit parameter must be set to ::CU_PARAM_TR_DEFAULT.
|
static int |
cudart.cuTexRefCreate(CUtexref_st pTexRef)
Deprecated.
Creates a texture reference and returns its handle in \p *pTexRef. Once
created, the application must call ::cuTexRefSetArray() or
::cuTexRefSetAddress() to associate the reference with allocated memory.
Other texture reference functions are used to specify the format and
interpretation (addressing, filtering, etc.) to be used when the memory is
read through this texture reference.
|
static int |
cudart.cuTexRefDestroy(CUtexref_st hTexRef)
Deprecated.
Destroys the texture reference specified by \p hTexRef.
|
static int |
cudart.cuTexRefGetAddress(long[] pdptr,
CUtexref_st hTexRef)
Deprecated.
|
static int |
cudart.cuTexRefGetAddress(LongBuffer pdptr,
CUtexref_st hTexRef)
Deprecated.
|
static int |
cudart.cuTexRefGetAddress(LongPointer pdptr,
CUtexref_st hTexRef)
Deprecated.
Returns in \p *pdptr the base address bound to the texture reference
\p hTexRef, or returns ::CUDA_ERROR_INVALID_VALUE if the texture reference
is not bound to any device memory range.
|
static int |
cudart.cuTexRefGetAddressMode(int[] pam,
CUtexref_st hTexRef,
int dim)
Deprecated.
|
static int |
cudart.cuTexRefGetAddressMode(IntBuffer pam,
CUtexref_st hTexRef,
int dim)
Deprecated.
|
static int |
cudart.cuTexRefGetAddressMode(IntPointer pam,
CUtexref_st hTexRef,
int dim)
Deprecated.
Returns in \p *pam the addressing mode corresponding to the
dimension \p dim of the texture reference \p hTexRef. Currently, the only
valid value for \p dim are 0 and 1.
|
static int |
cudart.cuTexRefGetArray(CUarray_st phArray,
CUtexref_st hTexRef)
Deprecated.
Returns in \p *phArray the CUDA array bound to the texture reference
\p hTexRef, or returns ::CUDA_ERROR_INVALID_VALUE if the texture reference
is not bound to any CUDA array.
|
static int |
cudart.cuTexRefGetBorderColor(float[] pBorderColor,
CUtexref_st hTexRef)
Deprecated.
|
static int |
cudart.cuTexRefGetBorderColor(FloatBuffer pBorderColor,
CUtexref_st hTexRef)
Deprecated.
|
static int |
cudart.cuTexRefGetBorderColor(FloatPointer pBorderColor,
CUtexref_st hTexRef)
Deprecated.
Returns in \p pBorderColor, values of the RGBA color used by
the texture reference \p hTexRef.
The color value is of type float and holds color components in
the following sequence:
pBorderColor[0] holds 'R' component
pBorderColor[1] holds 'G' component
pBorderColor[2] holds 'B' component
pBorderColor[3] holds 'A' component
|
static int |
cudart.cuTexRefGetFilterMode(int[] pfm,
CUtexref_st hTexRef)
Deprecated.
|
static int |
cudart.cuTexRefGetFilterMode(IntBuffer pfm,
CUtexref_st hTexRef)
Deprecated.
|
static int |
cudart.cuTexRefGetFilterMode(IntPointer pfm,
CUtexref_st hTexRef)
Deprecated.
Returns in \p *pfm the filtering mode of the texture reference
\p hTexRef.
|
static int |
cudart.cuTexRefGetFlags(int[] pFlags,
CUtexref_st hTexRef)
Deprecated.
|
static int |
cudart.cuTexRefGetFlags(IntBuffer pFlags,
CUtexref_st hTexRef)
Deprecated.
|
static int |
cudart.cuTexRefGetFlags(IntPointer pFlags,
CUtexref_st hTexRef)
Deprecated.
Returns in \p *pFlags the flags of the texture reference \p hTexRef.
|
static int |
cudart.cuTexRefGetFormat(int[] pFormat,
int[] pNumChannels,
CUtexref_st hTexRef)
Deprecated.
|
static int |
cudart.cuTexRefGetFormat(IntBuffer pFormat,
IntBuffer pNumChannels,
CUtexref_st hTexRef)
Deprecated.
|
static int |
cudart.cuTexRefGetFormat(IntPointer pFormat,
IntPointer pNumChannels,
CUtexref_st hTexRef)
Deprecated.
Returns in \p *pFormat and \p *pNumChannels the format and number
of components of the CUDA array bound to the texture reference \p hTexRef.
If \p pFormat or \p pNumChannels is NULL, it will be ignored.
|
static int |
cudart.cuTexRefGetMaxAnisotropy(int[] pmaxAniso,
CUtexref_st hTexRef)
Deprecated.
|
static int |
cudart.cuTexRefGetMaxAnisotropy(IntBuffer pmaxAniso,
CUtexref_st hTexRef)
Deprecated.
|
static int |
cudart.cuTexRefGetMaxAnisotropy(IntPointer pmaxAniso,
CUtexref_st hTexRef)
Deprecated.
Returns the maximum anisotropy in \p pmaxAniso that's used when reading memory through
the texture reference \p hTexRef.
|
static int |
cudart.cuTexRefGetMipmapFilterMode(int[] pfm,
CUtexref_st hTexRef)
Deprecated.
|
static int |
cudart.cuTexRefGetMipmapFilterMode(IntBuffer pfm,
CUtexref_st hTexRef)
Deprecated.
|
static int |
cudart.cuTexRefGetMipmapFilterMode(IntPointer pfm,
CUtexref_st hTexRef)
Deprecated.
Returns the mipmap filtering mode in \p pfm that's used when reading memory through
the texture reference \p hTexRef.
|
static int |
cudart.cuTexRefGetMipmapLevelBias(float[] pbias,
CUtexref_st hTexRef)
Deprecated.
|
static int |
cudart.cuTexRefGetMipmapLevelBias(FloatBuffer pbias,
CUtexref_st hTexRef)
Deprecated.
|
static int |
cudart.cuTexRefGetMipmapLevelBias(FloatPointer pbias,
CUtexref_st hTexRef)
Deprecated.
Returns the mipmap level bias in \p pBias that's added to the specified mipmap
level when reading memory through the texture reference \p hTexRef.
|
static int |
cudart.cuTexRefGetMipmapLevelClamp(float[] pminMipmapLevelClamp,
float[] pmaxMipmapLevelClamp,
CUtexref_st hTexRef)
Deprecated.
|
static int |
cudart.cuTexRefGetMipmapLevelClamp(FloatBuffer pminMipmapLevelClamp,
FloatBuffer pmaxMipmapLevelClamp,
CUtexref_st hTexRef)
Deprecated.
|
static int |
cudart.cuTexRefGetMipmapLevelClamp(FloatPointer pminMipmapLevelClamp,
FloatPointer pmaxMipmapLevelClamp,
CUtexref_st hTexRef)
Deprecated.
Returns the min/max mipmap level clamps in \p pminMipmapLevelClamp and \p pmaxMipmapLevelClamp
that's used when reading memory through the texture reference \p hTexRef.
|
static int |
cudart.cuTexRefGetMipmappedArray(CUmipmappedArray_st phMipmappedArray,
CUtexref_st hTexRef)
Deprecated.
Returns in \p *phMipmappedArray the CUDA mipmapped array bound to the texture
reference \p hTexRef, or returns ::CUDA_ERROR_INVALID_VALUE if the texture reference
is not bound to any CUDA mipmapped array.
|
static int |
cudart.cuTexRefSetAddress(SizeTPointer ByteOffset,
CUtexref_st hTexRef,
long dptr,
long bytes)
Deprecated.
Binds a linear address range to the texture reference \p hTexRef. Any
previous address or CUDA array state associated with the texture reference
is superseded by this function. Any memory previously bound to \p hTexRef
is unbound.
Since the hardware enforces an alignment requirement on texture base
addresses, ::cuTexRefSetAddress() passes back a byte offset in
\p *ByteOffset 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 ::cuMemAlloc(), the offset
is guaranteed to be 0 and NULL may be passed as the \p ByteOffset parameter.
The total number of elements (or texels) in the linear address range
cannot exceed ::CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE1D_LINEAR_WIDTH.
The number of elements is computed as (\p bytes / bytesPerElement),
where bytesPerElement is determined from the data format and number of
components set using ::cuTexRefSetFormat().
|
static int |
cudart.cuTexRefSetAddress2D(CUtexref_st hTexRef,
CUDA_ARRAY_DESCRIPTOR_v2 desc,
long dptr,
long Pitch)
Deprecated.
Binds a linear address range to the texture reference \p hTexRef. Any
previous address or CUDA array state associated with the texture reference
is superseded by this function. Any memory previously bound to \p hTexRef
is unbound.
Using a ::tex2D() function inside a kernel requires a call to either
::cuTexRefSetArray() to bind the corresponding texture reference to an
array, or ::cuTexRefSetAddress2D() to bind the texture reference to linear
memory.
Function calls to ::cuTexRefSetFormat() cannot follow calls to
::cuTexRefSetAddress2D() for the same texture reference.
It is required that \p dptr be aligned to the appropriate hardware-specific
texture alignment. You can query this value using the device attribute
::CU_DEVICE_ATTRIBUTE_TEXTURE_ALIGNMENT. If an unaligned \p dptr is
supplied, ::CUDA_ERROR_INVALID_VALUE is returned.
\p Pitch has to be aligned to the hardware-specific texture pitch alignment.
This value can be queried using the device attribute
::CU_DEVICE_ATTRIBUTE_TEXTURE_PITCH_ALIGNMENT. If an unaligned \p Pitch is
supplied, ::CUDA_ERROR_INVALID_VALUE is returned.
Width and Height, which are specified in elements (or texels), cannot exceed
::CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_LINEAR_WIDTH and
::CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_LINEAR_HEIGHT respectively.
\p Pitch, which is specified in bytes, cannot exceed
::CU_DEVICE_ATTRIBUTE_MAXIMUM_TEXTURE2D_LINEAR_PITCH.
|
static int |
cudart.cuTexRefSetAddressMode(CUtexref_st hTexRef,
int dim,
int am)
Deprecated.
Specifies the addressing mode \p am for the given dimension \p dim of the
texture reference \p hTexRef. If \p dim is zero, the addressing mode is
applied to the first parameter of the functions used to fetch from the
texture; if \p dim is 1, the second, and so on. ::CUaddress_mode is defined
as:
Note that this call has no effect if \p hTexRef is bound to linear memory.
Also, if the flag, ::CU_TRSF_NORMALIZED_COORDINATES, is not set, the only
supported address mode is ::CU_TR_ADDRESS_MODE_CLAMP. |
static int |
cudart.cuTexRefSetArray(CUtexref_st hTexRef,
CUarray_st hArray,
int Flags)
Deprecated.
Binds the CUDA array \p hArray to the texture reference \p hTexRef. Any
previous address or CUDA array state associated with the texture reference
is superseded by this function. \p Flags must be set to
::CU_TRSA_OVERRIDE_FORMAT. Any CUDA array previously bound to \p hTexRef is
unbound.
|
static int |
cudart.cuTexRefSetBorderColor(CUtexref_st hTexRef,
float[] pBorderColor)
Deprecated.
|
static int |
cudart.cuTexRefSetBorderColor(CUtexref_st hTexRef,
FloatBuffer pBorderColor)
Deprecated.
|
static int |
cudart.cuTexRefSetBorderColor(CUtexref_st hTexRef,
FloatPointer pBorderColor)
Deprecated.
Specifies the value of the RGBA color via the \p pBorderColor to the texture reference
\p hTexRef. The color value supports only float type and holds color components in
the following sequence:
pBorderColor[0] holds 'R' component
pBorderColor[1] holds 'G' component
pBorderColor[2] holds 'B' component
pBorderColor[3] holds 'A' component
Note that the color values can be set only when the Address mode is set to
CU_TR_ADDRESS_MODE_BORDER using ::cuTexRefSetAddressMode.
Applications using integer border color values have to "reinterpret_cast" their values to float.
|
static int |
cudart.cuTexRefSetFilterMode(CUtexref_st hTexRef,
int fm)
Deprecated.
Specifies the filtering mode \p fm to be used when reading memory through
the texture reference \p hTexRef. ::CUfilter_mode_enum is defined as:
Note that this call has no effect if \p hTexRef is bound to linear memory. |
static int |
cudart.cuTexRefSetFlags(CUtexref_st hTexRef,
int Flags)
Deprecated.
Specifies optional flags via \p Flags to specify the behavior of data
returned through the texture reference \p hTexRef. The valid flags are:
- ::CU_TRSF_READ_AS_INTEGER, which suppresses the default behavior of
having the texture promote integer data to floating point data in the
range [0, 1]. Note that texture with 32-bit integer format
would not be promoted, regardless of whether or not this
flag is specified;
- ::CU_TRSF_NORMALIZED_COORDINATES, which suppresses the
default behavior of having the texture coordinates range
from [0, Dim) where Dim is the width or height of the CUDA
array. Instead, the texture coordinates [0, 1.0) reference
the entire breadth of the array dimension;
- ::CU_TRSF_DISABLE_TRILINEAR_OPTIMIZATION, which disables any trilinear
filtering optimizations. Trilinear optimizations improve texture filtering
performance by allowing bilinear filtering on textures in scenarios where
it can closely approximate the expected results.
|
static int |
cudart.cuTexRefSetFormat(CUtexref_st hTexRef,
int fmt,
int NumPackedComponents)
Deprecated.
Specifies the format of the data to be read by the texture reference
\p hTexRef. \p fmt and \p NumPackedComponents are exactly analogous to the
::Format and ::NumChannels members of the ::CUDA_ARRAY_DESCRIPTOR structure:
They specify the format of each component and the number of components per
array element.
|
static int |
cudart.cuTexRefSetMaxAnisotropy(CUtexref_st hTexRef,
int maxAniso)
Deprecated.
Specifies the maximum anisotropy \p maxAniso to be used when reading memory through
the texture reference \p hTexRef.
Note that this call has no effect if \p hTexRef is bound to linear memory.
|
static int |
cudart.cuTexRefSetMipmapFilterMode(CUtexref_st hTexRef,
int fm)
Deprecated.
Specifies the mipmap filtering mode \p fm to be used when reading memory through
the texture reference \p hTexRef. ::CUfilter_mode_enum is defined as:
Note that this call has no effect if \p hTexRef is not bound to a mipmapped array. |
static int |
cudart.cuTexRefSetMipmapLevelBias(CUtexref_st hTexRef,
float bias)
Deprecated.
Specifies the mipmap level bias \p bias to be added to the specified mipmap level when
reading memory through the texture reference \p hTexRef.
Note that this call has no effect if \p hTexRef is not bound to a mipmapped array.
|
static int |
cudart.cuTexRefSetMipmapLevelClamp(CUtexref_st hTexRef,
float minMipmapLevelClamp,
float maxMipmapLevelClamp)
Deprecated.
Specifies the min/max mipmap level clamps, \p minMipmapLevelClamp and \p maxMipmapLevelClamp
respectively, to be used when reading memory through the texture reference
\p hTexRef.
Note that this call has no effect if \p hTexRef is not bound to a mipmapped array.
|
static int |
cudart.cuTexRefSetMipmappedArray(CUtexref_st hTexRef,
CUmipmappedArray_st hMipmappedArray,
int Flags)
Deprecated.
Binds the CUDA mipmapped array \p hMipmappedArray to the texture reference \p hTexRef.
Any previous address or CUDA array state associated with the texture reference
is superseded by this function. \p Flags must be set to ::CU_TRSA_OVERRIDE_FORMAT.
Any CUDA array previously bound to \p hTexRef is unbound.
|
Copyright © 2024. All rights reserved.