Skip to content

Commit

Permalink
Add resource chapter documenting buffers and bindings
Browse files Browse the repository at this point in the history
This adds a resource chapter that documents typed and raw buffers including their methods and compatible operators along with short descriptions of their functionality. It also adds a description of binding annotations for all types. Stub sections are included for constant buffers and samplers, but no information is provided as yet.

Fixes llvm/wg-hlsl#55
Fixes llvm/wg-hlsl#56
  • Loading branch information
pow2clk committed Oct 22, 2024
1 parent 40912b0 commit 05fa335
Show file tree
Hide file tree
Showing 3 changed files with 948 additions and 2 deletions.
6 changes: 4 additions & 2 deletions specs/language/expressions.tex
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,10 @@

\p A \textit{postfix-expression} followed by an expression in square brackets
(\texttt{[ ]}) is a subscript expression. In an array subscript expression of
the form \texttt{E1[E2]}, \texttt{E1} must either be a variable of array of
\texttt{T[]}, or an object of type \texttt{T} where \texttt{T} provides an
the form \texttt{E1[E2]}, \texttt{E1} must either be a variable of array,
vector, matrix, typed buffer (\ref{Resources.tybuf}), or structured buffer
(\ref{Resources.stbufs}), with elements of type \texttt{T[]} or an
object of type \texttt{T} where \texttt{T} provides an
overloaded implementation of \texttt{operator[]} (\ref{Overload}).\footnote{HLSL
does not support the base address of a subscript operator being the expression
inside the braces, which is valid in C and C++.}
Expand Down
1 change: 1 addition & 0 deletions specs/language/hlsl.tex
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@
\input{statements}
\input{declarations}
\input{overloading}
\input{resources}

\input{placeholders} % Declare placeholder references

Expand Down
Loading

0 comments on commit 05fa335

Please sign in to comment.