Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/dom/canvas/   (Browser von der Mozilla Stiftung Version 136.0.1©)  Datei vom 10.2.2025 mit Größe 1 kB image not shown  

Quelle  WebGLRenderbuffer.h   Sprache: C

 
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */


#ifndef WEBGL_RENDERBUFFER_H_
#define WEBGL_RENDERBUFFER_H_

#include "CacheInvalidator.h"
#include "WebGLObjectModel.h"
#include "WebGLStrongTypes.h"
#include "WebGLTexture.h"

namespace mozilla {
namespace webgl {
struct FormatUsageInfo;
}

class WebGLRenderbuffer final : public WebGLContextBoundObject,
                                public WebGLRectangleObject,
                                public CacheInvalidator {
  friend class WebGLFramebuffer;
  friend class WebGLFBAttachPoint;

  MOZ_DECLARE_REFCOUNTED_VIRTUAL_TYPENAME(WebGLRenderbuffer, override)

 public:
  const GLuint mPrimaryRB;

 protected:
  const bool mEmulatePackedDepthStencil;
  GLuint mSecondaryRB;
  webgl::ImageInfo mImageInfo;

 public:
  explicit WebGLRenderbuffer(WebGLContext* webgl);

  const auto& ImageInfo() const { return mImageInfo; }

  void RenderbufferStorage(uint32_t samples, GLenum internalFormat,
                           uint32_t width, uint32_t height);
  // Only handles a subset of `pname`s.
  GLint GetRenderbufferParameter(RBParam pname) const;

  auto MemoryUsage() const { return mImageInfo.MemoryUsage(); }

 protected:
  ~WebGLRenderbuffer() override;

  void DoFramebufferRenderbuffer(GLenum attachment) const;
  GLenum DoRenderbufferStorage(uint32_t samples,
                               const webgl::FormatUsageInfo* format,
                               uint32_t width, uint32_t height);
};

}  // namespace mozilla

#endif  // WEBGL_RENDERBUFFER_H_

Messung V0.5
C=93 H=98 G=95

¤ Dauer der Verarbeitung: 0.2 Sekunden  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.