pub fn validate_native(
source: &str,
target: TargetBackend,
kernel: Option<&KernelSpec>,
) -> Result<ValidationReport, ForgeError>Expand description
Validate a non-WGSL shader by spawning the target’s offline compiler. When the
source was generated from a known KernelSpec, pass it so the report carries
that kernel’s real entry point and binding count; for an opaque external source
(kernel = None) those fields are left empty/zero rather than guessed.