Files
FlaxEngine/Source/Engine/GraphicsDevice/Null/GPUShaderNull.h
2021-01-02 14:28:49 +01:00

37 lines
760 B
C++

// Copyright (c) 2012-2021 Wojciech Figat. All rights reserved.
#pragma once
#if GRAPHICS_API_NULL
#include "Engine/Graphics/Shaders/GPUShader.h"
/// <summary>
/// Shader for Null backend.
/// </summary>
class GPUShaderNull : public GPUShader
{
protected:
// [GPUShader]
GPUShaderProgram* CreateGPUShaderProgram(ShaderStage type, const GPUShaderProgramInitializer& initializer, byte* cacheBytes, uint32 cacheSize, MemoryReadStream& stream) override
{
return nullptr;
}
GPUConstantBuffer* CreateCB(const String& name, uint32 size, MemoryReadStream& stream) override
{
return nullptr;
}
public:
// [GPUShader]
bool Create(MemoryReadStream& stream) override
{
return false;
}
};
#endif