30 lines
595 B
C++
30 lines
595 B
C++
// Copyright (c) 2012-2023 Wojciech Figat. All rights reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "ShaderFunctionReader.h"
|
|
|
|
#if COMPILE_WITH_SHADER_COMPILER
|
|
|
|
namespace ShaderProcessing
|
|
{
|
|
/// <summary>
|
|
/// Compute Shaders reader
|
|
/// </summary>
|
|
class ComputeShaderFunctionReader : public ShaderFunctionReader<ComputeShaderMeta>
|
|
{
|
|
DECLARE_SHADER_META_READER_HEADER("META_CS", CS);
|
|
|
|
ComputeShaderFunctionReader()
|
|
{
|
|
_childReaders.Add(New<StripLineReader>("numthreads"));
|
|
}
|
|
|
|
~ComputeShaderFunctionReader()
|
|
{
|
|
}
|
|
};
|
|
}
|
|
|
|
#endif
|