irx, nullptr, threading patch

This commit is contained in:
h4570
2022-08-20 16:38:44 +02:00
parent 57767eee72
commit d251df8704
35 changed files with 306 additions and 115 deletions
@@ -55,7 +55,7 @@ void DynPipRenderer::init(RendererCore* t_core,
rendererCore = t_core;
programsRepo = t_programRepo;
dma_channel_initialize(DMA_CHANNEL_VIF1, NULL, 0);
dma_channel_initialize(DMA_CHANNEL_VIF1, nullptr, 0);
setProgramsCache();
@@ -17,7 +17,7 @@ BlockizerProgramsManager::BlockizerProgramsManager() {
context = 0;
vu1BlockData = BlockNotUploaded;
dma_channel_initialize(DMA_CHANNEL_VIF1, NULL, 0);
dma_channel_initialize(DMA_CHANNEL_VIF1, nullptr, 0);
setProgramsCache();
}
@@ -15,7 +15,7 @@
// #define TYRA_RENDERER_VERBOSE_LOG 1
#ifdef TYRA_RENDERER_VERBOSE_LOG
#define Verbose(...) Debug::writeLines("VRB: ", ##__VA_ARGS__, "\n")
#define Verbose(...) TyraDebug::writeLines("VRB: ", ##__VA_ARGS__, "\n")
#else
#define Verbose(...) ((void)0)
#endif
@@ -14,7 +14,7 @@
// #define TYRA_QBUFF_RENDERER_VERBOSE_LOG 1
#ifdef TYRA_QBUFF_RENDERER_VERBOSE_LOG
#define Verbose(...) Debug::writeLines("VRB: ", ##__VA_ARGS__, "\n")
#define Verbose(...) TyraDebug::writeLines("VRB: ", ##__VA_ARGS__, "\n")
#else
#define Verbose(...) ((void)0)
#endif
@@ -98,7 +98,7 @@ void StaPipQBufferRenderer::init(RendererCore* t_core, prim_t* t_prim,
prim = t_prim;
lod = t_lod;
dma_channel_initialize(DMA_CHANNEL_VIF1, NULL, 0);
dma_channel_initialize(DMA_CHANNEL_VIF1, nullptr, 0);
setProgramsCache();
@@ -47,7 +47,7 @@ void RendererCoreGS::init(RendererSettings* t_settings) {
}
void RendererCoreGS::initChannels() {
dma_channel_initialize(DMA_CHANNEL_GIF, NULL, 0);
dma_channel_initialize(DMA_CHANNEL_GIF, nullptr, 0);
}
void RendererCoreGS::allocateBuffers() {
@@ -31,7 +31,7 @@ Path3::~Path3() {
void Path3::init(RendererSettings* t_settings) {
settings = t_settings;
dma_channel_initialize(DMA_CHANNEL_GIF, NULL, 0);
dma_channel_initialize(DMA_CHANNEL_GIF, nullptr, 0);
TYRA_LOG("Path3 initialized");
}
+15
View File
@@ -19,12 +19,27 @@ void Color::copy(Color* out, const float* in) {
}
void Color::operator=(const Color& v) { copy(this, v); }
void Color::operator+=(const float& v) {
r += v;
g += v;
b += v;
a += v;
}
void Color::operator-=(const float& v) {
r -= v;
g -= v;
b -= v;
a -= v;
}
void Color::operator*=(const float& v) {
r *= v;
g *= v;
b *= v;
a *= v;
}
void Color::operator/=(const float& v) {
r /= v;
g /= v;