pub struct CustomOutputHint {
pub id: String,
pub json_props: String,
}Expand description
§========================================================================== Output Format Hints (Rendering configuration)
IMPORTANT: Intermediate texture format policy
All intermediate textures (between nodes) use Rgba8Unorm by default:
- Storage binding compatibility (Bgra8UnormSrgb doesn’t support storage)
- Blit compatibility (copy_texture_to_texture requires matching sRGB-ness)
- Linear color space (correct for blending, lighting, mathematical ops)
The output-hint below affects:
- HDR pipelines: hdr → Rgba16Float (wider dynamic range)
- High precision compute: high-precision → Rgba32Float
§Final screen output uses surface format (typically Bgra8UnormSrgb) for proper gamma correction. This is handled by the Screen node separately.
Custom output hint (escape hatch for future extensions)
Fields§
§id: StringHint type identifier (e.g., “audio-waveform”, “depth-buffer”)
json_props: StringJSON-encoded properties
Trait Implementations§
Source§impl Clone for CustomOutputHint
impl Clone for CustomOutputHint
Source§fn clone(&self) -> CustomOutputHint
fn clone(&self) -> CustomOutputHint
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CustomOutputHint
impl RefUnwindSafe for CustomOutputHint
impl Send for CustomOutputHint
impl Sync for CustomOutputHint
impl Unpin for CustomOutputHint
impl UnwindSafe for CustomOutputHint
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more