1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 02:57:44 +00:00

LibGL: Implement glCreateShader and glDeleteShader

This commit is contained in:
Stephan Unverwerth 2022-08-28 10:51:37 +02:00 committed by Andrew Kaster
parent b975569a40
commit a0adbfbf81
3 changed files with 31 additions and 5 deletions

View file

@ -17,6 +17,8 @@
#include <AK/Vector.h>
#include <LibGL/Buffer/Buffer.h>
#include <LibGL/NameAllocator.h>
#include <LibGL/Shaders/Program.h>
#include <LibGL/Shaders/Shader.h>
#include <LibGL/Tex/Texture.h>
#include <LibGL/Tex/TextureUnit.h>
#include <LibGPU/Device.h>
@ -408,6 +410,11 @@ private:
bool m_sampler_config_is_dirty { true };
bool m_light_state_is_dirty { true };
NameAllocator m_shader_name_allocator;
NameAllocator m_program_name_allocator;
HashMap<GLuint, RefPtr<Shader>> m_allocated_shaders;
HashMap<GLuint, RefPtr<Program>> m_allocated_programs;
struct Listing {
template<typename F>