Engine → Renderer → texture_asset.h
texture_import_settings
| Type | Struct |
| Namespace | conjure::renderer |
| Include File Path | engine/include/conjure/renderer/texture_asset.h |
| Source File Path | engine/src/renderer/assets/texture_asset.cpp |
| API ↗ | Rendering, JPEG XL images, Renderer assets |
Syntax
Variables
| Access | Name | Type | Default | Description |
|---|---|---|---|---|
| public | colourSpace | texture_colour_space | texture_ | |
| public | filter | sampler_filter | sampler_ | |
| public | generateMips | bool | true | |
| public | wrap | texture_wrap | texture_ |
Functions
Public
from_json
from_json[[nodiscard]] static core::result<texture_import_settings> from_json(
const core::json::value &source);Reads the settings object; missing keys keep their defaults, an invalid value yields the defaults. Fails with INVALID_ARGUMENT for an unknown enumerator name or a non-object.
to_document
to_document[[nodiscard]] core::json::document to_document() const;to_json
to_jsonvoid to_json(
core::json::writer &out) const;Operator Overloads
Public
operator==
operator==[[nodiscard]] bool operator==(
const texture_import_settings &other) const noexcept = default;