Skip to main content

Module platform

Module platform 

Source
Expand description

The shader platform this build’s rendering backend consumes. The backend is this crate’s own compile-time choice, so the crate that knows it is the one that states it: the editor and the cook are handed the value rather than resolving a backend of their own. Which shader source language this build’s rendering backend consumes.

The backend cfg is resolved once in build.rs; this is the one place that reads it as a value, so the runtime, the editor, and the cook all name the same platform without each resolving it again.

Functions§

current
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.