Vendor things
This commit is contained in:
parent
5deceec006
commit
977e3c17e5
19434 changed files with 10682014 additions and 0 deletions
33
third-party/vendor/ash/tests/constant_size_arrays.rs
vendored
Normal file
33
third-party/vendor/ash/tests/constant_size_arrays.rs
vendored
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
use ash::vk::{PhysicalDeviceProperties, PipelineColorBlendStateCreateInfo};
|
||||
|
||||
#[test]
|
||||
fn assert_struct_field_is_array() {
|
||||
let pipeline_cache_uuid: [u8; 16] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
|
||||
|
||||
let _ = PhysicalDeviceProperties::builder().pipeline_cache_uuid(pipeline_cache_uuid);
|
||||
|
||||
let _ = PhysicalDeviceProperties {
|
||||
pipeline_cache_uuid,
|
||||
..Default::default()
|
||||
};
|
||||
|
||||
let blend_constants: [f32; 4] = [0.0, 0.0, 0.0, 0.0];
|
||||
|
||||
let _ = PipelineColorBlendStateCreateInfo::builder().blend_constants(blend_constants);
|
||||
|
||||
let _ = PipelineColorBlendStateCreateInfo {
|
||||
blend_constants,
|
||||
..Default::default()
|
||||
};
|
||||
}
|
||||
|
||||
#[test]
|
||||
#[allow(dead_code)]
|
||||
fn assert_ffi_array_param_is_pointer() {
|
||||
// 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];
|
||||
|
||||
device.cmd_set_blend_constants(cmd_buffer, &blend_constants);
|
||||
}
|
||||
}
|
||||
17
third-party/vendor/ash/tests/display.rs
vendored
Normal file
17
third-party/vendor/ash/tests/display.rs
vendored
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
use ash::vk;
|
||||
|
||||
#[test]
|
||||
fn debug_flags() {
|
||||
assert_eq!(
|
||||
format!(
|
||||
"{:?}",
|
||||
vk::AccessFlags::INDIRECT_COMMAND_READ | vk::AccessFlags::VERTEX_ATTRIBUTE_READ
|
||||
),
|
||||
"INDIRECT_COMMAND_READ | VERTEX_ATTRIBUTE_READ"
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn debug_enum() {
|
||||
assert_eq!(format!("{:?}", vk::ChromaLocation::MIDPOINT), "MIDPOINT");
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue