cesium-native  0.41.0
NetworkImageAssetDescriptor.h
1 #pragma once
2 
3 #include <CesiumAsync/Future.h>
4 #include <CesiumAsync/NetworkAssetDescriptor.h>
5 #include <CesiumGltf/ImageAsset.h>
6 #include <CesiumGltf/Ktx2TranscodeTargets.h>
7 #include <CesiumUtility/IntrusivePointer.h>
8 #include <CesiumUtility/Result.h>
9 
10 #include <memory>
11 
12 namespace CesiumAsync {
13 class AsyncSystem;
14 }
15 
16 namespace CesiumGltfReader {
17 
30 
34  bool operator==(const NetworkImageAssetDescriptor& rhs) const noexcept;
35 
47  const CesiumAsync::AsyncSystem& asyncSystem,
48  const std::shared_ptr<CesiumAsync::IAssetAccessor>& pAssetAccessor) const;
49 };
50 
51 } // namespace CesiumGltfReader
52 
53 template <> struct std::hash<CesiumGltfReader::NetworkImageAssetDescriptor> {
54  std::size_t operator()(
55  const CesiumGltfReader::NetworkImageAssetDescriptor& key) const noexcept;
56 };
A system for managing asynchronous requests and tasks.
Definition: AsyncSystem.h:36
A value that will be available in the future, as produced by AsyncSystem.
Definition: Future.h:29
Classes that support asynchronous operations.
Classes for reading glTF models.
Definition: GltfReader.h:25
A description of an asset that can be loaded from the network using an IAssetAccessor....
A description of an image asset that can be loaded from the network using an IAssetAccessor....
CesiumAsync::Future< CesiumUtility::ResultPointer< CesiumGltf::ImageAsset > > load(const CesiumAsync::AsyncSystem &asyncSystem, const std::shared_ptr< CesiumAsync::IAssetAccessor > &pAssetAccessor) const
Request this asset from the network using the provided asset accessor and return the loaded ImageAsse...
CesiumGltf::Ktx2TranscodeTargets ktx2TranscodeTargets
The supported GPU texture formats used for KTX2 decoding.
bool operator==(const NetworkImageAssetDescriptor &rhs) const noexcept
Determines if this descriptor is identical to another one.
For each possible input transmission format, this struct names the ideal target gpu-compressed pixel ...