// Copyright (c) 2012-2023 Wojciech Figat. All rights reserved. #pragma once #include "Engine/Graphics/GPUResource.h" /// /// Constant Buffer object used to pass parameters to the shaders on GPU. /// class FLAXENGINE_API GPUConstantBuffer : public GPUResource { protected: uint32 _size = 0; public: /// /// Gets the buffer size (in bytes). /// FORCE_INLINE uint32 GetSize() const { return _size; } public: // [GPUResource] GPUResourceType GetResourceType() const override { return GPUResourceType::Buffer; } };