AGX Dynamics
2.38.0.2
Channel.h
Go to the documentation of this file.
1
/*
2
Copyright 2007-2024. Algoryx Simulation AB.
3
4
All AGX source code, intellectual property, documentation, sample code,
5
tutorials, scene files and technical white papers, are copyrighted, proprietary
6
and confidential material of Algoryx Simulation AB. You may not download, read,
7
store, distribute, publish, copy or otherwise disseminate, use or expose this
8
material unless having a written signed agreement with Algoryx Simulation AB, or having been
9
advised so by Algoryx Simulation AB for a time limited evaluation, or having purchased a
10
valid commercial license from Algoryx Simulation AB.
11
12
Algoryx Simulation AB disclaims all responsibilities for loss or damage caused
13
from using this software, unless otherwise stated in written agreements with
14
Algoryx Simulation AB.
15
*/
16
17
#ifndef AGXDATA_CHANNEL_H
18
#define AGXDATA_CHANNEL_H
19
20
#include <
agx/agxCore_export.h
>
21
#include <
agx/Device.h
>
22
23
namespace
agxData
24
{
25
class
Buffer;
26
32
class
AGXCORE_EXPORT
Channel
33
{
34
public
:
35
39
Channel
();
40
46
Channel
(
Buffer
*target,
Buffer
*source);
47
49
~
Channel
();
50
51
52
void
connect(
Buffer
*target,
Buffer
*source);
53
62
agx::SyncTag *transfer(
size_t
targetOffset,
size_t
sourceOffset,
size_t
numElements,
bool
blocking);
63
68
void
postTransfer();
69
70
74
void
flip();
75
79
Buffer
*getTargetBuffer();
80
84
Buffer
*getSourceBuffer();
85
86
private
:
87
bool
m_active;
88
Buffer
*m_target;
89
Buffer
*m_source;
90
void
*m_transformBuffer;
91
size_t
m_transformBufferSize;
92
size_t
m_currentTransferSize;
93
size_t
m_targetOffset;
94
};
95
96
/* Implementation */
97
AGX_FORCE_INLINE
Buffer
*
Channel::getTargetBuffer
() {
return
m_target; }
98
AGX_FORCE_INLINE
Buffer
*
Channel::getSourceBuffer
() {
return
m_source; }
99
100
}
101
102
103
#endif
/* _AGXDATA_CHANNEL_H_ */
AGXCORE_EXPORT
#define AGXCORE_EXPORT
Device.h
agxData::Channel
A channel is a directional data transfer connection between two buffers.
Definition:
Channel.h:32
agxData
Contains classes for low level data storage for AGX.
Definition:
Container.h:23
agxData::Channel::getSourceBuffer
Buffer * getSourceBuffer()
Definition:
Channel.h:98
agxData::Buffer
Abstract representation of a data buffer.
Definition:
Buffer.h:55
agxCore_export.h
agxData::Channel::getTargetBuffer
Buffer * getTargetBuffer()
Definition:
Channel.h:97
AGX_FORCE_INLINE
#define AGX_FORCE_INLINE
Definition:
macros.h:58
include
agxData
Channel.h
Generated on Sun Sep 1 2024 11:18:28 for AGX Dynamics by
1.8.17