Translator: a pipeline made for indirect command buffers links every stage_in attribute pulled
A render pipeline made with supportIndirectCommandBuffers lowers its vertex function pulling every
attribute (compile.rs, InputsFrom::Vertex: a command binds its vertex buffers by address alone),
but LinkInputs::render_variant left RenderLinkInputs::pull_every unset for it, so the link
resolved the attributes as fixed-function input against a stage compiled to pull them and refused
the first stage_in attribute as InvalidDescriptor(VertexAttribute). Every flagged state whose
vertex function reads [[stage_in]] failed to make. render_variant now sets pull_every for such a
descriptor, as the lowering does. SEMANTICS_VERSION 2254: a pipeline that was refused now links.
rt: a flagged state whose pulled attribute reads a layout of MTLBufferLayoutStrideDynamic reads
the stride each bind sets from PushField::VertexBufferStride, which the encoder does not fill and
no command token carries: the state is refused at its making through the existing site
(Gap::RenderPipeline, RenderPipelineKind::DrawInput), whose doc and the README's known gaps of
indirect command buffers now name it. The README's stage_in item says the fixed-function form is a
state made without the flag. docs/REFUSALS.md regenerated: no change (no new site; the refusal
lists Gap variants, and RenderPipelineKind's doc is not among its columns).
The conformance ledger's indirect-render-commands-vertex-stride row (venue *, case/pipeline) now
expects that refusal in place of the translator's InvalidDescriptor.
Tests:
- metal2vulkan: a_pipeline_for_indirect_command_buffers_pulls_its_stage_in compiles
icb_render_stride_template flagged, with its layout at a static stride and per bind, on
moltenvk-m3 and runtime-floor: no fixed-function binding or attribute, one pulled attribute at
the layout's stride, every stage through L3. Without the link change it fails with
InvalidDescriptor(VertexAttribute { attribute: 0 }).
- rt (device): every_device_pulls_a_flagged_states_stage_in_and_refuses_a_stride_per_bind makes the
flagged state at a stride of 8, draws vertices 1 to 3 directly with the attribute buffer bound
at offset 4, and reads each vertex's own word in out[vid]; the per-bind layout is refused as
RenderPipelineKind::DrawInput.
Verified: cargo fmt only, locally; the gate jobs follow.
This commit is contained in:
1 parent
6f2d1970ab
commit
c9b2534d4f
9 files changed
+167
-22
No files matched your search
@@ -5359,7 +5359,7 @@ indirect-render-commands-executed * refused case/command-buffer Err(Unavailable(
|
||||
indirect-render-commands-inherited-state * refused case/own-state/command-buffer Err(Unavailable({call: "indirect_command_buffer"})) refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, no indirect command buffer). The rt side of the suite answers `indirect_command_buffer` Unavailable: it does not port rt's `Device::new_indirect_command_buffer` yet.
|
||||
indirect-render-commands-patch-draws * refused case/pipeline:indexed Err(Error::Translation("the translator made no pipeline: unsupported: Tessellation; needs NotImplemented")) refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every pipeline descriptor's supportIndirectCommandBuffers NO). The translator makes no pipeline for the case's indexed patch pipeline (Tessellation, NotImplemented: a FALLBACK); its plain pipeline is made.
|
||||
indirect-render-commands-under-the-pass-state * refused case/command-buffer Err(Unavailable({call: "indirect_command_buffer"})) refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, no indirect command buffer). The rt side of the suite answers `indirect_command_buffer` Unavailable: it does not port rt's `Device::new_indirect_command_buffer` yet.
|
||||
indirect-render-commands-vertex-stride * refused case/pipeline Err(Error::Translation("the translator made no pipeline: invalid descriptor: VertexAttribute { attribute: 0 }")) refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every pipeline descriptor's supportIndirectCommandBuffers NO). A bug of ours (lane icbcut, open): a state made for indirect command buffers lowers its vertex function pulling every attribute, but its link does not pull them (LinkInputs::render_variant leaves pull_every unset), so the link refuses the stage_in attribute as a descriptor its stage does not fit. The fix belongs in the translator's link.
|
||||
indirect-render-commands-vertex-stride * refused case/pipeline Err(Error::Unsupported("a render pipeline state with DrawInput is not built")) refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, every pipeline descriptor's supportIndirectCommandBuffers NO). A state made for indirect command buffers fetches every [[stage_in]] attribute in the shader, at its layout's stride, and this row's layout is MTLBufferLayoutStrideDynamic: the stride each bind sets (setVertexBuffer:offset:attributeStride:atIndex:, a command's included) is a push field the encoder does not fill, so rt refuses the state at its making (Gap::RenderPipeline, RenderPipelineKind::DrawInput; rt README, Known gaps of indirect command buffers).
|
||||
library-from-data * refused case/program Err(Unavailable({call: "archives"})) refused: the consumer's own (MTLBinaryArchive, binaryArchives). The consumer keeps its binary archives in its own bundle: the device's archive holds only each added function's lookup key, and serializing and loading use the bundle's own file format, so rt is never asked.
|
||||
mesh-commands-own-state * refused case/object-pipeline Err(Unavailable({call: "mesh_pipeline_for_commands"})) refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, no mesh pipeline, mesh draw or vertex amplification query). The rt side of the suite answers `mesh_pipeline_for_commands` Unavailable: rt has no counterpart of the call, and no replay stream makes it.
|
||||
mesh-commands-unordered-draws * refused case/writer-pipeline Err(Unavailable({call: "mesh_pipeline_for_commands"})) refused: no stream uses it yet (full selector census 11-19, m3-max-53207-53208, 53213, 53217-53221: 26 streams, no mesh pipeline, mesh draw or vertex amplification query). The rt side of the suite answers `mesh_pipeline_for_commands` Unavailable: rt has no counterpart of the call, and no replay stream makes it.
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -2856,8 +2856,9 @@ or does not check is rebuilt from the generations' names, with young counted ful
|
||||
state without rasterization its discard, which keeps its attachment formats and that state in
|
||||
the pipeline. Vertex buffer strides are the descriptor's, so the content's, and baked. It
|
||||
renders dynamically into its attachments' formats, with no render pass.
|
||||
- Every `[[stage_in]]` attribute is fetched by fixed-function vertex input, the form native
|
||||
Vulkan uses, with no second form: the vertex descriptor's formats, offsets, strides and steps
|
||||
- Every `[[stage_in]]` attribute of a state made without `supportIndirectCommandBuffers` is
|
||||
fetched by fixed-function vertex input, the form native Vulkan uses, with no second form (a state
|
||||
made with it fetches every attribute in the shader: Indirect command buffers, below): the vertex descriptor's formats, offsets, strides and steps
|
||||
are the `VkPipeline`'s vertex input state. Of Metal's vertex descriptor:
|
||||
- formats: each maps to the Vulkan format of its layout and conversion, taken where the
|
||||
device's format query reports `VERTEX_BUFFER` for it: an 8- or 16-bit integer format read
|
||||
@@ -3575,9 +3576,9 @@ vertex and fragment buffers (`inheritBuffers` false), at most 31 of each stage.
|
||||
execution runs every command of the buffer, and the vertex function returns before its body for
|
||||
a command outside the range.
|
||||
- A state made with `supportIndirectCommandBuffers` pulls every vertex attribute its vertex function
|
||||
reads, so a command binds no vertex buffer of its own, and its vertex function tests its command
|
||||
against the execution's range; a direct draw of the state tests it against a range of every
|
||||
command.
|
||||
reads, at its layout's stride from the descriptor, so a command binds no vertex buffer of its
|
||||
own, and its vertex function tests its command against the execution's range; a direct draw of
|
||||
the state tests it against a range of every command.
|
||||
- A command's buffer slots are not bounds-checked: an execution pushes their bounds as 2^31 - 1
|
||||
bytes before the address and `u32::MAX` bytes after it. An access through one past the buffer's
|
||||
end reaches the memory there, as an access through a pointer loaded from memory does. An access
|
||||
@@ -3603,6 +3604,11 @@ vertex and fragment buffers (`inheritBuffers` false), at most 31 of each stage.
|
||||
outside the range, reset or not, costs its vertex work and draws nothing.
|
||||
- A state made with `supportIndirectCommandBuffers` pays one 8-byte load a vertex on its direct
|
||||
draws too: its vertex function reads the execution range.
|
||||
- A state made with `supportIndirectCommandBuffers` whose vertex descriptor has a layout of
|
||||
`MTLBufferLayoutStrideDynamic` that its vertex function reads is refused at its making
|
||||
(`Gap::RenderPipeline`, `RenderPipelineKind::DrawInput`): its shader fetch would read the
|
||||
stride each bind sets (`setVertexBuffer:offset:attributeStride:atIndex:`, a command's included)
|
||||
from a push field the encoder does not fill.
|
||||
- An execution over a range a buffer holds takes a preprocess region for the buffer's whole
|
||||
capacity, whatever the range, held until the command buffer completes. A part of 64 commands of
|
||||
17 tokens takes 151,808 bytes on NVIDIA's driver (an RTX 2080; 2,372 a command) and 39,680 on
|
||||
|
||||
@@ -1424,6 +1424,10 @@ pub enum RenderPipelineKind {
|
||||
/// A function that reads what a draw does not supply yet: a function table, a table the
|
||||
/// binder builds, a parameter block longer than a parameter ring chunk (64 KiB), a push field
|
||||
/// or bind-time fact the render encoder does not fill, or an unnormalized constexpr sampler.
|
||||
/// Among the push fields: the stride of a vertex buffer layout of
|
||||
/// `MTLBufferLayoutStrideDynamic` that the vertex function fetches in the shader, as a state
|
||||
/// made for indirect command buffers (`supportIndirectCommandBuffers`) fetches every
|
||||
/// `[[stage_in]]` attribute.
|
||||
DrawInput,
|
||||
}
|
||||
|
||||
|
||||
@@ -533,7 +533,8 @@ fn draws(
|
||||
RuntimeFact::SampleCount => {}
|
||||
// A colour moved into a storage form, which the runtime never moves.
|
||||
RuntimeFact::MovableStorageWrites { .. } => {}
|
||||
// A post-tessellation function's pulled attributes and their layouts' strides: the
|
||||
// The pulled attributes and their layouts' strides of a post-tessellation function and
|
||||
// of a state made for indirect command buffers, which pulls every attribute: the
|
||||
// content's own descriptor, whose projection link checked. A stride set per bind is
|
||||
// refused at its push field below.
|
||||
RuntimeFact::VertexFetch { .. } | RuntimeFact::VertexBufferStride { .. } => {}
|
||||
@@ -668,7 +669,9 @@ fn draws(
|
||||
constexprs.push((place, sampler));
|
||||
FieldValue::ConstexprSampler(place)
|
||||
}
|
||||
// A pulled layout's stride, the descriptor's: one the content fixes.
|
||||
// A pulled layout's stride, the descriptor's: one the content fixes. A stride set
|
||||
// per bind (`MTLBufferLayoutStrideDynamic`) is a push field the encoder does not
|
||||
// fill, nor a command's token.
|
||||
PushField::VertexBufferStride(layout) => {
|
||||
let stride = (pipeline.vertex_input.pulled.iter())
|
||||
.find(|pulled| pulled.buffer_index == layout)
|
||||
|
||||
@@ -146,11 +146,15 @@ mod on_device {
|
||||
CullMode, Device, DispatchType, Error, FunctionDescriptor, Gap, IndexBuffer, IndexType,
|
||||
IndirectCommandBuffer, IndirectCommandBufferDescriptor, IndirectCommandType,
|
||||
IndirectCommandsKind, Library, MemoryClass, PixelFormat, PrimitiveType, Refusal,
|
||||
RenderCommandEncoder, RenderPipelineDescriptor, RenderPipelineState, Resource,
|
||||
ResourceUsage, StageSource, TextureUsage,
|
||||
RenderCommandEncoder, RenderPipelineDescriptor, RenderPipelineKind, RenderPipelineState,
|
||||
Resource, ResourceUsage, StageSource, TextureUsage,
|
||||
};
|
||||
use ash::vk;
|
||||
use metal2vulkan::pipeline::IndirectDrawLayout;
|
||||
use metal2vulkan::metal::VertexFormat;
|
||||
use metal2vulkan::pipeline::{
|
||||
IndirectDrawLayout, VertexAttributeDescriptor, VertexBufferLayoutDescriptor,
|
||||
VertexDescriptor,
|
||||
};
|
||||
use metal2vulkan_devtools::engine_dir;
|
||||
use std::time::{Duration, Instant};
|
||||
|
||||
@@ -751,6 +755,74 @@ mod on_device {
|
||||
});
|
||||
}
|
||||
|
||||
/// A state made for indirect command buffers fetches its vertex function's `[[stage_in]]`
|
||||
/// attributes in the shader, as a command binds its vertex buffers by address alone
|
||||
/// (`icb_render_stride_template`, rasterization disabled): a direct draw of vertices 1 to 3
|
||||
/// reads each vertex's word at the layout's stride of 8 bytes past its buffer's bind offset of
|
||||
/// 4, and writes it with its vertex id to `out[vid]`. The same state with its layout at
|
||||
/// `MTLBufferLayoutStrideDynamic` is refused by name: its fetch reads the stride each bind
|
||||
/// sets from a push field the encoder does not fill.
|
||||
#[test]
|
||||
fn every_device_pulls_a_flagged_states_stage_in_and_refuses_a_stride_per_bind() {
|
||||
let Some(fetched) = library(&engine_dir().join("icb_render_stride_template.ll")) else {
|
||||
return;
|
||||
};
|
||||
let descriptor = |stride| {
|
||||
let mut d =
|
||||
RenderPipelineDescriptor::new(function(&fetched, "icb_render_stride_template"));
|
||||
d.color_attachments[0] = Some(ColorAttachmentDescriptor::new(PixelFormat::RGBA32Uint));
|
||||
d.rasterization_enabled = false;
|
||||
d.support_indirect_command_buffers = true;
|
||||
let mut vertex = VertexDescriptor::new();
|
||||
let attribute = VertexAttributeDescriptor::new(VertexFormat::UInt, 0, 1);
|
||||
vertex.attributes.insert(0, attribute);
|
||||
vertex
|
||||
.layouts
|
||||
.insert(1, VertexBufferLayoutDescriptor::new(stride));
|
||||
d.vertex_descriptor = Some(vertex);
|
||||
d
|
||||
};
|
||||
// Word 1 + 2v holds 0xb0 + v, a filler between: a stride of 4 or no offset reads a filler.
|
||||
let mut data = [0x5555_5555u32; 16];
|
||||
for v in 0..6 {
|
||||
data[1 + 2 * v] = 0xb0 + v as u32;
|
||||
}
|
||||
each_device("icb_stage_in", |name, _, device| {
|
||||
let refused = (device
|
||||
.new_render_pipeline_state(&descriptor(None), crate::tests::no_constexpr_samplers))
|
||||
.err();
|
||||
assert!(
|
||||
matches!(
|
||||
refused,
|
||||
Some(Error::Unsupported(Gap::RenderPipeline {
|
||||
kind: RenderPipelineKind::DrawInput
|
||||
}))
|
||||
),
|
||||
"{name}: a stride per bind: {refused:?}"
|
||||
);
|
||||
let state = state(name, &device, &descriptor(Some(8)));
|
||||
assert!(state.support_indirect_command_buffers(), "{name}");
|
||||
let mut buffers = Buffers::new(&device);
|
||||
let attributes = buffers.of(&device, &words(&data));
|
||||
let out = buffers.of(&device, &[0u8; 8 * 8]);
|
||||
drawn(name, &device, &state, |e| {
|
||||
ok(name, e.set_vertex_buffer(Some(&out), 0, 0));
|
||||
ok(name, e.set_vertex_buffer(Some(&attributes), 4, 1));
|
||||
ok(name, e.draw_primitives(PrimitiveType::Triangle, 1, 3, 1, 0));
|
||||
});
|
||||
let contents = out.contents().expect("a Shared buffer");
|
||||
// SAFETY: the buffer holds 16 words, which the finished draw wrote and whose writes
|
||||
// reach the host.
|
||||
let got = unsafe { std::slice::from_raw_parts(contents.as_ptr().cast::<u32>(), 16) };
|
||||
let mut want = [0u32; 16];
|
||||
for v in 1..4u32 {
|
||||
want[2 * v as usize..2 * v as usize + 2].copy_from_slice(&[0xb0 + v, v]);
|
||||
}
|
||||
assert_eq!(got, want, "{name}: each vertex's word and id");
|
||||
println!("{name}: an attribute pulled at its stride; a stride per bind refused");
|
||||
});
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn every_device_bounds_its_indirect_caches() {
|
||||
let Some(indexed) = library(&engine_dir().join("icb_merged_indexed.ll")) else {
|
||||
|
||||
Vendored
+1
-1
@@ -61,7 +61,7 @@ mod tests;
|
||||
/// unchanged version, and its bless records the version. Independent of the crate's version and of
|
||||
/// [`ARTIFACT_FORMAT_VERSION`]. The commit that bumps it says what changed; this comment keeps no
|
||||
/// history.
|
||||
pub const SEMANTICS_VERSION: u32 = 2253;
|
||||
pub const SEMANTICS_VERSION: u32 = 2254;
|
||||
|
||||
/// The byte-layout version of encoded artifacts (`CompiledFunction::to_bytes` and the
|
||||
/// [`PipelineArtifact`] encodings). Every encoded artifact carries it, and a decode under another
|
||||
|
||||
@@ -4150,6 +4150,56 @@ fn a_replayed_draw_reads_its_buffers_through_the_slot_table() {
|
||||
}
|
||||
}
|
||||
|
||||
/// A render pipeline made for indirect command buffers links its vertex input as its vertex stage
|
||||
/// is compiled: every `[[stage_in]]` attribute pulled (`RenderLinkInputs::pull_every`), as a
|
||||
/// command binds its vertex buffers by address alone. `icb_render_stride_template`'s one
|
||||
/// attribute links with no fixed-function binding or attribute, pulled at its layout's stride,
|
||||
/// static or per bind, and every stage passes L3.
|
||||
#[test]
|
||||
fn a_pipeline_for_indirect_command_buffers_pulls_its_stage_in() {
|
||||
use crate::pipeline::VertexStride;
|
||||
let Some(bc) = fixture("icb_render_stride_template") else {
|
||||
return;
|
||||
};
|
||||
let vertex = Library::from_air(&bc)
|
||||
.expect("library")
|
||||
.function("icb_render_stride_template")
|
||||
.expect("vertex");
|
||||
for stem in ["moltenvk-m3", "runtime-floor"] {
|
||||
let dev = device(stem);
|
||||
for (stride, pulled) in [
|
||||
(Some(8), VertexStride::Static(8)),
|
||||
(None, VertexStride::PerBind),
|
||||
] {
|
||||
let mut d = RenderPipelineDescriptor::new(StageSource::Function(
|
||||
FunctionDescriptor::new(vertex.clone()),
|
||||
));
|
||||
d.rasterization_enabled = false;
|
||||
d.support_indirect_command_buffers = true;
|
||||
// The attribute's layout at buffer 1: buffer 0 is the function's `out`.
|
||||
let mut v = VertexDescriptor::new();
|
||||
v.layouts
|
||||
.insert(1, VertexBufferLayoutDescriptor::new(stride));
|
||||
v.attributes.insert(
|
||||
0,
|
||||
VertexAttributeDescriptor::new(metal::VertexFormat::UInt, 0, 1),
|
||||
);
|
||||
d.vertex_descriptor = Some(v);
|
||||
let p = dev
|
||||
.compile_render_pipeline(&d, &Budget::standard())
|
||||
.unwrap_or_else(|e| panic!("{stem}, stride {stride:?}: {e}"));
|
||||
let input = &p.vertex_input;
|
||||
assert!(input.bindings.is_empty(), "{stem}, stride {stride:?}");
|
||||
assert!(input.attributes.is_empty(), "{stem}, stride {stride:?}");
|
||||
assert_eq!(input.pulled.len(), 1, "{stem}, stride {stride:?}");
|
||||
assert_eq!(input.pulled[0].stride, pulled, "{stem}");
|
||||
for stage in &p.stages {
|
||||
l3(&stage.spirv, &p.requirements, &dev);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// A draw replay's variant reads every buffer through the slot table its replay's preprocess
|
||||
/// writes, so inline bytes the encoder bound at a slot it reads are no refusal: commands that
|
||||
/// inherit the encoder's buffers read them at the consumer's upload of them, whose address the
|
||||
|
||||
@@ -146,11 +146,15 @@ impl LinkInputs {
|
||||
}
|
||||
|
||||
/// A render pipeline of `desc`'s fixed-function state under `variant`'s pulled vertex
|
||||
/// buffers.
|
||||
/// buffers. Every attribute is pulled under the de-indexed and private list forms and for a
|
||||
/// descriptor made for indirect command buffers (`supportIndirectCommandBuffers`), as their
|
||||
/// vertex stage is compiled.
|
||||
pub fn render_variant(desc: &RenderPipelineDescriptor, variant: &VariantKey) -> LinkInputs {
|
||||
let mut r = RenderLinkInputs::from(desc);
|
||||
r.pulled_vertex_buffers = variant.pulled_vertex_buffers.clone();
|
||||
r.pull_every = variant.primitive_id_indices.is_some() || variant.private_list;
|
||||
r.pull_every = variant.primitive_id_indices.is_some()
|
||||
|| variant.private_list
|
||||
|| desc.support_indirect_command_buffers;
|
||||
r.line_band = variant.line_band;
|
||||
LinkInputs::Render(Box::new(r))
|
||||
}
|
||||
@@ -180,7 +184,9 @@ pub struct RenderLinkInputs {
|
||||
pub pulled_vertex_buffers: BTreeSet<u32>,
|
||||
/// The variant pulls every attribute (`vertex::vertex_fetch_projection_for`'s `pull_every`):
|
||||
/// the de-indexed and private list forms (`VariantKey::primitive_id_indices`,
|
||||
/// `VariantKey::private_list`), whose vertex stage is compiled so.
|
||||
/// `VariantKey::private_list`) and a pipeline made for indirect command buffers
|
||||
/// (`RenderPipelineDescriptor::support_indirect_command_buffers`), whose vertex stage is
|
||||
/// compiled so.
|
||||
pub pull_every: bool,
|
||||
/// `maxVertexAmplificationCount`.
|
||||
pub max_vertex_amplification_count: u32,
|
||||
|
||||
@@ -58,11 +58,13 @@
|
||||
//! cannot fetch. It runs after the items above, so the variant's fixed-function bindings are
|
||||
//! exactly the projection's others, attribute for attribute;
|
||||
//! 8. the **de-indexed and private list forms** (`VariantKey::primitive_id_indices`,
|
||||
//! `VariantKey::private_list`) pull every remaining fixed-function attribute in the projection
|
||||
//! their compile takes, and link resolves their vertex input the same way
|
||||
//! (`RenderLinkInputs::pull_every`): their draw runs without indices, so fixed-function input
|
||||
//! would fetch at the stream position, where the function reads the vertex its index names. The
|
||||
//! layouts they pull are not a pulled-vertex-buffer variant's (`variant_pulled` keeps item 7's).
|
||||
//! `VariantKey::private_list`) and a pipeline made for indirect command buffers
|
||||
//! (`supportIndirectCommandBuffers`) pull every remaining fixed-function attribute in the
|
||||
//! projection their compile takes, and link resolves their vertex input the same way
|
||||
//! (`RenderLinkInputs::pull_every`): the first two draw without indices, so fixed-function
|
||||
//! input would fetch at the stream position, where the function reads the vertex its index
|
||||
//! names, and a command binds its vertex buffers by address alone. The layouts they pull are
|
||||
//! not a pulled-vertex-buffer variant's (`variant_pulled` keeps item 7's).
|
||||
//!
|
||||
//! Under the identity domains (`Device::from_queries`' profile) items 2 to 6 pull nothing: item 2's
|
||||
//! cases are `metal::vertex::attribute_fetch`'s refusals, and an attribute items 3 to 6 would pull
|
||||
@@ -347,7 +349,8 @@ fn resolve<'a>(
|
||||
moved.insert(r.attr.buffer_index);
|
||||
}
|
||||
}
|
||||
// The de-indexed and private list forms (item 8).
|
||||
// The de-indexed and private list forms and a pipeline made for indirect command buffers
|
||||
// (item 8).
|
||||
if pull_every {
|
||||
for r in out.values_mut() {
|
||||
r.fetch = AttributeFetch::Pulled;
|
||||
@@ -386,7 +389,8 @@ pub fn vertex_fetch_projection(
|
||||
/// `vertex_fetch_projection` under a pulled-vertex-buffer variant and a form that pulls every
|
||||
/// attribute: the attributes of the layouts in `pulled_vertex_buffers`
|
||||
/// (`VariantKey::pulled_vertex_buffers`) are pulled (item 7), and every attribute when
|
||||
/// `pull_every` (the de-indexed and private list forms, item 8).
|
||||
/// `pull_every` (the de-indexed and private list forms and a pipeline made for indirect command
|
||||
/// buffers, item 8).
|
||||
pub fn vertex_fetch_projection_for(
|
||||
desc: Option<&VertexDescriptor>,
|
||||
attributes: &BTreeMap<u32, IoNumeric>,
|
||||
|
||||
Reference in new issue
Block a user