Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TheForceEngine/TheForceEngine
/ wrapCoordScalar
Function
wrapCoordScalar
TheForceEngine/Shaders/textureSampleFunc.h:33–38 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
31
}
32
33
int wrapCoordScalar(int x, int edge)
34
{
35
x = x - (x / edge)*edge;
36
x += (x < 0) ? edge : 0;
37
return x;
38
}
39
40
ivec2 wrapCoord(ivec2 uv, ivec2 edge)
41
{
Callers
1
sampleTexture
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected