MCPcopy Create free account
hub / github.com/RevoSucks/BM64Recomp / CalculateTextureRowWidthPadding

Function CalculateTextureRowWidthPadding

src/ui/ui_renderer.cpp:51–56  ·  view source on GitHub ↗

TODO deduplicate from rt64_common.h

Source from the content-addressed store, hash-verified

49
50// TODO deduplicate from rt64_common.h
51void CalculateTextureRowWidthPadding(uint32_t rowPitch, uint32_t &rowWidth, uint32_t &rowPadding) {
52 const int RowMultiple = 256;
53 rowWidth = rowPitch;
54 rowPadding = (rowWidth % RowMultiple) ? RowMultiple - (rowWidth % RowMultiple) : 0;
55 rowWidth += rowPadding;
56}
57
58struct RmlPushConstants {
59 Rml::Matrix4f transform;

Callers 1

create_textureMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected