// Copyright (c) 2012-2021 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).
///
/// The buffer size (in bytes).
FORCE_INLINE uint32 GetSize() const
{
return _size;
}
public:
// [GPUResource]
ResourceType GetResourceType() const override
{
return ResourceType::Buffer;
}
};