The ArrayResource stores a data array of a given type. The data is immutable. The resource can be used as input for a ramses::GeometryBinding.
More...
#include <ArrayResource.h>
|
class ArrayResourceImpl & | impl |
|
class ResourceImpl & | impl |
|
class SceneObjectImpl & | impl |
|
class ClientObjectImpl & | impl |
|
class RamsesObjectImpl & | impl |
|
class StatusObjectImpl & | impl |
|
The ArrayResource stores a data array of a given type. The data is immutable. The resource can be used as input for a ramses::GeometryBinding.
If an ArrayResource object is created with type ramses::EDataType::ByteBlob then an element is defined as one byte, rather than a logical vertex element. Hence, number of elements is the same as size in bytes.
- Examples
- ramses-example-basic-animation-realtime/src/main.cpp, ramses-example-basic-animation/src/main.cpp, ramses-example-basic-blending/src/main.cpp, ramses-example-basic-compositing/src/main.cpp, ramses-example-basic-effect-from-glsl/src/main.cpp, ramses-example-basic-file-loading/src/main.cpp, ramses-example-basic-geometry/src/main.cpp, ramses-example-basic-rendergroups/src/main.cpp, ramses-example-basic-renderpasses/src/main.cpp, ramses-example-basic-rendertarget/src/main.cpp, ramses-example-basic-scenegraph/src/main.cpp, ramses-example-basic-texturing/src/main.cpp, ramses-example-data-buffers-texture/src/main.cpp, ramses-example-dcsm-provider/src/main.cpp, ramses-example-geometry-instancing/src/main.cpp, ramses-example-local-client-dcsm/src/main.cpp, ramses-example-local-client/src/main.cpp, ramses-example-local-datalink/src/main.cpp, ramses-example-local-displays/src/main.cpp, ramses-example-local-dma-offscreenbuffer/src/main.cpp, ramses-example-local-geometry-shaders/src/main.cpp, ramses-example-local-offscreenbuffer/src/main.cpp, ramses-example-local-pick-handling/src/main.cpp, ramses-example-local-scene-referencing/src/main.cpp, ramses-example-local-viewport-link/src/main.cpp, and ramses-example-renderonce/src/main.cpp.
◆ ArrayResource() [1/2]
ramses::ArrayResource::ArrayResource |
( |
ArrayResourceImpl & |
pimpl | ) |
|
|
explicitprotected |
Constructor of ArrayResource.
- Parameters
-
[in] | pimpl | Internal data for implementation specifics of ArrayResource (sink - instance becomes owner) |
◆ ArrayResource() [2/2]
ramses::ArrayResource::ArrayResource |
( |
const ArrayResource & |
other | ) |
|
|
protected |
◆ ~ArrayResource()
virtual ramses::ArrayResource::~ArrayResource |
( |
| ) |
|
|
protectedvirtual |
◆ getDataType()
EDataType ramses::ArrayResource::getDataType |
( |
| ) |
const |
Returns the data type of the data array.
◆ getNumberOfElements()
uint32_t ramses::ArrayResource::getNumberOfElements |
( |
| ) |
const |
Returns number of elements of the array.
◆ operator=()
Assignment operator of ArrayResource.
- Parameters
-
- Returns
- This instance after assignment
◆ SceneImpl
◆ impl
class ArrayResourceImpl& ramses::ArrayResource::impl |
Stores internal data for implementation specifics of ArrayResource.
The documentation for this class was generated from the following file:
- /home/runner/work/ramses/ramses/client/ramses-client/ramses-client-api/include/ramses-client-api/ArrayResource.h