MCPcopy Create free account
hub / github.com/Hydr8gon/3Beans / writeColbufWrite

Method writeColbufWrite

src/core/gpu/gpu_cmd.cpp:633–638  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

631}
632
633void Gpu::writeColbufWrite(uint32_t mask, uint32_t value) {
634 // Write to the color buffer write enable and update the renderer's color mask
635 mask &= 0xF;
636 gpuColbufWrite = (gpuColbufWrite & ~mask) | (value & mask);
637 gpuRender->setColbufMask(gpuColbufWrite ? ((gpuDepcolMask >> 8) & 0xF) : 0);
638}
639
640void Gpu::writeDepbufWrite(uint32_t mask, uint32_t value) {
641 // Write to the depth buffer write enable and update the renderer's depth mask

Callers 1

ioWriteMethod · 0.80

Calls 1

setColbufMaskMethod · 0.45

Tested by

no test coverage detected