mirror of
https://github.com/storytold/materialcraft.git
synced 2026-11-20 22:40:59 +01:00
17 lines
728 B
Rust
17 lines
728 B
Rust
use craft_texture::Image;
|
|
use materialcraft_core::{OutputFormat, Value};
|
|
use std::collections::BTreeMap;
|
|
|
|
/// What to cook a portable material with, over the graph's own values
|
|
#[derive(Clone, Debug, Default)]
|
|
pub struct MaterialOptions {
|
|
/// Square size in pixels (rounded to a power of two, 16..8192); `None` = the graph's size
|
|
pub size: Option<u32>,
|
|
/// Exposed input values (they also become the embedded package's values)
|
|
pub values: BTreeMap<String, Value>,
|
|
/// Images for the graph's input nodes, by identifier (mesh maps)
|
|
pub inputs: BTreeMap<String, Image>,
|
|
/// Known sample depth of each bound file before decoding to linear floats.
|
|
pub input_formats: BTreeMap<String, OutputFormat>,
|
|
}
|