88#pragma once
99#include " shared/source/command_container/cmdcontainer.h"
1010#include " shared/source/helpers/debug_helpers.h"
11- #include " shared/source/helpers/hw_helper.h"
1211#include " shared/source/helpers/ptr_math.h"
13- #include " shared/source/helpers/string.h"
1412
1513#include < atomic>
1614#include < cstddef>
@@ -22,11 +20,15 @@ class GraphicsAllocation;
2220class LinearStream {
2321 public:
2422 virtual ~LinearStream () = default ;
25- LinearStream ();
23+ LinearStream () = default ;
2624 LinearStream (void *buffer, size_t bufferSize);
27- LinearStream (GraphicsAllocation *buffer );
25+ LinearStream (GraphicsAllocation *gfxAllocation );
2826 LinearStream (GraphicsAllocation *gfxAllocation, void *buffer, size_t bufferSize);
2927 LinearStream (void *buffer, size_t bufferSize, CommandContainer *cmdContainer, size_t batchBufferEndSize);
28+
29+ LinearStream (const LinearStream &) = delete ;
30+ LinearStream &operator =(const LinearStream &) = delete ;
31+
3032 void *getCpuBase () const ;
3133 void *getSpace (size_t size);
3234 size_t getMaxAvailableSpace () const ;
@@ -48,13 +50,13 @@ class LinearStream {
4850 }
4951
5052 protected:
51- std::atomic<size_t > sizeUsed;
52- size_t maxAvailableSpace;
53- void *buffer;
54- GraphicsAllocation *graphicsAllocation;
55- CommandContainer *cmdContainer = nullptr ;
56- size_t batchBufferEndSize = 0 ;
57- uint64_t gpuBase = 0 ;
53+ std::atomic<size_t > sizeUsed{ 0 } ;
54+ size_t maxAvailableSpace{ 0 } ;
55+ void *buffer{ nullptr } ;
56+ GraphicsAllocation *graphicsAllocation{ nullptr } ;
57+ CommandContainer *cmdContainer{ nullptr } ;
58+ size_t batchBufferEndSize{ 0 } ;
59+ uint64_t gpuBase{ 0 } ;
5860};
5961
6062inline void *LinearStream::getCpuBase () const {
0 commit comments