[PATCH] D132672: [Docs] [HLSL] Documenting HLSL Entry Functions

Xiang Li via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Aug 25 10:53:35 PDT 2022


python3kgae added inline comments.


================
Comment at: clang/docs/HLSL/EntryFunctions.rst:11
+
+In HLSL entry functions denote the starting point for shader execution. They
+must be known at compile time. For all non-library shaders, the compiler assumes
----------------
In HLSL,


================
Comment at: clang/docs/HLSL/EntryFunctions.rst:43
+call instruction the return value (if any) is saved via the appropriate
+intrinsic for its semantic annotation.
+
----------------
Maybe an example to help to understand?



================
Comment at: clang/docs/HLSL/EntryFunctions.rst:45
+
+During optimization all calls in HLSL are inlined, so this has no impact on
+final code.
----------------
Maybe just say this wrapper call will be inlined in case we don't inline everything in the future?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D132672/new/

https://reviews.llvm.org/D132672



More information about the cfe-commits mailing list