Kanzi 3.9.10
GPUResourceMemoryType Enum Reference

Legacy version of enum "kanzi.GPUResource.MemoryType". More...

Inheritance diagram for GPUResourceMemoryType:
[legend]

Public Member Functions

 GPUResourceMemoryType (GPUResourceMemoryType enum_)
 Constructs a copy of a GPUResourceMemoryType object.
 
 GPUResourceMemoryType (int value)
 Constructs a GPUResourceMemoryType of an integer value.
 
int getValue ()
 Returns the integer value of the enumeration constant.
 
final int swigValue ()
 Returns the integer value of the enumeration constant.
 

Static Public Member Functions

static GPUResourceMemoryType swigToEnum (int swigValue)
 Converts an integer value to the matching enumeration constant.
 
static GPUResourceMemoryType toEnum (int value)
 Converts an integer value to the matching enumeration constant.
 

Public Attributes

 GpuAndRam =(1)
 Data will remain in memory after being uploaded to the GPU.
 
 GpuOnly =(0)
 Data will be uploaded to the GPU and destroyed locally (default).
 
 RamOnly =(2)
 Data will not be uploaded to GPU and will be sent from RAM whenever needed.
 

Detailed Description

Legacy version of enum "kanzi.GPUResource.MemoryType".


Memory upload and RAM preservation strategy for GPU resources.

Constructor & Destructor Documentation

◆ GPUResourceMemoryType() [1/2]

Constructs a GPUResourceMemoryType of an integer value.

Parameters
valueInteger value to convert to enumeration constant.

◆ GPUResourceMemoryType() [2/2]

Constructs a copy of a GPUResourceMemoryType object.

Parameters
enum_GPUResourceMemoryType to be copy constructed.

Member Function Documentation

◆ getValue()

int getValue ( )

Returns the integer value of the enumeration constant.

Returns
Integer value.

Implements Enum.

◆ swigToEnum()

static GPUResourceMemoryType swigToEnum ( int swigValue)
static

Converts an integer value to the matching enumeration constant.

Used internally by SWIG generated code.

Parameters
swigValueInteger value to convert to enumeration constant.
Returns
Enumeration constant matching the integer value.

◆ swigValue()

final int swigValue ( )

Returns the integer value of the enumeration constant.

Used internally by SWIG generated code.

Returns
Integer value.

◆ toEnum()

static GPUResourceMemoryType toEnum ( int value)
static

Converts an integer value to the matching enumeration constant.

Parameters
valueInteger value to convert to enumeration constant.
Returns
Enumeration constant matching the integer value.

Member Data Documentation

◆ RamOnly

RamOnly =(2)

Data will not be uploaded to GPU and will be sent from RAM whenever needed.


NOTE: This is not always possible, in which case the behavior equals GpuAndRam.