Fix examples
This commit is contained in:
parent
f4c991b821
commit
81935b2a91
2 changed files with 3 additions and 4 deletions
|
@ -802,7 +802,7 @@ fn main() {
|
||||||
graphic_pipeline);
|
graphic_pipeline);
|
||||||
device.cmd_set_viewport(draw_command_buffer, &viewports);
|
device.cmd_set_viewport(draw_command_buffer, &viewports);
|
||||||
device.cmd_set_scissor(draw_command_buffer, &scissors);
|
device.cmd_set_scissor(draw_command_buffer, &scissors);
|
||||||
device.cmd_bind_vertex_buffers(draw_command_buffer, &[vertex_input_buffer], &0);
|
device.cmd_bind_vertex_buffers(draw_command_buffer, 0, &[vertex_input_buffer], &[0]);
|
||||||
device.cmd_bind_index_buffer(draw_command_buffer,
|
device.cmd_bind_index_buffer(draw_command_buffer,
|
||||||
index_buffer,
|
index_buffer,
|
||||||
0,
|
0,
|
||||||
|
|
|
@ -405,8 +405,7 @@ fn main() {
|
||||||
base_pipeline_index: 0,
|
base_pipeline_index: 0,
|
||||||
};
|
};
|
||||||
let graphics_pipelines = base.device
|
let graphics_pipelines = base.device
|
||||||
.create_graphics_pipelines(vk::PipelineCache::null(), &[graphic_pipeline_info], None)
|
.create_graphics_pipelines(vk::PipelineCache::null(), &[graphic_pipeline_info], None).expect("Unable to create graphics pipeline");
|
||||||
.unwrap();
|
|
||||||
|
|
||||||
let graphic_pipeline = graphics_pipelines[0];
|
let graphic_pipeline = graphics_pipelines[0];
|
||||||
|
|
||||||
|
@ -452,7 +451,7 @@ fn main() {
|
||||||
graphic_pipeline);
|
graphic_pipeline);
|
||||||
device.cmd_set_viewport(draw_command_buffer, &viewports);
|
device.cmd_set_viewport(draw_command_buffer, &viewports);
|
||||||
device.cmd_set_scissor(draw_command_buffer, &scissors);
|
device.cmd_set_scissor(draw_command_buffer, &scissors);
|
||||||
device.cmd_bind_vertex_buffers(draw_command_buffer, &[vertex_input_buffer], &0);
|
device.cmd_bind_vertex_buffers(draw_command_buffer,0 , &[vertex_input_buffer], &[0]);
|
||||||
device.cmd_bind_index_buffer(draw_command_buffer,
|
device.cmd_bind_index_buffer(draw_command_buffer,
|
||||||
index_buffer,
|
index_buffer,
|
||||||
0,
|
0,
|
||||||
|
|
Loading…
Add table
Reference in a new issue