Quellcodebibliothek Statistik Leitseite products/sources/formale Sprachen/C/Firefox/gfx/skia/skia/include/gpu/mtl/   (Browser von der Mozilla Stiftung Version 136.0.1©)  Datei vom 10.2.2025 mit Größe 991 B image not shown  

Quelle  MtlMemoryAllocator.h   Sprache: C

 
/*
 * Copyright 2022 Google Inc.
 *
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */


#ifndef skgpu_MtlMemoryAllocator_DEFINED
#define skgpu_MtlMemoryAllocator_DEFINED

#include "include/core/SkRefCnt.h"

#ifdef __APPLE__

#ifdef __OBJC__
#import <Metal/Metal.h>
#endif

namespace skgpu {

// interface classes for the GPU memory allocator
class MtlAlloc : public SkRefCnt {
public:
    ~MtlAlloc() override = default;
};

#ifdef __OBJC__
class MtlMemoryAllocator : public SkRefCnt {
public:
    virtual id<MTLBuffer> newBufferWithLength(NSUInteger length, MTLResourceOptions options,
                                              sk_sp<MtlAlloc>* allocation) = 0;
    virtual id<MTLTexture> newTextureWithDescriptor(MTLTextureDescriptor* texDesc,
                                                    sk_sp<MtlAlloc>* allocation) = 0;
};
#endif

}  // namespace skgpu

#endif // __APPLE__

#endif // skgpu_MtlMemoryAllocator_DEFINED

Messung V0.5
C=97 H=96 G=96

¤ Dauer der Verarbeitung: 0.13 Sekunden  (vorverarbeitet)  ¤

*© 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.