Files
FlaxEngine/Source/Engine/GraphicsDevice/Null/GPUBufferNull.h
2024-02-26 19:00:48 +01:00

41 lines
578 B
C++

// Copyright (c) 2012-2024 Wojciech Figat. All rights reserved.
#pragma once
#if GRAPHICS_API_NULL
#include "Engine/Graphics/GPUBuffer.h"
/// <summary>
/// GPU buffer for Null backend.
/// </summary>
class GPUBufferNull : public GPUBuffer
{
public:
// [GPUBuffer]
GPUBufferView* View() const override
{
return nullptr;
}
void* Map(GPUResourceMapMode mode) override
{
return nullptr;
}
void Unmap() override
{
}
protected:
// [GPUBuffer]
bool OnInit() override
{
return false;
}
};
#endif