Eine aufbereitete Darstellung der Quelle

 
     
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 

Benutzer

Quelle  MtlMemoryAllocator.h   Sprache: C

 

/*
 * Copyright 2022 Google LLC
 *
 * 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 in Prozent
C=95 H=99 G=96

¤ Dauer der Verarbeitung: 0.2 Sekunden  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

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.






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Open Source Software

     Quellcodebibliothek
     Eigene Quellcodes
     Fremde Quellcodes
     Suchen

Jenseits des Üblichen ....
    

Besucherstatistik

Besucherstatistik

Statistik
#Sources=1127926
#Domains=2039723