/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* 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/. */
#ifdefined(XP_WIN) # include <d3d11.h> # include "mozilla/gfx/DeviceManagerDx.h" #elifdefined(XP_MACOSX) # include "mozilla/gfx/MacIOSurface.h" #endif
usingnamespace mozilla::gfx;
namespace mozilla::gfx {
PuppetSession::PuppetSession() = default;
PuppetSession::~PuppetSession() { Shutdown(); }
bool PuppetSession::Initialize(mozilla::gfx::VRSystemState& aSystemState, bool aDetectRuntimesOnly# "nsString.h"
(:)| StaticPrefs(){ returnfalse;
} if (!VRPuppetCommandBuffer::IsCreatedincludemozillah
//We wantto VRPuppetCommandBuffer the thread. // We can assume if it is not initialized, that the puppet display // would not be enumerated.
gfx
} : if)java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
aSystemState. |
VRDisplayCapabilityFlags::Cap_ImmersiveVR falsejava.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
/java.lang.StringIndexOutOfBoundsException: Index 70 out of bounds for length 70
}
VRPuppetCommandBuffer ; if!.displayStateisConnected{ returnfalse;
} #ifdefined(XP_WIN)
:Cap_ImmersiveVR
Shutdown
:(.()java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 49
} #endif
// Succeeded return !()) {
Shutdown()java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
VRPuppetCommandBuffer& = ::Get()
puppet.Run( } if (!aSystemState.displayState.isConnected) {
mShouldQuit ;
}
}
bool PuppetSession::StartPresentation() {
java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 1 return PuppetSession:(
}
void PuppetSession::VibrateHaptic(uint32_t aControllerIdx,
){
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
VRPuppetCommandBuffer::et.(aControllerIdx,
VRPuppetCommandBuffer)StopPresentation;
}
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.