 |
AGXDynamics
2.35.0.2
|
Go to the documentation of this file.
20 #include <agx/config/AGX_USE_OPENGL.h>
21 #include <agx/config/AGX_USE_OPENCL.h>
32 # pragma warning(push)
33 # pragma warning( disable : 4275 ) // warning C4275: non dll-interface class
34 # pragma warning( disable : 4702) // warning C4702: unreachable code
62 static Device *load(TiXmlElement *eDevice,
Device *device);
111 ByteOrder getByteOrder()
const;
141 virtual agx::SyncTag *sendData(
const void *hostBuffer,
agxData::Buffer *Buffer,
size_t offset,
size_t size,
bool blocking) = 0;
152 virtual agx::SyncTag *receiveData(
void *hostBuffer,
agxData::Buffer *Buffer,
size_t offset,
size_t size,
bool blocking) = 0;
157 void setByteOrder(ByteOrder byteOrder);
159 virtual void destroyCallback(
agx::Object*
object)
override;
165 ByteOrder m_byteOrder;
167 TypeFormatTable m_typeFormatTable;
185 virtual Status
wait()
override {
return SYNC_TAG_COMPLETED; }
186 virtual Status
getStatus()
override {
return SYNC_TAG_COMPLETED; }
195 virtual agx::SyncTag* sendData(
196 const void *hostBuffer,
agxData::Buffer* buffer,
size_t offset,
size_t size,
bool blocking)
override;
198 virtual agx::SyncTag* receiveData(
199 void *hostBuffer,
agxData::Buffer* buffer,
size_t offset,
size_t size,
bool blocking)
override;
202 void enqueue(
Task *task);
205 void wait(
bool passive =
false);
214 SyncTagRef m_dummyTag;
231 void setPrimaryDevice(
Device *device);
232 Device *getPrimaryDevice();
256 DeviceTable m_deviceTable;
271 # pragma warning(pop)
virtual agx::SyncTag * sendData(const void *, agxData::Buffer *, size_t, size_t, bool) override
Send data to a buffer on the device.
const agx::String & getTypeName() const
AGXCORE_EXPORT Type * getType(const agx::String &name)
ByteOrder
Device dependent byte order, AGX prefix to avoid clash with macro definitions.
A device group contain other devices, enables hierarchical device structuring.
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
A model is an abstract representation of the class of an agx::Object.
ByteOrder getByteOrder() const
A representation of a generic task.
Representation of the CPU.
agxData::Buffer * createBuffer(agxData::Type *type)
Inheritance with partial specialization due to bug with ref_ptr containers.
Abstract representation of a data buffer.
Representation of a name string.
agx::Object is a refcounted object with a name.
virtual agx::SyncTag * receiveData(void *, agxData::Buffer *, size_t, size_t, bool) override
Receive data from a buffer on the device.
A component is an object containing other objects, enabling hierarchical structuring.
#define AGX_DECLARE_POINTER_TYPES(type)
agx::HashTable< Attribute *, BufferRef > BufferTable
An agx::Device is an abstract representation of a device on which data can be stored and processed.
virtual Status wait() override
Type
Explicit list of device types.
virtual agxData::Buffer * createBuffer(agxData::Format *) override
virtual Status getStatus() override