From 24b2c548bd7854e09c33340973261965d41786ee Mon Sep 17 00:00:00 2001 From: Gordon-F Date: Thu, 24 Jun 2021 23:49:40 +0300 Subject: [PATCH] [hlsl-out] Add note about entry points in ReflectionInfo --- src/back/hlsl/mod.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/back/hlsl/mod.rs b/src/back/hlsl/mod.rs index 0631952c6d..84802a4bd8 100644 --- a/src/back/hlsl/mod.rs +++ b/src/back/hlsl/mod.rs @@ -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 }