DxilCBuffer.h 1.2 KB

123456789101112131415161718192021222324252627282930313233
  1. ///////////////////////////////////////////////////////////////////////////////
  2. // //
  3. // DxilCBuffer.h //
  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. // Representation of HLSL constant buffer (cbuffer). //
  9. // //
  10. ///////////////////////////////////////////////////////////////////////////////
  11. #pragma once
  12. #include "dxc/DXIL/DxilResourceBase.h"
  13. namespace hlsl {
  14. /// Use this class to represent HLSL cbuffer.
  15. class DxilCBuffer : public DxilResourceBase {
  16. public:
  17. DxilCBuffer();
  18. virtual ~DxilCBuffer();
  19. unsigned GetSize() const;
  20. void SetSize(unsigned InstanceSizeInBytes);
  21. private:
  22. unsigned m_SizeInBytes; // Cbuffer instance size in bytes.
  23. };
  24. } // namespace hlsl