mirror of
https://github.com/vulkano-rs/vulkano.git
synced 2024-11-25 16:25:31 +00:00
Update the examples for PersistentDescriptorSet
This commit is contained in:
parent
d145149278
commit
3d718c57a0
@ -140,9 +140,10 @@ fn main() {
|
|||||||
.build(device.clone())
|
.build(device.clone())
|
||||||
.unwrap());
|
.unwrap());
|
||||||
|
|
||||||
let set = Arc::new(simple_descriptor_set!(pipeline.clone(), 0, {
|
let set = Arc::new(vulkano::descriptor::descriptor_set::PersistentDescriptorSet::start(pipeline.clone(), 0)
|
||||||
tex: (texture.clone(), sampler.clone())
|
.add_sampled_image(texture.clone(), sampler.clone())
|
||||||
}));
|
.build()
|
||||||
|
);
|
||||||
|
|
||||||
let framebuffers = images.iter().map(|image| {
|
let framebuffers = images.iter().map(|image| {
|
||||||
Arc::new(vulkano::framebuffer::Framebuffer::start(renderpass.clone())
|
Arc::new(vulkano::framebuffer::Framebuffer::start(renderpass.clone())
|
||||||
|
@ -138,9 +138,10 @@ fn main() {
|
|||||||
.build(device.clone())
|
.build(device.clone())
|
||||||
.unwrap());
|
.unwrap());
|
||||||
|
|
||||||
let set = Arc::new(simple_descriptor_set!(pipeline.clone(), 0, {
|
let set = Arc::new(vulkano::descriptor::descriptor_set::PersistentDescriptorSet::start(pipeline.clone(), 0)
|
||||||
uniforms: uniform_buffer.clone()
|
.add_buffer(uniform_buffer.clone())
|
||||||
}));
|
.build()
|
||||||
|
);
|
||||||
|
|
||||||
let framebuffers = images.iter().map(|image| {
|
let framebuffers = images.iter().map(|image| {
|
||||||
Arc::new(vulkano::framebuffer::Framebuffer::start(renderpass.clone())
|
Arc::new(vulkano::framebuffer::Framebuffer::start(renderpass.clone())
|
||||||
|
@ -54,7 +54,7 @@ pub struct PersistentDescriptorSet<R, P = StdDescriptorPoolAlloc> {
|
|||||||
layout: Arc<UnsafeDescriptorSetLayout>
|
layout: Arc<UnsafeDescriptorSetLayout>
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<R, P> PersistentDescriptorSet<R, P> {
|
impl PersistentDescriptorSet<()> {
|
||||||
///
|
///
|
||||||
/// # Panic
|
/// # Panic
|
||||||
///
|
///
|
||||||
|
Loading…
Reference in New Issue
Block a user