// Copyright (c) 2012-2021 Wojciech Figat. All rights reserved. #pragma once #include "Engine/Core/Collections/Array.h" #include "Engine/Scripting/ScriptingType.h" #include "TextureGroup.h" class GPUSampler; /// /// The content streaming service. /// API_CLASS(Static) class FLAXENGINE_API Streaming { DECLARE_SCRIPTING_TYPE_NO_SPAWN(Streaming); /// /// Textures streaming configuration (per-group). /// API_FIELD() static Array> TextureGroups; /// /// Requests the streaming update for all the loaded resources. Use it to refresh content streaming after changing configuration. /// API_FUNCTION() static void RequestStreamingUpdate(); /// /// Gets the texture sampler for a given texture group. Sampler objects is managed and cached by streaming service. Returned value is always valid (uses fallback object). /// /// The texture group index. /// The texture sampler (always valid). API_FUNCTION() static GPUSampler* GetTextureGroupSampler(int32 index); };