cesium-native 0.43.0
Loading...
Searching...
No Matches
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
12namespace CesiumAsync {
13class AsyncSystem;
14}
15
16namespace 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
55template <> struct std::hash<CesiumGltfReader::NetworkImageAssetDescriptor> {
58 std::size_t operator()(
59 const CesiumGltfReader::NetworkImageAssetDescriptor& key) const noexcept;
60};
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 Promise.h:11
Classes that support asynchronous operations.
Classes for reading glTF models.
Definition GltfReader.h:24
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 CesiumAsync::IAssetAcces...
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 CesiumGlt...
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 ...
std::size_t operator()(const CesiumGltfReader::NetworkImageAssetDescriptor &key) const noexcept
Returns a size_t hash of the provided CesiumGltfReader::NetworkImageAssetDescriptor.