mirror of
https://github.com/BinomialLLC/basis_universal.git
synced 2026-06-08 08:33:53 +00:00
ETC1S->DXT5A transcoding bugfix on solid color blocks
Adding development messages support Adding a few new transcoder get methods to help with creating C-style wrappers
This commit is contained in:
@@ -45,6 +45,13 @@
|
||||
#include <assert.h>
|
||||
#include <random>
|
||||
|
||||
#if defined(__EMSCRIPTEN__) && !defined(_DEBUG) && !defined(DEBUG)
|
||||
// HUGE HACK: I've been unable to disable assertions using emcc -O2 -s ASSERTIONS=0, no idea why.
|
||||
// We definitely don't want them enabled in release.
|
||||
#undef assert
|
||||
#define assert(x) ((void)0)
|
||||
#endif
|
||||
|
||||
#ifdef max
|
||||
#undef max
|
||||
#endif
|
||||
@@ -57,6 +64,11 @@
|
||||
#define strcasecmp _stricmp
|
||||
#endif
|
||||
|
||||
// Set to one to enable debug printf()'s when any errors occur, for development/debugging.
|
||||
#ifndef BASISU_DEVEL_MESSAGES
|
||||
#define BASISU_DEVEL_MESSAGES 0
|
||||
#endif
|
||||
|
||||
#define BASISU_NOTE_UNUSED(x) (void)(x)
|
||||
#define BASISU_ARRAY_SIZE(x) (sizeof(x) / sizeof(x[0]))
|
||||
#define BASISU_NO_EQUALS_OR_COPY_CONSTRUCT(x) x(x &); x& operator= (const x&);
|
||||
@@ -65,6 +77,12 @@
|
||||
#define BASISU_STRINGIZE(x) #x
|
||||
#define BASISU_STRINGIZE2(x) BASISU_STRINGIZE(x)
|
||||
|
||||
#if BASISU_DEVEL_MESSAGES
|
||||
#define BASISU_DEVEL_ERROR(args...) do { basisu::debug_printf(args); } while(0)
|
||||
#else
|
||||
#define BASISU_DEVEL_ERROR(...)
|
||||
#endif
|
||||
|
||||
namespace basisu
|
||||
{
|
||||
// Types/utilities
|
||||
|
||||
Reference in New Issue
Block a user