Apply singlecolorpatch.diff from Amir Ebrahimi.

Add single color compressor to CUDA implementation.
This commit is contained in:
castano
2008-02-16 09:53:07 +00:00
parent eb36ef86a7
commit b41752aa84
8 changed files with 110 additions and 19 deletions

View File

@ -47,7 +47,7 @@ struct MyOutputHandler : public nvtt::OutputHandler
virtual void beginImage(int size, int width, int height, int depth, int face, int miplevel)
{
assert(size == OUTPUT_SIZE);
assert(size == sizeof(int) * OUTPUT_SIZE);
assert(width == WIDTH);
assert(height == HEIGHT);
assert(depth == 1);
@ -177,7 +177,7 @@ void precomp()
int main(int argc, char *argv[])
{
precomp();
//precomp();
nvtt::InputOptions inputOptions;
inputOptions.setTextureLayout(nvtt::TextureType_2D, 1024, 1024);