Module re_renderer::renderer::rectangles

source ·
Expand description

Renderer that makes it easy to draw textured 2D rectangles with transparency

Transparency: (TODO(andreas):) We’re not performing any sorting on transparency yet, so the transparent rectangles pretty much only work correctly when they are directly layered in front of another opaque rectangle. We do not disable depth write.

Implementation details: We assume the standard usecase are individual textured rectangles. Since we’re not allowed to bind many textures at once (no widespread bindless support!), we are forced to have individual bind groups per rectangle and thus a draw call per rectangle.

Modules§

Structs§

Enums§