Skip to content

Instantly share code, notes, and snippets.

Ben Vanik benvanik

Block or report user

Report or block benvanik

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@benvanik
benvanik / BUILD
Last active Jul 18, 2017
bzlrepro
View BUILD
package(default_visibility = ["//visibility:public"])
cc_library(
name = "a",
srcs = ["a.cc"],
hdrs = ["a.h"],
)
cc_library(
name = "b",
View gist:488d35a4b47db979536d
/* 0.0 */ exec
/* 3 */ vfetch_full r1.xyz1, r0.x, vf95, DataFormat=FMT_32_32_32_FLOAT, Stride=7, Signed=true, NumFormat=integer, PrefetchCount=7
/* 4 */ vfetch_mini r0, Offset=3, DataFormat=FMT_32_32_32_32_FLOAT, Signed=true, NumFormat=integer
/* 0.1 */ alloc interpolators
/* 1.0 */ exec
/* 5 */ max o0, r0, r0
/* 1.1 */ alloc position
/* 2.0 */ exec
/* 6 */ max oPos, r1, r1
/* 2.1 */ exece
View gist:8a04b051c6cf5c14b642
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
View gist:7d60a54044291289b200
?
[ ] 1 : mfcr
[ ] 1 : mffsx (ROUNDING MODE)
[ ] 1 : mtfsfx (ROUNDING MODE)
needs tests
[ ] 2 : fctidx (ROUNDING MODE)
[ ] 4 : stfiwx (ROUNDING MODE)
[ ] 7 : fdivx
[ ] 21 : fnegx
View xenia_mem_test
//
// 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>
View gist:6042467
my.Base = function(drawEventType) {
if (TRACING_ENABLED) {
this.drawEventType_ = drawEventType;
}
};
my.Base.prototype.draw = function() {
var scope = TRACING_ENABLED ? this.drawEventType_() : null;
...
leaveScope(scope);
@benvanik
benvanik / anvil-bootstrap.sh
Created Oct 1, 2012
anvil-build javascript project bootstrap
View anvil-bootstrap.sh
#!/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.
#
@benvanik
benvanik / build-gjstest.sh
Created Sep 19, 2012
Build gjstest from source
View build-gjstest.sh
#!/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 / updatechromium.sh
Created Feb 21, 2012
Update Chromium on Linux to the latest version
View updatechromium.sh
#!/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... "
You can’t perform that action at this time.