# Conflicts: # Source/Platforms/DotNet/NUnit/agents/net40/nunit-agent.exe # Source/Platforms/DotNet/NUnit/agents/net40/nunit.engine.api.dll # Source/Platforms/DotNet/NUnit/agents/net40/nunit.engine.core.dll # Source/Platforms/DotNet/NUnit/agents/net7.0/nunit.agent.addins # Source/Platforms/DotNet/NUnit/nunit.engine.api.dll # Source/Platforms/DotNet/NUnit/nunit.engine.core.dll # Source/Platforms/DotNet/NUnit/nunit.engine.dll # Source/Platforms/DotNet/NUnit/nunit3-console.exe # Source/Platforms/DotNet/NUnit/nunit3-console.exe.config # Source/Platforms/DotNet/NUnit/testcentric.engine.metadata.dll # Source/Tools/Flax.Build/Deps/Downloader.cs # Source/Tools/Flax.Stats/CodeFrame.cs # Source/Tools/Flax.Stats/CodeFrameNode.cs # Source/Tools/Flax.Stats/Flax.Stats.Build.cs # Source/Tools/Flax.Stats/Languages.cs # Source/Tools/Flax.Stats/Program.cs # Source/Tools/Flax.Stats/TaskType.cs # Source/Tools/Flax.Stats/Tools.cs # Source/Tools/FlaxEngine.Tests/TestEditorUtils.cs
50 lines
1.7 KiB
C++
50 lines
1.7 KiB
C++
// Copyright (c) 2012-2023 Wojciech Figat. All rights reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "Engine/Core/Collections/Array.h"
|
|
#include "Engine/Scripting/ScriptingType.h"
|
|
#include "TextureGroup.h"
|
|
|
|
class GPUSampler;
|
|
|
|
// Streaming service statistics container.
|
|
API_STRUCT(NoDefault) struct FLAXENGINE_API StreamingStats
|
|
{
|
|
DECLARE_SCRIPTING_TYPE_MINIMAL(StreamingStats);
|
|
// Amount of active streamable resources.
|
|
API_FIELD() int32 ResourcesCount = 0;
|
|
// Amount of resources that are during streaming in (target residency is higher that the current). Zero if all resources are streamed in.
|
|
API_FIELD() int32 StreamingResourcesCount = 0;
|
|
};
|
|
|
|
/// <summary>
|
|
/// The content streaming service.
|
|
/// </summary>
|
|
API_CLASS(Static) class FLAXENGINE_API Streaming
|
|
{
|
|
DECLARE_SCRIPTING_TYPE_NO_SPAWN(Streaming);
|
|
|
|
/// <summary>
|
|
/// Textures streaming configuration (per-group).
|
|
/// </summary>
|
|
API_FIELD() static Array<TextureGroup, InlinedAllocation<32>> TextureGroups;
|
|
|
|
/// <summary>
|
|
/// Gets streaming statistics.
|
|
/// </summary>
|
|
API_PROPERTY() static StreamingStats GetStats();
|
|
|
|
/// <summary>
|
|
/// Requests the streaming update for all the loaded resources. Use it to refresh content streaming after changing configuration.
|
|
/// </summary>
|
|
API_FUNCTION() static void RequestStreamingUpdate();
|
|
|
|
/// <summary>
|
|
/// 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).
|
|
/// </summary>
|
|
/// <param name="index">The texture group index.</param>
|
|
/// <returns>The texture sampler (always valid).</returns>
|
|
API_FUNCTION() static GPUSampler* GetTextureGroupSampler(int32 index);
|
|
};
|