Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/third_party/rust/ash/tests/   (Firefox Browser Version 136.0.1©)  Datei vom 10.2.2025 mit Größe 1009 B image not shown  

Quelle  constant_size_arrays.rs

  Sprache: Rust
 

use ash::vk::{PhysicalDeviceProperties, PipelineColorBlendStateCreateInfo};

#[test]
fn assert_struct_field_is_array() {
    let pipeline_cache_uuid: [u8; 16] = [0000000000000000];

    let _ = PhysicalDeviceProperties::default().pipeline_cache_uuid(pipeline_cache_uuid);

    let _ = PhysicalDeviceProperties {
        pipeline_cache_uuid,
        ..Default::default()
    };

    let blend_constants: [f32; 4] = [0.00.00.00.0];

    let _ = PipelineColorBlendStateCreateInfo::default().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.00.00.00.0];

        device.cmd_set_blend_constants(cmd_buffer, &blend_constants);
    }
}

Messung V0.5 in Prozent
C=97 H=84 G=90

¤ Dauer der Verarbeitung: 0.11 Sekunden  (vorverarbeitet am  2026-06-17) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.