Subversion Repository Public Repository

Divide-Framework

This repository has no backups
This repository's network speed is throttled to 100KB/sec

Diff Revisions 930 vs 932 for /trunk/Source Code/Platform/Video/Headers/GenericDrawCommand.inl

Diff revisions: vs.
  @@ -54,52 +54,5 @@
54 54 inline VertexDataInterface* GenericDrawCommand::sourceBuffer() const { return _sourceBuffer; }
55 55 inline const IndirectDrawCommand& GenericDrawCommand::cmd() const { return _cmd; }
56 56
57 - template<typename T>
58 - inline void GenericCommandBuffer::add(const T& command) {
59 - static_assert(std::is_base_of<Command, T>::value,"GenericCommandBuffer error: Unknown command type!");
60 -
61 - _data.emplace_back(std::make_unique<T>(command));
62 - rebuildCaches();
63 - }
64 -
65 - inline void GenericCommandBuffer::add(const GenericCommandBuffer& other) {
66 - _data.insert(std::end(_data),
67 - std::cbegin(other._data),
68 - std::cend(other._data));
69 -
70 - rebuildCaches();
71 - }
72 -
73 - inline vectorImpl<std::shared_ptr<Command>>& GenericCommandBuffer::operator()() {
74 - return _data;
75 - }
76 -
77 - inline const vectorImpl<std::shared_ptr<Command>>& GenericCommandBuffer::operator()() const {
78 - return _data;
79 - }
80 -
81 - inline const vectorImpl<Pipeline*>& GenericCommandBuffer::getPipelines() const {
82 - return _pipelineCache;
83 - }
84 -
85 - inline const vectorImpl<PushConstants*>& GenericCommandBuffer::getPushConstants() const {
86 - return _pushConstantsCache;
87 - }
88 -
89 - inline const vectorImpl<GenericDrawCommand*>& GenericCommandBuffer::getDrawCommands() const {
90 - return _drawCommandsCache;
91 - }
92 -
93 - inline void GenericCommandBuffer::clear() {
94 - _data.clear();
95 - _pipelineCache.clear();
96 - _pushConstantsCache.clear();
97 - _drawCommandsCache.clear();
98 - }
99 -
100 - inline bool GenericCommandBuffer::empty() const {
101 - return _data.empty();
102 - }
103 -
104 57 }; //namespace Divide
105 58 #endif //_GENERIC_DRAW_COMMAND_INL