BsGLGpuBuffer.cpp 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. #include "BsGLGpuBuffer.h"
  2. #include "BsDebug.h"
  3. namespace BansheeEngine
  4. {
  5. GLGpuBuffer::GLGpuBuffer(UINT32 elementCount, UINT32 elementSize, GpuBufferType type, GpuBufferUsage usage, bool randomGpuWrite, bool useCounter)
  6. : GpuBuffer(elementCount, elementSize, type, usage, randomGpuWrite, useCounter)
  7. {
  8. }
  9. GLGpuBuffer::~GLGpuBuffer()
  10. {
  11. }
  12. void GLGpuBuffer::initialize_internal()
  13. {
  14. LOGWRN("Generic buffers are not supported in OpenGL. Creating a dummy buffer. All operations on it will either be no-op or return a nullptr.");
  15. GpuBuffer::initialize_internal();
  16. }
  17. void* GLGpuBuffer::lock(UINT32 offset, UINT32 length, GpuLockOptions options)
  18. {
  19. return nullptr;
  20. }
  21. void GLGpuBuffer::unlock()
  22. {
  23. }
  24. void GLGpuBuffer::readData(UINT32 offset, UINT32 length, void* pDest)
  25. {
  26. }
  27. void GLGpuBuffer::writeData(UINT32 offset, UINT32 length, const void* pSource, BufferWriteType writeFlags)
  28. {
  29. }
  30. void GLGpuBuffer::copyData(GpuBuffer& srcBuffer, UINT32 srcOffset,
  31. UINT32 dstOffset, UINT32 length, bool discardWholeBuffer)
  32. {
  33. }
  34. GpuBufferView* GLGpuBuffer::createView()
  35. {
  36. return nullptr;
  37. }
  38. void GLGpuBuffer::destroyView(GpuBufferView* view)
  39. {
  40. }
  41. }