This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "sampling/point_sampler_dxt.h" | |
namespace sampling { | |
PointSamplerDXT::PointSamplerDXT(const gfxlib::Texture &t) :tex(t) { | |
if(tex.Width() & (tex.Width() - 1) || tex.Height() & (tex.Height() - 1)) | |
THROW("Texture width & height must be a power of 2"); | |
if(tex.GetFormat().GetIdent()!=gfxlib::TI_DXT1) | |
THROW("DXT sampler requires DXT1 texture"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Parser(parseProgram) where | |
import Text.Parsec.Expr | |
import Text.ParserCombinators.Parsec | |
import Text.ParserCombinators.Parsec.Error | |
import qualified Text.ParserCombinators.Parsec.Token as P | |
import Text.ParserCombinators.Parsec.Language | |
import Control.Monad | |
import Tokens |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <assert.h> | |
#include "config.h" | |
#include <thrust/sort.h> | |
#include <thrust/tuple.h> | |
#include <thrust/host_vector.h> | |
#include <thrust/device_vector.h> | |
#include <thrust/iterator/zip_iterator.h> | |
#define GL_GLEXT_PROTOTYPES 1 |
NewerOlder