/* * Copyright (c) 2024, Jelle Raaijmakers * Copyright (c) 2024, Aliaksandr Kalenik * Copyright (c) 2024, Luke Wilde * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include #include namespace Web::WebGL { class WebGLShader final : public WebGLObject { WEB_PLATFORM_OBJECT(WebGLShader, WebGLObject); GC_DECLARE_ALLOCATOR(WebGLShader); public: static GC::Ref create(JS::Realm& realm, WebGLRenderingContextBase&, GLuint handle); virtual ~WebGLShader(); protected: explicit WebGLShader(JS::Realm&, WebGLRenderingContextBase&, GLuint handle); virtual void initialize(JS::Realm&) override; }; }