载入中...
搜索中...
未找到
EvpackImageDecoder.h
浏览该文件的文档.
1#pragma once
2#include "common/Export.h"
3
7
8namespace eve::asset {
9
12 std::uint32_t maximumDimension = 32768;
13 std::uint64_t maximumPixels = 268'435'456;
14 std::uint64_t maximumDecodedBytes = 1024ull * 1024ull * 1024ull;
15};
16
20 std::uint32_t width = 0, height = 0, levels = 0;
21 bool srgb = false;
22 std::vector<std::uint8_t> pixels;
24};
25
36 const EvpackResourceReader& reader, const AssetRef& image, const EvpackCapabilities& capabilities,
38
39} // namespace eve::asset
Typed capability-aware runtime access to admitted packs.
#define EVENGINE_API_FOUNDATION
每个链接组(link group)各自的导出宏。
Definition Export.h:106
const AssetImportLimits & limits
Stable asset identity backed by PersistentId.
Definition ResourceRef.h:53
Move-only operation result carrying either a value or Status.
Definition Result.h:155
Immutable reader retaining an admitted pack by shared ownership.
Result< DecodedEvpackImage > decodeEvpackImage(const EvpackResourceReader &reader, const AssetRef &image, const EvpackCapabilities &capabilities, const EvpackImageDecodeLimits &limits)
Decode and validate canonical eve.image/3 data with eve.image/2 compatibility.
Owning validated RGBA8 mip chain independent of a graphics backend.
std::vector< std::uint8_t > pixels
Actual runtime device capabilities used for variant selection.
Definition Evpack.h:92
Bounds applied before allocating decoded image bytes.
Result of ordered capability variant selection.
Definition Evpack.h:155