Skip to main content

current

Function current 

Source
pub fn current() -> Platform
Expand description

The shader platform this build’s rendering backend consumes. Resolved from the backend cfg rather than the target OS, so a Windows Vulkan build correctly reports GLSL rather than HLSL.

A build with no backend runs nothing that consumes bytecode, but the cook still needs a language to produce; the one this target renders with is the useful answer, and no backend cfg contradicts it.