Skip to content

Instantly share code, notes, and snippets.

@benvanik
benvanik / gist:884365
Created March 24, 2011 01:02
iPad 2 webgl-bench results
userAgent = Mozilla/5.0 (iPad; U; CPU OS 4_3 like Mac OS X; en-us) AppleWebKit/533.17.9 (KHTML, like Gecko) Mobile/8F191
GL_VERSION = OpenGL ES 2.0 IMGSGX543-58.6
GL_VENDOR = Imagination Technologies
GL_RENDERER = PowerVR SGX 543
GL_SHADING_LANGUAGE_VERSION = OpenGL ES GLSL ES 1.0
+------------------------------------------+--------------+
| metric | value |
+------------------------------------------+--------------+
| vtf/l1.dim128.strip.tps | 11631490 |
| vtf/l1.dim128.strip.dps | 361 |
interface ExtFontAttributes {
attribute DOMString fontFamily;
attribute DOMString fontStyle;
attribute DOMString fontSize;
attribute DOMString fontWeight;
attribute DOMString fontVariant;
};
interface ExtCharacterMap {
};
@benvanik
benvanik / pyramiddemo.html
Created December 14, 2011 06:06
Simple Image Pyramid Demo
<!DOCTYPE html>
<html>
<head>
<title>Image Pyramid Demo</title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,height=device-height,initial-scale=1.0,user-scalable=no">
<script src="pyramiddemo.js"></script>
<style>
body {
@benvanik
benvanik / updatechromium.sh
Created February 21, 2012 21:17
Update Chromium on Linux to the latest version
#!/bin/bash
cd ~/Downloads/
if [ ! -x /usr/bin/curl ]; then
echo "Didn't find curl at /usr/bin/curl. Install with 'sudo apt-get install curl'."
exit 1
fi
echo -n "Determining latest build... "
@benvanik
benvanik / build-gjstest.sh
Created September 19, 2012 02:33
Build gjstest from source
#!/bin/bash
# Copyright 2012 Google Inc. All Rights Reserved.
# Attempt to build gjstest.
# This is required as there is no package on Linux. There is on OSX, but then
# everyone would be using different versions. This only needs to be done when
# a new computer is setup or the submodule is bumped in the repo.
TEMP_PATH=/tmp/wtf-tools
@benvanik
benvanik / anvil-bootstrap.sh
Created October 1, 2012 21:03
anvil-build javascript project bootstrap
#!/bin/bash
# Copyright 2012 Google Inc. All Rights Reserved.
# anvil-build unix bootstrap script
# This script prepares a new anvil-build based project by performing a lot of
# the boring skeleton work of preparing a new repo. It is designed to be used
# on empty paths.
#
my.Base = function(drawEventType) {
if (TRACING_ENABLED) {
this.drawEventType_ = drawEventType;
}
};
my.Base.prototype.draw = function() {
var scope = TRACING_ENABLED ? this.drawEventType_() : null;
...
leaveScope(scope);
//
// main.cpp
// mem_test
//
// Created by Ben Vanik on 8/1/14.
// Copyright (c) 2014 Ben Vanik. All rights reserved.
//
#include <fcntl.h>
#include <type_traits>
?
[ ] 1 : mfcr
[ ] 1 : mffsx (ROUNDING MODE)
[ ] 1 : mtfsfx (ROUNDING MODE)
needs tests
[ ] 2 : fctidx (ROUNDING MODE)
[ ] 4 : stfiwx (ROUNDING MODE)
[ ] 7 : fdivx
[ ] 21 : fnegx
SPIR-V 1.0:
Glslang Reference Front End from Khronos (Contact John Kessenich, johnkessenich@google.com) - version 0x0001
IDs up to {204}
Source is GLSL 450
Capabilities: Geometry GeometryPointSize ClipDistance Unrecognised{54}
Entry point 'main' (Geometry Shader)
Triangles