diff --git a/crates/metal2vulkan-runtime/src/render.rs b/crates/metal2vulkan-runtime/src/render.rs index d7642bab3..245ed13c8 100644 --- a/crates/metal2vulkan-runtime/src/render.rs +++ b/crates/metal2vulkan-runtime/src/render.rs @@ -458,8 +458,9 @@ pub(crate) struct RenderCompiled { pub(crate) id: u64, /// What the content was made for beside its descriptor: the colours its fragment function /// fetches through 2D array views, the buffer slots it holds to 4, and the texture slots it - /// encodes sRGB writes at ([`Device::render_pipeline_state`]'s), which its depth range twin - /// is made for too. + /// encodes sRGB writes at, as + /// [`Device::render_pipeline_state`](crate::Device::render_pipeline_state) takes them, which + /// its depth range twin is made for too. content: (u8, u64, [u128; 2]), /// The content's depth range twin ([`RenderPipelineState::folded`]), made at the first draw /// that needs it and held as long as the content: no map of its own keeps it. Or the diff --git a/crates/metal2vulkan/src/pipeline/api_tests.rs b/crates/metal2vulkan/src/pipeline/api_tests.rs index 5c3a9dd13..25d97bab4 100644 --- a/crates/metal2vulkan/src/pipeline/api_tests.rs +++ b/crates/metal2vulkan/src/pipeline/api_tests.rs @@ -121,6 +121,7 @@ mod serde_round_trips { private_list: true, open_cl_lines: BTreeSet::from([slot(Stage::Kernel, SlotClass::Texture, 1)]), region_viewports: true, + depth_range_fold: true, }); round_trip(&SpecializationKey { data: vec![1, 0, 0, 0], @@ -268,6 +269,7 @@ mod serde_round_trips { instanced_attributes: BTreeSet::from([1]), object_payload: Some(64), region_viewports: true, + depth_range_fold: true, push_base: 24, word_bound_buffers: BTreeSet::from([slot(Stage::Kernel, SlotClass::Buffer, 2)]), arrayed_fetches: BTreeSet::from([1]),