Half way through debugging texture problems

This commit is contained in:
2023-06-04 08:28:49 -07:00
parent 19eabe6e76
commit d2dc93d3be
3 changed files with 7 additions and 0 deletions

View File

@ -188,6 +188,11 @@ void Texture::buffer(struct ColorU8 pixels[]) {
this->bufferRaw((void*)pixels);
}
void Texture::buffer(struct Color pixels[]) {
this->bufferRaw((void*)pixels);
// assertUnreachable();
}
void Texture::buffer(uint8_t pixels[]) {
this->bufferRaw((void*)pixels);
}

View File

@ -33,6 +33,7 @@ namespace Dawn {
void fill(uint8_t) override;
bool_t isReady() override;
void buffer(struct ColorU8 pixels[]) override;
void buffer(struct Color pixels[]);
void buffer(uint8_t pixels[]) override;
/**

View File

@ -36,6 +36,7 @@ static inline void * memoryFillWithZero(const size_t size) {
* @param pointer Pointer in memory to free.
*/
static inline void memoryFree(void *pointer) {
assertNotNull(pointer);
free(pointer);
}