You're breathtaking!
This commit is contained in:
40
Source/Engine/GraphicsDevice/Null/GPUBufferNull.h
Normal file
40
Source/Engine/GraphicsDevice/Null/GPUBufferNull.h
Normal file
@@ -0,0 +1,40 @@
|
||||
// Copyright (c) 2012-2020 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
|
||||
Reference in New Issue
Block a user