let set = Arc::new(
PersistentDescriptorSet::start(pipeline, 0)
.add_sampled_image(tex, sampler)
.unwrap()
.build()
.unwrap(),
);
Fails with thread 'main' panicked at 'assertion failed: layout.num_sets() > set_id', /home/simon/.cargo/registry/src/github.com-1ecc6299db9ec823/vulkano-0.11.1/src/descriptor/descriptor_set/persistent.rs:76:9
What does this mean exactly? Am i creating my GraphicsPipeline incorrectly?
self.draw_pipeline = Arc::new(
pipeline::GraphicsPipeline::start()
.vertex_input_single_buffer::<vertex::Vertex>()
.vertex_shader(vs.main_entry_point(), ())
.triangle_strip()
.viewports_dynamic_scissors_irrelevant(1)
.fragment_shader(fs.main_entry_point(), ())
.blend_alpha_blending()
.render_pass(framebuffer::Subpass::from(self.render_pass.clone(), 0).unwrap())
.build(self.device.clone())
.unwrap(),
);
Ye so this is kind of embarrassing. My philosophy was "I'll crate the most basic glsl and then sort it out later". However turns out the issue was that I had forgotten to add layout(set = 0, binding = 0) uniform sampler2D tex; to my glsl.
Most helpful comment
Ye so this is kind of embarrassing. My philosophy was "I'll crate the most basic glsl and then sort it out later". However turns out the issue was that I had forgotten to add
layout(set = 0, binding = 0) uniform sampler2D tex;to my glsl.