BsD3D9GpuBuffer.cpp 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. #include "BsD3D9GpuBuffer.h"
  2. #include "BsDebug.h"
  3. namespace BansheeEngine
  4. {
  5. D3D9GpuBuffer::D3D9GpuBuffer(UINT32 elementCount, UINT32 elementSize, GpuBufferType type, GpuBufferUsage usage, bool randomGpuWrite, bool useCounter)
  6. : GpuBuffer(elementCount, elementSize, type, usage, randomGpuWrite, useCounter)
  7. {
  8. }
  9. D3D9GpuBuffer::~D3D9GpuBuffer()
  10. { }
  11. void D3D9GpuBuffer::initialize_internal()
  12. {
  13. 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.");
  14. GpuBuffer::initialize_internal();
  15. }
  16. void* D3D9GpuBuffer::lock(UINT32 offset, UINT32 length, GpuLockOptions options)
  17. {
  18. return nullptr;
  19. }
  20. void D3D9GpuBuffer::unlock()
  21. {
  22. }
  23. void D3D9GpuBuffer::readData(UINT32 offset, UINT32 length, void* pDest)
  24. {
  25. }
  26. void D3D9GpuBuffer::writeData(UINT32 offset, UINT32 length, const void* pSource, BufferWriteType writeFlags)
  27. {
  28. }
  29. void D3D9GpuBuffer::copyData(GpuBuffer& srcBuffer, UINT32 srcOffset,
  30. UINT32 dstOffset, UINT32 length, bool discardWholeBuffer)
  31. {
  32. }
  33. GpuBufferView* D3D9GpuBuffer::createView()
  34. {
  35. return nullptr;
  36. }
  37. void D3D9GpuBuffer::destroyView(GpuBufferView* view)
  38. {
  39. }
  40. }