#3733·ebiten

ebiten: deprecate Address to simplify rendering implementations

Author: hajimehoshiCreated Sep 19, 2026Updated Sep 19, 2026
Labelsfeatureos:linuxos:windowsos:macosos:androidos:iosos:freebsdos:js

Operating System

  • Windows
  • macOS
  • Linux
  • FreeBSD
  • OpenBSD
  • Android
  • iOS
  • Nintendo Switch
  • PlayStation 5
  • Xbox
  • Web Browsers

What feature would you like to be added?

Deprecate the Address API, including the DrawTrianglesOptions.Address field and its address-mode constants. Preserve existing behavior for compatibility during deprecation, and document how callers can implement clipping or repeating with custom shaders when needed.

This revisits #1211, which proposed deprecating Address but was closed without a recorded explanation in the issue discussion.

Why is this needed?

To simplify the rendering implementation and reduce the special cases that built-in address modes require.

For example, #3720 illustrates the interaction with mipmaps: AddressClampToZero and AddressRepeat depend on source-region bounds for clipping and wrapping. Those bounds must be scaled along with the source coordinates. Since regions use integer coordinates, rounding can change the clipping boundary or repeat period, and can even collapse a thin subimage's region to zero width. Preserving these semantics requires additional mipmap-level restrictions and plumbing to distinguish these modes from AddressUnsafe, which does not use source-region bounds for sampling.

Deprecating this API would move specialized clipping and repeating behavior to custom shaders and establish a path toward simplifying built-in shader variants and mipmap handling. Deprecation alone would not remove the existing implementation; that simplification would depend on a later compatibility decision.

Authored by OpenAI Codex on behalf of @hajimehoshi.