Vulkano: Cause of `assertion failed: layout.num_sets() > set_id` persistent.rs:76

Created on 1 May 2019  路  1Comment  路  Source: vulkano-rs/vulkano

  • Version of vulkano: 1.11.1
  • OS: Void Linux
  • GPU: Intel(R) HD Graphics 520 (Skylake GT2)
  • GPU Driver: Proprietary

Issue

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(),
        );

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.

>All comments

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Eliah-Lakhin picture Eliah-Lakhin  路  6Comments

tomaka picture tomaka  路  8Comments

the10thWiz picture the10thWiz  路  4Comments

Craig-Macomber picture Craig-Macomber  路  11Comments

qnope picture qnope  路  8Comments