26 lines
568 B
C++
26 lines
568 B
C++
// Copyright 2020-2024 CesiumGS, Inc. and Contributors
|
|
|
|
#pragma once
|
|
|
|
#include <CesiumAsync/Future.h>
|
|
|
|
namespace CesiumAsync {
|
|
class AsyncSystem;
|
|
}
|
|
|
|
namespace CesiumGltf {
|
|
struct Model;
|
|
}
|
|
|
|
class CesiumGltfTextures {
|
|
public:
|
|
/**
|
|
* Creates all of the texture resources that are required by the given glTF,
|
|
* and adds `ExtensionImageCesiumUnreal` to each. This is intended to be
|
|
* called from a worker thread.
|
|
*/
|
|
static CesiumAsync::Future<void> createInWorkerThread(
|
|
const CesiumAsync::AsyncSystem& asyncSystem,
|
|
CesiumGltf::Model& model);
|
|
};
|