Using Catch2's TEMPLATE_TEST_CASE, both the shader-interpreter and the shader-jit can be tested with the same unit-tests and with diagnostic messaging for if either fails.
JIT-tests use ShaderJITTest, interpreter-tests use ShaderInterpreterTest.
In the case that the host supports the shader-jit(PANDA3DS_SHADER_JIT_SUPPORTED), the shader-jit will be conditionally tested.
Using Catch2's
TEMPLATE_TEST_CASE
, both the shader-interpreter and the shader-jit can be tested with the same unit-tests and with diagnostic messaging for if either fails. JIT-tests useShaderJITTest
, interpreter-tests useShaderInterpreterTest
. In the case that the host supports the shader-jit(PANDA3DS_SHADER_JIT_SUPPORTED
), the shader-jit will be conditionally tested.This is the current output on my x86 host: