You're breathtaking!

This commit is contained in:
Wojtek Figat
2020-12-07 23:40:54 +01:00
commit 6fb9eee74c
5143 changed files with 1153594 additions and 0 deletions

View File

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