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);
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;
159 virtual void destroyCallback(
agx::Object*
object)
override;
167 TypeFormatTable m_typeFormatTable;
170 BufferTable m_bufferTable;
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)
AGXCORE_EXPORT Type * getType(const agx::String &name)
A component is an object containing other objects, enabling hierarchical structuring.
A model is an abstract representation of the class of an agx::Object.
virtual Status getStatus() override
ByteOrder
Device dependent byte order, AGX prefix to avoid clash with macro definitions.
const agx::String & getTypeName() const
ByteOrder getByteOrder() const
#define AGX_DECLARE_POINTER_TYPES(type)
A representation of a generic task.
Representation of a name string.
virtual Status wait() override
A device group contain other devices, enables hierarchical device structuring.
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
Abstract representation of a data buffer.
virtual agx::SyncTag * sendData(const void *, agxData::Buffer *, size_t, size_t, bool) override
Send data to a buffer on the device.
agxData::Buffer * createBuffer(agxData::Type *type)
agx::HashTable< Attribute *, BufferRef > BufferTable
virtual agx::SyncTag * receiveData(void *, agxData::Buffer *, size_t, size_t, bool) override
Receive data from a buffer on the device.
virtual agxData::Buffer * createBuffer(agxData::Format *) override
Type
Explicit list of device types.
Inheritance with partial specialization due to bug with ref_ptr containers.
An agx::Device is an abstract representation of a device on which data can be stored and processed...
Representation of the CPU.
agx::Object is a refcounted object with a name.