Remove GPU Commands constructor

This commit is contained in:
2023-09-25 20:45:11 +02:00
parent ce36f69435
commit 7943bafb8d
4 changed files with 6 additions and 6 deletions

View File

@@ -11,9 +11,9 @@ namespace JabyEngine {
struct GPU_IO::GP0 value;
constexpr TexPage() = default;
constexpr TexPage(const PositionU16& tex_pos, TexturePageColor tex_color, SemiTransparency transparency = SemiTransparency::B_Half_add_F_Half, bool dither = false) : value{
GPU_IO::Command::TexPage(tex_pos, transparency, tex_color, dither, false)} {}
static constexpr TexPage create(const PositionU16& tex_pos, TexturePageColor tex_color, SemiTransparency transparency = SemiTransparency::B_Half_add_F_Half, bool dither = false) {
return TexPage{.value = GPU_IO::Command::TexPage(tex_pos, transparency, tex_color, dither, false)};
}
};
}
}