You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
\p A bit-field is a class member with an explicit size specified in bits. Bit-fields must be of an underflying integer type.
4
+
\begin{HLSL}
5
+
struct Foo {
6
+
uint A : 10;
7
+
bool B : 1;
8
+
};
9
+
\end{HLSL}
10
+
\p A bit-field can be unnamed. Unnamed bit-fields cannot be accessed or initialized.
11
+
\begin{HLSL}
12
+
struct Foo {
13
+
uint : 10;
14
+
};
15
+
\end{HLSL}
16
+
\p The explicit size of a named bit-field must be a constant expression of integer type, and must resolve to a number greater than zero and less than or equal to the size of the specified type in bits.
17
+
\p The explicit size of an unnamed bit-field can also be zero.
0 commit comments