The basics of using OpenGL to develop modern graphics applications
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef mozilla_dom_Profiler_h | |
#define mozilla_dom_Profiler_h | |
namespace mozilla { | |
namespace dom { | |
class MyProfiler final { | |
public: | |
MyProfiler() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From dda423806caf3e4811fceda5a81a6827bc34d5e0 Mon Sep 17 00:00:00 2001 | |
From: Daosheng Mu <daoshengmu@gmail.com> | |
Date: Mon, 4 Feb 2019 14:05:26 -0800 | |
Subject: [PATCH] Add profilers to WebGL texImage2D | |
--- | |
dom/canvas/MyProfiler.h | 62 +++++++++++++++++++++++++++++ | |
dom/canvas/TexUnpackBlob.cpp | 55 +++++++++++++++++++++++-- | |
dom/canvas/WebGLContextTextures.cpp | 10 +++++ | |
3 files changed, 123 insertions(+), 4 deletions(-) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interface XRControllerBinding { | |
readonly attribue DOMString binding; | |
readonly attribue DOMString[] actions; | |
readonly attribue DOMString valueType; // "boolean, double, Float32Array" | |
} | |
partial interface XRInputSource { | |
readonly attribue DOMString id; | |
readonly attribue sequence<XRControllerBinding> bindings; |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var vrTestService = navigatior.requestVRTestService(); | |
var leftVREyeParameters = new VREyeParameters{ offset: [0,0,0], | |
fieldOfView: {upDegrees: 90, rightDegrees: 90, | |
downDegrees: 90, leftDegrees: 90}, | |
renderWidth: 1024, renderHeight: 1024 }; | |
var rightVREyeParameters = new VREyeParameters{ offset: [0,0,0], | |
fieldOfView: {upDegrees: 90, rightDegrees: 90, | |
downDegrees: 90, leftDegrees: 90}, | |
renderWidth: 1024, renderHeight: 1024 }; | |
var vrFrameData = new |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//var ext = gl.getExtension('WEBGL_debug_shaders'); | |
// var element = document.getElementById('fshader_texsize_3d'); | |
// var shader = wtu.loadShaderFromScript(gl, 'fshader_texsize_3d', gl.FRAGMENT_SHADER, undefined, undefined); | |
// //gl.shaderSource(shader, shaderScript); | |
// gl.compileShader(shader); | |
// var src = ext.getTranslatedShaderSource(shader); | |
// console.log(src); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/gfx/vr/VRManager.cpp b/gfx/vr/VRManager.cpp | |
index 7e22b07..de308d1 100644 | |
--- a/gfx/vr/VRManager.cpp | |
+++ b/gfx/vr/VRManager.cpp | |
@@ -359,10 +359,6 @@ VRManager::RefreshVRControllers() | |
controller); | |
} | |
} | |
- | |
- for (uint32_t i = 0; i < mControllerManagers.Length(); ++i) { |
https://www.peterbe.com/plog/highlighted-code-syntax-in-keynote
c:\user\user_name.ssh\
https://github.com/servo/servo/tree/master/tests/wpt servo/servo#3451
Run command
Daoshengs-MacBook-Pro-2:web-platform-tests daoshengmu$ ./mach run -d http://web-platform.test:8000/webgl/conformance-1.0.3/conformance/textures/texture-upload-size.html