Skip to content

Instantly share code, notes, and snippets.

View ZeroStride's full-sized avatar

Ezri ZeroStride

  • Secret Volcano Lair
View GitHub Profile
require 'capistrano/recipes/deploy/strategy/copy'
require 'fileutils'
require 'tempfile' # Dir.tmpdir
require 'json'
module Capistrano
module Deploy
module Strategy
# This class implements the strategy for deploying versioned, static assets
/* Dust -- Copyright (C) 2009-2010 GameClay LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
protected static float* AllocHGlobalAlignedF(int numToAlloc, out System.IntPtr freePtr)
{
freePtr = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(float)) * numToAlloc + 15);
return (float*)(((int)freePtr + 15) & ~ 0x0F);
}
/*******************************************************************************
* PushButton Engine
* Copyright (C) 2009 PushButton Labs, LLC
* For more information see http://www.pushbuttonengine.com
*
* This file is licensed under the terms of the MIT license, which is included
* in the License.html file at the root directory of this SDK.
******************************************************************************/
package com.pblabs.engine.serialization
{
/*******************************************************************************
* PushButton Engine
* Copyright (C) 2009 PushButton Labs, LLC
* For more information see http://www.pushbuttonengine.com
*
* This file is licensed under the terms of the MIT license, which is included
* in the License.html file at the root directory of this SDK.
******************************************************************************/
package com.pblabs.engine.version
{
using System;
using System.IO;
using System.Text;
using System.Collections.Generic;
namespace MonsterTest
{
class MainClass
{
public static void Main (string[] args)
using System;
using System.Diagnostics;
using Microsoft.Xna.Framework;
// AoS (class) 28-bytes
// this test uses an array of particle classes 23-bytes wide and processes each particle individually
namespace XNA360MathTest
{
static class Program
{
using System;
using System.Diagnostics;
using Microsoft.Xna.Framework;
// AoS 28-bytes
// this test uses an array of particle structures 28-bytes wide and processes each particle individually
namespace XNA360MathTest
{
static class Program
{
using System;
using System.Diagnostics;
using Microsoft.Xna.Framework;
// SoA Vector4
// this test uses a simple array of Vector4's to do batched processing of 4 particles at a time
namespace XNA360MathTest
{
static class Program
{