Skip to content

Instantly share code, notes, and snippets.

View gregorycu's full-sized avatar

Gregory Currie gregorycu

  • Melbourne, Australia
View GitHub Profile
// shader.cpp
// line 537
// void ShaderSource::onSetConstants
// Add the following to top of function:
static unsigned numLoops = 0;
++numLoops;
if ((numLoops % 200) != 0)
<?php
class Factory {
function Make() {
return new Widget();
}
}
class Widget {
private function __construct() {