Safer compile-pass test

This commit is contained in:
Benjamin Saunders 2019-10-05 11:08:00 -07:00
parent 4e8090f0bb
commit 8c0ece9ef8

View file

@ -27,15 +27,10 @@ fn assert_struct_field_is_array() {
#[allow(dead_code)]
fn assert_ffi_array_param_is_pointer() {
use ash::version::DeviceV1_0;
unsafe {
// don't run it, just make sure it compiles
if false {
let device: ash::Device = std::mem::zeroed();
let cmd_buffer = std::mem::zeroed();
// don't run it, just make sure it compiles
unsafe fn dummy(device: &ash::Device, cmd_buffer: ash::vk::CommandBuffer) {
let blend_constants: [f32; 4] = [0.0, 0.0, 0.0, 0.0];
let blend_constants: [f32; 4] = [0.0, 0.0, 0.0, 0.0];
device.cmd_set_blend_constants(cmd_buffer, &blend_constants);
}
device.cmd_set_blend_constants(cmd_buffer, &blend_constants);
}
}