mesa/src/util/shader_stats.rnc
Rhys Perry 92eb0941d3 util/stats: fix XML type validation
Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35583>
2025-06-20 09:26:58 +00:00

26 lines
644 B
Text

# Copyright 2025 Valve Corporation
# SPDX-License-Identifier: MIT
namespace a = "http://relaxng.org/ns/compatibility/annotations/1.0"
start = element shaderdb { (isa | family)* }
family = element family {
attribute name { text },
isa+
}
isa = element isa {
attribute name { text },
element stat {
attribute name { text },
attribute display { text }?,
attribute count { xsd:integer }?,
attribute more { "better" | "worse" }?,
attribute hash { xsd:boolean }?,
[ a:defaultValue = "u32" ] attribute type
{ "u8" | "i8" | "u16" | "i16" | "u32" | "i32" | "u64" | "i64" | "float" | "bool" }?,
text
}+
}