Skip to content

Instantly share code, notes, and snippets.

View chaoticbob's full-sized avatar

Hai Nguyen chaoticbob

View GitHub Profile
@chaoticbob
chaoticbob / gist:018d62c19801f980abd236a246fe3ae2
Last active November 15, 2021 18:10
SwiftShader minimal build
Command line for SwiftShader minimal build (Win32)
cmake .. -G "Visual Studio 16 2019" -A x64 -Thost=x64 -DSWIFTSHADER_BUILD_EGL=FALSE -DSWIFTSHADER_BUILD_GLESv2=FALSE -DSWIFTSHADER_BUILD_PVR=FALSE -DSWIFTSHADER_BUILD_TESTS=FALSE -DSWIFTSHADER_WARNINGS_AS_ERRORS=FALSE -DREACTOR_ENABLE_MEMORY_SANITIZER_INSTRUMENTATION=FALSE -DSWIFTSHADER_ENABLE_ASTC=FALSE -DSPIRV_SKIP_EXECUTABLES=TRUE
Command line for SwiftShader minimal build (Other)
cmake .. -DSWIFTSHADER_BUILD_EGL=FALSE -DSWIFTSHADER_BUILD_GLESv2=FALSE -DSWIFTSHADER_BUILD_PVR=FALSE -DSWIFTSHADER_BUILD_TESTS=FALSE -DSWIFTSHADER_WARNINGS_AS_ERRORS=FALSE -DREACTOR_ENABLE_MEMORY_SANITIZER_INSTRUMENTATION=FALSE -DSWIFTSHADER_ENABLE_ASTC=FALSE -DSPIRV_SKIP_EXECUTABLES=TRUE
06-16 02:20:26.931 6715-6782/? E/cinder﹕ |error | virtual void Grove::draw()[478] GL_INVALID_OPERATION
06-16 02:20:35.011 2965-2965/? I/DEBUG﹕ pid: 6715, tid: 6782, name: Thread-3986 >>> com.simongeilfus.grove.grove <<<
06-16 02:20:35.021 2965-2965/? I/DEBUG﹕ #00 pc 000d811c /data/app/com.simongeilfus.grove.grove-2/lib/arm/libGrove.so (cinder::gl::Texture2d::Format::Format()+17)
06-16 02:20:35.021 2965-2965/? I/DEBUG﹕ #01 pc 000df529 /data/app/com.simongeilfus.grove.grove-2/lib/arm/libGrove.so (Terrain::Tile::buildOcclusionMesh()+468)
06-16 02:20:35.241 3524-7756/? W/ActivityManager﹕ Force finishing activity com.simongeilfus.grove.grove/.GroveActivity
06-16 02:20:35.241 3524-7756/? V/ApplicationPolicy﹕ isApplicationStateBlocked userId 0 pkgname com.simongeilfus.grove.grove
06-16 02:20:35.281 3524-3549/? D/AssetManager﹕ addAssetPath path =/data/app/com.simongeilfus.grove.grove-2/base.apkmapset is 0
06-16 02:20:35.281 3524-3549/? D/AssetManager﹕ addAssetPath path =/data/app/com.simon
@chaoticbob
chaoticbob / gist:ebc5267f88f5ac5f290b
Last active August 29, 2015 14:23
Sample Android.mk file
# Generated by CinderAppBuildPlugin: Sun Jun 14 11:48:02 PDT 2015
#
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := libcinder_d
LOCAL_SRC_FILES := /Users/hai/code/cinder/cinder_chaoticbob/lib/android/$(TARGET_PLATFORM)/$(TARGET_ARCH_ABI)/libcinder_d.a
include $(PREBUILT_STATIC_LIBRARY)
include $(CLEAR_VARS)
@chaoticbob
chaoticbob / designer.html
Last active August 29, 2015 14:10
designer
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../paper-tabs/paper-tabs.html">
<link rel="import" href="../paper-tabs/paper-tab.html">
<polymer-element name="my-element">
<template>
<style>
@chaoticbob
chaoticbob / designer.html
Last active August 29, 2015 14:06
designer
<link rel="import" href="../core-drawer-panel/core-drawer-panel.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
@chaoticbob
chaoticbob / designer.html
Last active August 29, 2015 14:06
designer
<link rel="import" href="../core-scaffold/core-scaffold.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-menu/core-menu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-menu/core-submenu.html">
<polymer-element name="my-element">
@chaoticbob
chaoticbob / gist:4690b92c728a59e629b2
Created August 10, 2014 18:23
JavaScript Module Example
///
/// MyNameSpace
///
var MyNameSpace = (function() {
///
/// Constants
///
var Constants = Object.freeze({
PI : 3.141592,