stubbed out CRTP shaders

This commit is contained in:
2026-07-08 22:17:50 -07:00
parent bb30e2df0b
commit b95022de29
3 changed files with 44 additions and 1 deletions
+17
View File
@@ -0,0 +1,17 @@
#pragma once
#include <stdint.h>
#include "../datatypes.cpp"
#include "../helpers.cpp"
#include "../buffer.cpp"
namespace UwU {
template <typename Derived>
class ShaderBase {
public:
Color shade(uint16_t x, uint16_t y) {
return static_cast<Derived*>(this)->shade(x, y);
}
};
}