Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/gfx/angle/checkout/src/libANGLE/renderer/d3d/   (Browser von der Mozilla Stiftung Version 136.0.1©)  Datei vom 10.2.2025 mit Größe 3 kB image not shown  

Quelle  ImageD3D.h   Sprache: C

 
//
// Copyright 2002 The ANGLE Project Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//

// ImageD3D.h: Defines the rx::ImageD3D class, an abstract base class for the
// renderer-specific classes which will define the interface to the underlying
// surfaces or resources.

#ifndef LIBANGLE_RENDERER_D3D_IMAGED3D_H_
#define LIBANGLE_RENDERER_D3D_IMAGED3D_H_

#include "common/debug.h"

#include "common/PackedEnums.h"
#include "libANGLE/Error.h"
#include "libANGLE/angletypes.h"

namespace gl
{
class Context;
class Framebuffer;
class ImageIndex;
struct PixelUnpackState;
}  // namespace gl

namespace rx
{
class TextureStorage;
class RendererD3D;
class RenderTargetD3D;

class ImageD3D : angle::NonCopyable
{
  public:
    ImageD3D();
    virtual ~ImageD3D() {}

    GLsizei getWidth() const { return mWidth; }
    GLsizei getHeight() const { return mHeight; }
    GLsizei getDepth() const { return mDepth; }
    GLenum getInternalFormat() const { return mInternalFormat; }
    gl::TextureType getType() const { return mType; }
    bool isRenderableFormat() const { return mRenderable; }

    void markDirty() { mDirty = true; }
    void markClean() { mDirty = false; }
    virtual bool isDirty() const = 0;

    virtual bool redefine(gl::TextureType type,
                          GLenum internalformat,
                          const gl::Extents &size,
                          bool forceRelease) = 0;

    virtual angle::Result loadData(const gl::Context *context,
                                   const gl::Box &area,
                                   const gl::PixelUnpackState &unpack,
                                   GLenum type,
                                   const void *input,
                                   bool applySkipImages)        = 0;
    virtual angle::Result loadCompressedData(const gl::Context *context,
                                             const gl::Box &area,
                                             const void *input) = 0;

    virtual angle::Result setManagedSurface2D(const gl::Context *context,
                                              TextureStorage *storage,
                                              int level);
    virtual angle::Result setManagedSurfaceCube(const gl::Context *context,
                                                TextureStorage *storage,
                                                int face,
                                                int level);
    virtual angle::Result setManagedSurface3D(const gl::Context *context,
                                              TextureStorage *storage,
                                              int level);
    virtual angle::Result setManagedSurface2DArray(const gl::Context *context,
                                                   TextureStorage *storage,
                                                   int layer,
                                                   int level);
    virtual angle::Result copyToStorage(const gl::Context *context,
                                        TextureStorage *storage,
                                        const gl::ImageIndex &index,
                                        const gl::Box ®ion) = 0;

    virtual angle::Result copyFromTexStorage(const gl::Context *context,
                                             const gl::ImageIndex &imageIndex,
                                             TextureStorage *source)         = 0;
    virtual angle::Result copyFromFramebuffer(const gl::Context *context,
                                              const gl::Offset &destOffset,
                                              const gl::Rectangle &sourceArea,
                                              const gl::Framebuffer *source) = 0;

  protected:
    GLsizei mWidth;
    GLsizei mHeight;
    GLsizei mDepth;
    GLenum mInternalFormat;
    bool mRenderable;
    gl::TextureType mType;

    bool mDirty;
};
}  // namespace rx

#endif  // LIBANGLE_RENDERER_D3D_IMAGED3D_H_

Messung V0.5
C=90 H=100 G=95

¤ Dauer der Verarbeitung: 0.3 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.