DxilCBuffer.cpp 1.2 KB

1234567891011121314151617181920212223242526272829303132
  1. ///////////////////////////////////////////////////////////////////////////////
  2. // //
  3. // DxilCBuffer.cpp //
  4. // Copyright (C) Microsoft Corporation. All rights reserved. //
  5. // This file is distributed under the University of Illinois Open Source //
  6. // License. See LICENSE.TXT for details. //
  7. // //
  8. ///////////////////////////////////////////////////////////////////////////////
  9. #include "dxc/DXIL/DxilCBuffer.h"
  10. #include "dxc/Support/Global.h"
  11. namespace hlsl {
  12. //------------------------------------------------------------------------------
  13. //
  14. // DxilCBuffer methods.
  15. //
  16. DxilCBuffer::DxilCBuffer()
  17. : DxilResourceBase(DxilResourceBase::Class::CBuffer)
  18. , m_SizeInBytes(0) {
  19. SetKind(DxilResourceBase::Kind::CBuffer);
  20. }
  21. DxilCBuffer::~DxilCBuffer() {}
  22. unsigned DxilCBuffer::GetSize() const { return m_SizeInBytes; }
  23. void DxilCBuffer::SetSize(unsigned InstanceSizeInBytes) { m_SizeInBytes = InstanceSizeInBytes; }
  24. } // namespace hlsl