Day 30, starting with anti-aliasing, removed all the instancing stuff.

This commit is contained in:
Zed A. Shaw 2026-09-10 15:52:27 -04:00
parent 6ffc6cb4ca
commit 9ce217e0e2
129 changed files with 16052 additions and 0 deletions

View file

@ -0,0 +1,33 @@
#include <deque>
#include <string>
#include <fuc2/testing.hpp>
#include "shader.hpp"
using namespace fuc2;
namespace shader_tests {
void test_load_shaders() {
Shader shader({"shaders/3.3.shader.vs", "shaders/3.3.shader.fs", ""});
shader.use();
CHECK(shader.ID != UINT_MAX, "Shader not initialized");
}
void test_compile_fail() {
auto runner = [&]() {
Shader shader({"tests/bad_shader.vs", "shaders/3.3.shader.fs", ""});
};
BLOWS_UP(runner, "compile fail should blow up");
}
fuc2::Set TESTS{
.name="shaders",
.options={ .fail_fast=false },
.tests={
TEST(test_load_shaders),
TEST(test_compile_fail),
}
};
}