mirror of
https://github.com/vulkano-rs/vulkano.git
synced 2024-11-21 14:24:18 +00:00
fix vkCmdDrawMeshIndirect()
validation using wrong type (#2581)
This commit is contained in:
parent
123eda1a3b
commit
552caad394
@ -4738,7 +4738,7 @@ impl RawRecordingCommandBuffer {
|
||||
}));
|
||||
}
|
||||
} else {
|
||||
if size_of::<DrawIndirectCommand>() as DeviceSize > indirect_buffer.size() {
|
||||
if size_of::<DrawMeshTasksIndirectCommand>() as DeviceSize > indirect_buffer.size() {
|
||||
return Err(Box::new(ValidationError {
|
||||
problem: "`draw_count` is 1, but `size_of::<DrawMeshTasksIndirectCommand>()` \
|
||||
is greater than `indirect_buffer.size()`"
|
||||
|
Loading…
Reference in New Issue
Block a user