picogl.backend.render.resources

Frame-scoped GPU resource descriptors.

Classes

Texture

GPU texture node in a render graph.

RenderTarget

Color/depth render target.

FrameResources

Allocator for per-frame transient GPU resources.

Module Contents

class picogl.backend.render.resources.Texture[source]

GPU texture node in a render graph.

name: str[source]
width: int[source]
height: int[source]
format: int[source]
handle: int | None = None[source]
class picogl.backend.render.resources.RenderTarget[source]

Color/depth render target.

name: str[source]
color: Texture[source]
depth: Texture | None = None[source]
class picogl.backend.render.resources.FrameResources[source]

Allocator for per-frame transient GPU resources.

textures: dict[str, Texture][source]
render_targets: dict[str, RenderTarget][source]
create_texture(name: str, width: int, height: int, fmt: int) Texture[source]
create_render_target(name: str, color: Texture, depth: Texture | None = None) RenderTarget[source]