mirror of
https://github.com/storytold/texturecraft.git
synced 2026-11-29 09:34:33 +01:00
Integrate main and honor per-map sizes and shader sidecars through MCP. Preserve texture writes when an optional sidecar fails, and cover both outcomes through the tool transport. Bound layered PSD working memory, preserve set and UDIM names, and report effective dithering. Match previews to stored channels and identify linear grayscale JP2 samples correctly. Reuse sample buffers, cache unchanged template plans, and share identical grayscale preview textures. Remove the obsolete direct XML dependency. Apply the maintainer’s preset attribution decision and retain the ICC credit and codec notices.
26 lines
1.0 KiB
Rust
26 lines
1.0 KiB
Rust
use schemars::JsonSchema;
|
|
use serde::{Deserialize, Serialize};
|
|
|
|
/// Overrides for one output map.
|
|
#[derive(Debug, Deserialize, Serialize, JsonSchema)]
|
|
#[serde(rename_all = "camelCase")]
|
|
pub struct ExportMapParams {
|
|
/// Index of the map in the preset.
|
|
pub map: usize,
|
|
/// False leaves this map out of the export.
|
|
#[serde(default, skip_serializing_if = "Option::is_none")]
|
|
pub enabled: Option<bool>,
|
|
/// File format override, such as png, pgm or tiff.
|
|
#[serde(default, skip_serializing_if = "Option::is_none")]
|
|
pub format: Option<String>,
|
|
/// Bit depth override (8, 16 or 32, depending on the format).
|
|
#[serde(default, skip_serializing_if = "Option::is_none")]
|
|
pub bit_depth: Option<u8>,
|
|
/// Override dithering for this map's 8-bit outputs.
|
|
#[serde(default, skip_serializing_if = "Option::is_none")]
|
|
pub dithering: Option<bool>,
|
|
/// Side length in pixels for this map, overriding the export size.
|
|
#[serde(default, skip_serializing_if = "Option::is_none")]
|
|
pub size: Option<u32>,
|
|
}
|