picogl.backend.render.resources =============================== .. py:module:: picogl.backend.render.resources .. autoapi-nested-parse:: Frame-scoped GPU resource descriptors. Classes ------- .. autoapisummary:: picogl.backend.render.resources.Texture picogl.backend.render.resources.RenderTarget picogl.backend.render.resources.FrameResources Module Contents --------------- .. py:class:: Texture GPU texture node in a render graph. .. py:attribute:: name :type: str .. py:attribute:: width :type: int .. py:attribute:: height :type: int .. py:attribute:: format :type: int .. py:attribute:: handle :type: Optional[int] :value: None .. py:class:: RenderTarget Color/depth render target. .. py:attribute:: name :type: str .. py:attribute:: color :type: Texture .. py:attribute:: depth :type: Optional[Texture] :value: None .. py:class:: FrameResources Allocator for per-frame transient GPU resources. .. py:attribute:: textures :type: dict[str, Texture] .. py:attribute:: render_targets :type: dict[str, RenderTarget] .. py:method:: create_texture(name: str, width: int, height: int, fmt: int) -> Texture .. py:method:: create_render_target(name: str, color: Texture, depth: Optional[Texture] = None) -> RenderTarget