ITexturePreviewProvider
- Namespace: Turian.Engine.Core
- Source File: ITexturePreviewProvider.cs
An asset preview that is itself a texture — no 3D scene needed. The engine composites the result over an empty frame with SceneViewerService.OverlayTexture, the same mechanism the screen-space GUI uses to blit onto the viewport.
Public Methods
GetPreviewTexture
Texture? GetPreviewTexture(Asset asset, Vulkan vulkan)
Gets the texture to display for asset, or null when it cannot be resolved. The caller does not own the returned texture's lifetime.
Parameters:
asset(Asset): The asset to preview.vulkan(Vulkan): The Vulkan context to resolve GPU resources against.
Returns: Texture?