Skip to content

Instantly share code, notes, and snippets.

@vk2gpu
vk2gpu / gist:45718df76d959ea124b4
Created October 27, 2015 09:10
Lambda formatting..
RenderContext.pFrame_->queueRenderNode( Sort,
[
VertexDecl = VertexDecl_.get(),
VertexBuffer = VertexBuffer_.get(),
NoofSegments = NoofSegments_
] ( RsContext* Context )
{
Context->setVertexDeclaration( VertexDecl );
Context->setVertexBuffer( 0, VertexBuffer, sizeof( Vertex ) );
Context->drawPrimitives( RsTopologyType::TRIANGLE_STRIP, 0, NoofSegments * 2 );
uniform highp vec2 resolution;
uniform sampler2D texture;
void main ()
{
highp vec2 tmpvar_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1;
lowp vec4 tmpvar_3_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2;
tmpvar_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1 = (gl_FragCoord.xy / resolution);
lowp vec4 tmpvar_3;
tmpvar_3 = texture2D (texture, tmpvar_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1);
if ((tmpvar_3.x == 1000.0)) {
// LambdaTestbed.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <functional>
#include <iostream>
struct NakedCallable
{
@vk2gpu
vk2gpu / Kill_VS2012_builds_in_anger.bat
Last active August 29, 2015 14:06
Kill_VS2012_builds_in_anger.bat
taskkill /f /im msbuild.exe
taskkill /f /im cl.exe
taskkill /f /im link.exe
<?php
set_time_limit(-1);
if(isset($_GET['ld']) and is_numeric($_GET['ld']))
$TARGETLD = $_GET['ld'];
else
$TARGETLD = 21;
$compolink = "http://ludumdare.com/compo/ludum-dare-$TARGETLD/";