Donner SVG 0.8.0
0.8.0 ยท ebf353960.8.0 main
SVG editor and embeddable C⁠+⁠+⁠20 engine.
Loading...
Searching...
No Matches
donner::editor::UiTextureDescriptor Struct Reference

What a UI texture registration carries beyond the view it names. More...

#include "donner/editor/gui/UiTextureRegistry.h"

Public Attributes

gpu::TextureViewRef view
 View sampled when the texture is drawn. Texture needs gpu::TextureUsage::Sampled.
gpu::Extent2d size
 Sampled extent in texels. Must be nonzero.
UiTextureAlphaMode alphaMode = UiTextureAlphaMode::Premultiplied
 Alpha interpretation.

Detailed Description

What a UI texture registration carries beyond the view it names.

Member Data Documentation

◆ alphaMode

UiTextureAlphaMode donner::editor::UiTextureDescriptor::alphaMode = UiTextureAlphaMode::Premultiplied

Alpha interpretation.

◆ size

gpu::Extent2d donner::editor::UiTextureDescriptor::size

Sampled extent in texels. Must be nonzero.

◆ view

gpu::TextureViewRef donner::editor::UiTextureDescriptor::view

View sampled when the texture is drawn. Texture needs gpu::TextureUsage::Sampled.


The documentation for this struct was generated from the following file: