mirror of
https://github.com/vulkano-rs/vulkano.git
synced 2024-10-30 05:52:44 +00:00
Fixed using unchecked_uniform_buffer
This commit is contained in:
parent
a91aca5520
commit
cc3b1d672b
@ -65,9 +65,9 @@ pub fn write_descriptor_sets(doc: &parse::Spirv) -> String {
|
||||
Some((
|
||||
"::vulkano::descriptor_set::DescriptorType::UniformBuffer",
|
||||
vec![tp_buffer.to_owned()],
|
||||
format!("{}: 'static + ::vulkano::buffer::Buffer", tp_buffer),
|
||||
format!("{}: 'static + ::vulkano::buffer::TypedBuffer", tp_buffer),
|
||||
format!("&'a ::std::sync::Arc<{}>", tp_buffer),
|
||||
"unsafe { ::vulkano::descriptor_set::DescriptorBind::unchecked_uniform_buffer(data, 0 .. data.size()) }"
|
||||
"::vulkano::descriptor_set::DescriptorBind::uniform_buffer(data)"
|
||||
))
|
||||
},
|
||||
&parse::Instruction::TypeImage { result_id, sampled_type_id, ref dim, arrayed, ms,
|
||||
|
Loading…
Reference in New Issue
Block a user