mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-20 22:41:07 +01:00
[hlsl-out] Add note about entry points in ReflectionInfo
This commit is contained in:
1 parent
c156fa9ad3
commit
24b2c548bd
1 file changed
+4
@@ -48,8 +48,12 @@ impl Default for Options {
|
||||
}
|
||||
}
|
||||
|
||||
/// Structure that contains a reflection info
|
||||
pub struct ReflectionInfo {
|
||||
/// Information about all entry points (stage, name).
|
||||
/// HLSL backend returns information about all entry points in shaders that will be allowed by the `hlsl` compiler.
|
||||
/// For example:
|
||||
/// the entry point with the name `line` is valid for `wgsl`, but not valid for `hlsl`, because `line` is a reserved keyword.
|
||||
pub entry_points: Vec<(crate::ShaderStage, String)>,
|
||||
// TODO: locations
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user