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

32 lines
623 B
C++

// Copyright (c) 2012-2024 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;
}
public:
// [GPUShader]
bool Create(MemoryReadStream& stream) override
{
return false;
}
};
#endif