BsD3D9GpuBuffer.cpp 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. //__________________________ Banshee Project - A modern game development toolkit _________________________________//
  2. //_____________________________________ www.banshee-project.com __________________________________________________//
  3. //________________________ Copyright (c) 2014 Marko Pintera. All rights reserved. ________________________________//
  4. #include "BsD3D9GpuBuffer.h"
  5. #include "BsDebug.h"
  6. namespace BansheeEngine
  7. {
  8. D3D9GpuBuffer::D3D9GpuBuffer(UINT32 elementCount, UINT32 elementSize, GpuBufferType type, GpuBufferUsage usage, bool randomGpuWrite, bool useCounter)
  9. : GpuBuffer(elementCount, elementSize, type, usage, randomGpuWrite, useCounter)
  10. {
  11. }
  12. D3D9GpuBuffer::~D3D9GpuBuffer()
  13. { }
  14. void D3D9GpuBuffer::initialize_internal()
  15. {
  16. LOGWRN("Generic buffers are not supported in DirectX 9. Creating a dummy buffer. All operations on it will either be no-op or return a nullptr.");
  17. GpuBuffer::initialize_internal();
  18. }
  19. void* D3D9GpuBuffer::lock(UINT32 offset, UINT32 length, GpuLockOptions options)
  20. {
  21. return nullptr;
  22. }
  23. void D3D9GpuBuffer::unlock()
  24. {
  25. }
  26. void D3D9GpuBuffer::readData(UINT32 offset, UINT32 length, void* pDest)
  27. {
  28. }
  29. void D3D9GpuBuffer::writeData(UINT32 offset, UINT32 length, const void* pSource, BufferWriteType writeFlags)
  30. {
  31. }
  32. void D3D9GpuBuffer::copyData(GpuBuffer& srcBuffer, UINT32 srcOffset,
  33. UINT32 dstOffset, UINT32 length, bool discardWholeBuffer)
  34. {
  35. }
  36. GpuBufferView* D3D9GpuBuffer::createView()
  37. {
  38. return nullptr;
  39. }
  40. void D3D9GpuBuffer::destroyView(GpuBufferView* view)
  41. {
  42. }
  43. }