mirror of
https://github.com/mamedev/mame.git
synced 2024-11-16 07:48:32 +01:00
Revert "I don't know what 'iqa' is, but whatever it is, it's preventing us from building shaders, so bye-bye"
This reverts commit 5adfc5b2a5
.
This commit is contained in:
parent
8a15aae581
commit
6cf1f248d9
1 changed files with 1 additions and 7 deletions
8
3rdparty/bgfx/tools/texturec/texturec.cpp
vendored
8
3rdparty/bgfx/tools/texturec/texturec.cpp
vendored
|
@ -19,11 +19,9 @@
|
|||
#include <tinyexr/tinyexr.h>
|
||||
#include <edtaa3/edtaa3func.h>
|
||||
|
||||
#if 0
|
||||
extern "C" {
|
||||
#include <iqa.h>
|
||||
}
|
||||
#endif
|
||||
|
||||
#define STB_IMAGE_IMPLEMENTATION
|
||||
#include <stb/stb_image.c>
|
||||
|
@ -418,7 +416,7 @@ int main(int _argc, const char* _argv[])
|
|||
|
||||
const bool mips = cmdLine.hasArg('m', "mips");
|
||||
const bool normalMap = cmdLine.hasArg('n', "normalmap");
|
||||
//const bool iqa = cmdLine.hasArg('\0', "iqa");
|
||||
const bool iqa = cmdLine.hasArg('\0', "iqa");
|
||||
|
||||
uint32_t size = (uint32_t)bx::getSize(&reader);
|
||||
const bgfx::Memory* mem = bgfx::alloc(size);
|
||||
|
@ -576,13 +574,11 @@ int main(int _argc, const char* _argv[])
|
|||
);
|
||||
|
||||
void* ref = NULL;
|
||||
#if 0
|
||||
if (iqa)
|
||||
{
|
||||
ref = BX_ALLOC(&allocator, size);
|
||||
memcpy(ref, rgba, size);
|
||||
}
|
||||
#endif
|
||||
|
||||
imageEncodeFromRgba8(output->data, rgba, dstMip.m_width, dstMip.m_height, format);
|
||||
|
||||
|
@ -604,7 +600,6 @@ int main(int _argc, const char* _argv[])
|
|||
, format
|
||||
);
|
||||
|
||||
#if 0
|
||||
static const iqa_ssim_args args =
|
||||
{
|
||||
0.39f, // alpha
|
||||
|
@ -625,7 +620,6 @@ int main(int _argc, const char* _argv[])
|
|||
, &args
|
||||
);
|
||||
printf("%f\n", result);
|
||||
#endif
|
||||
|
||||
BX_FREE(&allocator, ref);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue