| 1234567891011121314151617181920212223242526272829303132333435363738394041 |
- // Copyright (C) 2009-2021, Panagiotis Christopoulos Charitos and contributors.
- // All rights reserved.
- // Code licensed under the BSD License.
- // http://www.anki3d.org/LICENSE
- #pragma once
- #include <AnKi/Gr/Shader.h>
- #include <AnKi/Gr/gl/GlObject.h>
- namespace anki {
- // Forward
- class CString;
- /// @addtogroup opengl
- /// @{
- /// Shader program implementation.
- class ShaderImpl final : public Shader, public GlObject
- {
- public:
- GLenum m_glType = 0;
- ShaderImpl(GrManager* manager, CString name)
- : Shader(manager, name)
- {
- }
- ~ShaderImpl();
- void preInit(const ShaderInitInfo& init)
- {
- m_shaderType = init.m_shaderType;
- }
- ANKI_USE_RESULT Error init(CString source, ConstWeakArray<ShaderSpecializationConstValue> constValues);
- };
- /// @}
- } // end namespace anki
|