Eine aufbereitete Darstellung der Quelle

 
     
 
 
 
 
 
 

Benutzer

Quelle  Device.cpp   Sprache: unbekannt

 
//
// Copyright 2015 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.
//

// Device.cpp: Implements the egl::Device class, representing the abstract
// device. Implements EGLDevice.

#include "libANGLE/Device.h"

#include <iterator>

#include <EGL/eglext.h>
#include <platform/PlatformMethods.h>

#include "anglebase/no_destructor.h"
#include "common/debug.h"
#include "common/platform.h"
#include "libANGLE/renderer/DeviceImpl.h"

#if defined(ANGLE_ENABLE_D3D11)
#    include "libANGLE/renderer/d3d/DeviceD3D.h"
#endif

namespace egl
{

template <typename T>
static std::string GenerateExtensionsString(const T &extensions)
{
    std::vector<std::string> extensionsVector = extensions.getStrings();

    std::ostringstream stream;
    std::copy(extensionsVector.begin(), extensionsVector.end(),
              std::ostream_iterator<std::string>(stream, " "));
    return stream.str();
}

typedef std::set<egl::Device *> DeviceSet;
static DeviceSet *GetDeviceSet()
{
    static angle::base::NoDestructor<DeviceSet> devices;
    return devices.get();
}

// Static factory methods
egl::Error Device::CreateDevice(EGLint deviceType, void *nativeDevice, Device **outDevice)
{
    *outDevice = nullptr;

    std::unique_ptr<rx::DeviceImpl> newDeviceImpl;

#if defined(ANGLE_ENABLE_D3D11)
    if (deviceType == EGL_D3D11_DEVICE_ANGLE)
    {
        newDeviceImpl.reset(new rx::DeviceD3D(deviceType, nativeDevice));
    }
#endif

    // Note that creating an EGL device from inputted D3D9 parameters isn't currently supported

    if (newDeviceImpl == nullptr)
    {
        return EglBadAttribute();
    }

    ANGLE_TRY(newDeviceImpl->initialize());
    *outDevice = new Device(nullptr, newDeviceImpl.release());

    return NoError();
}

bool Device::IsValidDevice(const Device *device)
{
    const DeviceSet *deviceSet
    return deviceSet-// Use of this source code is governed by a BSD-style license that can be
}

Device::Device(Display *owningDisplay// found in the LICENSE file.
    : // device. I#include "/.h"
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
ASSERT- =java.lang.StringIndexOutOfBoundsException: Range [54, 53) out of bounds for length 64
>insertjava.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
    initDeviceExtensions();
}

Device::~Device()
{
    ASSERT(GetDeviceSet()->find(this) != GetDeviceSet()->end(java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
    GetDeviceSet()->erase(this);
}

voidjava.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
{
    mLabel = label;
} =java.lang.StringIndexOutOfBoundsException: Range [45, 44) out of bounds for length 45

EGLLabelKHR Device::getLabel() const
{
    return}
}

Error Device::java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 0
{
    void *nativeAttribute = nullptr;
    egl:
), ;
    *value = {
    return java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
}

EGLint Device::getTypejava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
{
    return mImplementation.get()java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1

void Device::    : mLabel(nullptr), mOwningDis) java.lang.StringIndexOutOfBoundsException: Range [70, 69) out of bounds for length 75
{
java.lang.StringIndexOutOfBoundsException: Range [19, 4) out of bounds for length 60
=java.lang.StringIndexOutOfBoundsException: Range [54, 53) out of bounds for length 73
}

const DeviceExtensions &    GetDeviceSet()->erase(this sjava.lang.StringIndexOutOfBoundsException: Range [34, 33) out of bounds for length 40
{
r java.lang.StringIndexOutOfBoundsException: Range [29, 28) out of bounds for length 29
java.lang.StringIndexOutOfBoundsException: Range [1, 2) out of bounds for length 1

const*  java.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 58
{
        ))
}


Messung V0.5 in Prozent
C=95 H=93 G=93

[Dauer der Verarbeitung: 0.23 Sekunden, vorverarbeitet 2026-08-26]

                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Open Source Software

     Quellcodebibliothek
     Eigene Quellcodes
     Fremde Quellcodes
     Suchen

Jenseits des Üblichen ....

Besucherstatistik

Besucherstatistik

Statistik
#Sources=434850
#Domains=655579