[naga] Document snapshots::Targets::IR and ANALYSIS. (#6231)

This commit is contained in:
Jim Blandy 2024-09-06 13:59:20 -07:00 committed by GitHub
parent 50b71287ce
commit c87717b814
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -14,8 +14,12 @@ const BASE_DIR_OUT: &str = "tests/out";
bitflags::bitflags! {
#[derive(Clone, Copy)]
struct Targets: u32 {
/// A serialization of the `naga::Module`, in RON format.
const IR = 1;
/// A serialization of the `naga::valid::ModuleInfo`, in RON format.
const ANALYSIS = 1 << 1;
const SPIRV = 1 << 2;
const METAL = 1 << 3;
const GLSL = 1 << 4;