# Conflicts: # Content/Shaders/GI/DDGI.flax # Content/Shaders/GI/GlobalSurfaceAtlas.flax # Content/Shaders/TAA.flax # Content/Shaders/VolumetricFog.flax # Source/Editor/CustomEditors/Editors/ActorTagEditor.cs # Source/Engine/Core/Config/GraphicsSettings.cpp # Source/Engine/Engine/PostProcessEffect.cs # Source/Engine/Graphics/GPUResourcesCollection.cpp # Source/Engine/Graphics/GPUResourcesCollection.h # Source/Engine/Graphics/PostProcessBase.h # Source/FlaxEngine.Gen.cs
32 lines
623 B
C++
32 lines
623 B
C++
// Copyright (c) 2012-2023 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
|