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